mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-02 03:56:07 -04:00
config: enable azure snp version fetcher again + minimum age for latest version (#1899)
* fetch latest version when older than 2 weeks
* extend hack upload tool to pass an upload date
* Revert "config: disable user-facing version Azure SEV SNP fetch for v2.8 (#1882)"
This reverts commit c7b22d314a
.
* fix tests
* use NewAzureSEVSNPVersionList for type guarantees
* Revert "use NewAzureSEVSNPVersionList for type guarantees"
This reverts commit 942566453f4b4a2b6dc16f8689248abf1dc47db4.
* assure list is sorted
* improve root.go style
* daniel feedback
This commit is contained in:
parent
72e168e653
commit
3fde118b33
13 changed files with 239 additions and 189 deletions
|
@ -218,10 +218,6 @@ 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,
|
||||
|
@ -353,12 +349,6 @@ 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