mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-07-28 09:44:08 -04:00
config: disable user-facing version Azure SEV SNP fetch for v2.8 (#1882)
* config: disable user-facing version fetch for Azure SEV SNP don't allow "latest" value and disable user-facing version fetcher for Azure SEV SNP Co-authored-by: @derpsteb * fix unittests * attestation: getTrustedKey --------- Co-authored-by: Otto Bittner <cobittner@posteo.net>
This commit is contained in:
parent
7c07e3be18
commit
c7b22d314a
5 changed files with 121 additions and 48 deletions
|
@ -218,6 +218,10 @@ func TestTrustedKeyFromSNP(t *testing.T) {
|
|||
AcceptedKeyDigests: tc.idkeydigests,
|
||||
EnforcementPolicy: tc.enforceIDKeyDigest,
|
||||
}
|
||||
cfg.BootloaderVersion = config.AttestationVersion{Value: 2}
|
||||
cfg.TEEVersion = config.AttestationVersion{Value: 0}
|
||||
cfg.MicrocodeVersion = config.AttestationVersion{Value: 93}
|
||||
cfg.SNPVersion = config.AttestationVersion{Value: 6}
|
||||
|
||||
validator := &Validator{
|
||||
hclValidator: &instanceInfo,
|
||||
|
@ -349,6 +353,12 @@ func TestNewSNPReportFromBytes(t *testing.T) {
|
|||
},
|
||||
}
|
||||
cfg := config.DefaultForAzureSEVSNP()
|
||||
|
||||
cfg.BootloaderVersion = config.AttestationVersion{Value: 2}
|
||||
cfg.TEEVersion = config.AttestationVersion{Value: 0}
|
||||
cfg.MicrocodeVersion = config.AttestationVersion{Value: 93}
|
||||
cfg.SNPVersion = config.AttestationVersion{Value: 6}
|
||||
|
||||
for name, tc := range testCases {
|
||||
t.Run(name, func(t *testing.T) {
|
||||
assert := assert.New(t)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue