mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-21 21:55:27 -05:00
e350ca0f57
* Implement Azure TDX attestation primitives * Add default measurements and claims for Azure TDX * Enable Constellation on Azure TDX --------- Signed-off-by: Daniel Weiße <dw@edgeless.systems>
39 lines
1.1 KiB
Python
39 lines
1.1 KiB
Python
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
|
load("//bazel/go:go_test.bzl", "go_test")
|
|
|
|
go_library(
|
|
name = "tdx",
|
|
srcs = [
|
|
"issuer.go",
|
|
"tdx.go",
|
|
"validator.go",
|
|
],
|
|
importpath = "github.com/edgelesssys/constellation/v2/internal/attestation/azure/tdx",
|
|
visibility = ["//:__subpackages__"],
|
|
deps = [
|
|
"//internal/attestation",
|
|
"//internal/attestation/azure",
|
|
"//internal/attestation/variant",
|
|
"//internal/attestation/vtpm",
|
|
"//internal/config",
|
|
"@com_github_google_go_tdx_guest//abi",
|
|
"@com_github_google_go_tdx_guest//proto/tdx",
|
|
"@com_github_google_go_tdx_guest//validate",
|
|
"@com_github_google_go_tdx_guest//verify",
|
|
"@com_github_google_go_tdx_guest//verify/trust",
|
|
"@com_github_google_go_tpm//legacy/tpm2",
|
|
"@com_github_google_go_tpm_tools//proto/attest",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "tdx_test",
|
|
srcs = ["issuer_test.go"],
|
|
embed = [":tdx"],
|
|
deps = [
|
|
"//internal/attestation/azure/tdx/testdata",
|
|
"@com_github_stretchr_testify//assert",
|
|
"@com_github_stretchr_testify//require",
|
|
],
|
|
)
|