mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-09-29 12:18:40 -04:00
config: add separate option for handling attestation parameters (#1623)
* Add attestation options to config * Add join-config migration path for clusters with old measurement format * Always create MAA provider for Azure SNP clusters * Remove confidential VM option from provider in favor of attestation options * cli: add config migrate command to handle config migration (#1678) --------- Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
6027b066e5
commit
d7a2ddd939
74 changed files with 1339 additions and 1282 deletions
|
@ -8,6 +8,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||
package idkeydigest
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/hex"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
|
@ -124,6 +125,19 @@ func DefaultList() List {
|
|||
}
|
||||
}
|
||||
|
||||
// EqualTo returns true if the List of digests is equal to the other List.
|
||||
func (d List) EqualTo(other List) bool {
|
||||
if len(d) != len(other) {
|
||||
return false
|
||||
}
|
||||
for i := range d {
|
||||
if !bytes.Equal(d[i], other[i]) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
// MarshalYAML implements the yaml.Marshaler interface.
|
||||
func (d List) MarshalYAML() (any, error) {
|
||||
encodedIDKeyDigests := []string{}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue