config: fetch latest AWS TCB values

This commit is contained in:
Otto Bittner 2023-11-08 13:54:18 +01:00
parent 350397923f
commit 4813fcfdb6
3 changed files with 45 additions and 2 deletions

View file

@ -463,6 +463,12 @@ func New(fileHandler file.Handler, name string, fetcher attestationconfigapi.Fet
}
}
if aws := c.Attestation.AWSSEVSNP; aws != nil {
if err := aws.FetchAndSetLatestVersionNumbers(context.Background(), fetcher); err != nil {
return c, err
}
}
// Read secrets from env-vars.
clientSecretValue := os.Getenv(constants.EnvVarAzureClientSecretValue)
if clientSecretValue != "" && c.Provider.Azure != nil {