mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-02 22:34:56 -04:00
Implement support for "latest" placeholders for Azure TDX
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
a34493caa6
commit
9159b60331
16 changed files with 410 additions and 267 deletions
|
@ -6,7 +6,7 @@ go_library(
|
|||
srcs = [
|
||||
"attestationconfigapi.go",
|
||||
"fetcher.go",
|
||||
"snp.go",
|
||||
"version.go",
|
||||
],
|
||||
importpath = "github.com/edgelesssys/constellation/v2/internal/api/attestationconfigapi",
|
||||
visibility = ["//:__subpackages__"],
|
||||
|
@ -22,7 +22,7 @@ go_test(
|
|||
name = "attestationconfigapi_test",
|
||||
srcs = [
|
||||
"fetcher_test.go",
|
||||
"snp_test.go",
|
||||
"version_test.go",
|
||||
],
|
||||
embed = [":attestationconfigapi"],
|
||||
deps = [
|
||||
|
|
|
@ -20,6 +20,7 @@ go_library(
|
|||
deps = [
|
||||
"//internal/api/attestationconfigapi",
|
||||
"//internal/api/attestationconfigapi/cli/client",
|
||||
"//internal/api/fetcher",
|
||||
"//internal/attestation/variant",
|
||||
"//internal/cloud/cloudprovider",
|
||||
"//internal/constants",
|
||||
|
|
|
@ -22,27 +22,27 @@ const AttestationURLPath = "constellation/v1/attestation"
|
|||
// SEVSNPVersion tracks the latest version of each component for SEV-SNP.
|
||||
type SEVSNPVersion struct {
|
||||
// Bootloader is the latest version of the SEV-SNP bootloader.
|
||||
Bootloader uint8 `json:"bootloader,omitempty"`
|
||||
Bootloader uint8 `json:"bootloader"`
|
||||
// TEE is the latest version of the SEV-SNP TEE.
|
||||
TEE uint8 `json:"tee,omitempty"`
|
||||
TEE uint8 `json:"tee"`
|
||||
// SNP is the latest version of the SEV-SNP SNP.
|
||||
SNP uint8 `json:"snp,omitempty"`
|
||||
SNP uint8 `json:"snp"`
|
||||
// Microcode is the latest version of the SEV-SNP microcode.
|
||||
Microcode uint8 `json:"microcode,omitempty"`
|
||||
Microcode uint8 `json:"microcode"`
|
||||
}
|
||||
|
||||
// TDXVersion tracks the latest version of each component for TDX.
|
||||
type TDXVersion struct {
|
||||
// QESVN is the latest QE security version number.
|
||||
QESVN uint16 `json:"qeSVN,omitempty"`
|
||||
QESVN uint16 `json:"qeSVN"`
|
||||
// PCESVN is the latest PCE security version number.
|
||||
PCESVN uint16 `json:"pceSVN,omitempty"`
|
||||
PCESVN uint16 `json:"pceSVN"`
|
||||
// TEETCBSVN are the latest component-wise security version numbers for the TEE.
|
||||
TEETCBSVN [16]byte `json:"teeTCBSVN,omitempty"`
|
||||
TEETCBSVN [16]byte `json:"teeTCBSVN"`
|
||||
// QEVendorID is the latest QE vendor ID.
|
||||
QEVendorID [16]byte `json:"qeVendorID,omitempty"`
|
||||
QEVendorID [16]byte `json:"qeVendorID"`
|
||||
// XFAM is the latest XFAM field.
|
||||
XFAM [8]byte `json:"xfam,omitempty"`
|
||||
XFAM [8]byte `json:"xfam"`
|
||||
}
|
||||
|
||||
// VersionAPIEntry is the request to get the version information of the specific version in the config api.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue