mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-09-24 14:58:35 -04:00
attestation: add awsSEVSNP
as new variant (#1900)
* variant: move into internal/attestation * attesation: move aws attesation into subfolder nitrotpm * config: add aws-sev-snp variant * cli: add tf option to enable AWS SNP For now the implementations in aws/nitrotpm and aws/snp are identical. They both contain the aws/nitrotpm impl. A separate commit will add the actual attestation logic.
This commit is contained in:
parent
947d0cb20a
commit
8f21972aec
110 changed files with 993 additions and 215 deletions
|
@ -13,7 +13,7 @@ import (
|
|||
"fmt"
|
||||
|
||||
"github.com/edgelesssys/constellation/v2/internal/attestation/measurements"
|
||||
"github.com/edgelesssys/constellation/v2/internal/variant"
|
||||
"github.com/edgelesssys/constellation/v2/internal/attestation/variant"
|
||||
)
|
||||
|
||||
// AttestationCfg is the common interface for passing attestation configs.
|
||||
|
@ -33,6 +33,8 @@ func UnmarshalAttestationConfig(data []byte, attestVariant variant.Variant) (Att
|
|||
switch attestVariant {
|
||||
case variant.AWSNitroTPM{}:
|
||||
return unmarshalTypedConfig[*AWSNitroTPM](data)
|
||||
case variant.AWSSEVSNP{}:
|
||||
return unmarshalTypedConfig[*AWSSEVSNP](data)
|
||||
case variant.AzureSEVSNP{}:
|
||||
return unmarshalTypedConfig[*AzureSEVSNP](data)
|
||||
case variant.AzureTrustedLaunch{}:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue