2023-03-09 09:23:42 -05:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
|
|
|
load("//bazel/go:go_test.bzl", "go_test")
|
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "trustedlaunch",
|
|
|
|
srcs = [
|
|
|
|
"issuer.go",
|
|
|
|
"trustedlaunch.go",
|
|
|
|
"validator.go",
|
|
|
|
],
|
|
|
|
importpath = "github.com/edgelesssys/constellation/v2/internal/attestation/azure/trustedlaunch",
|
|
|
|
visibility = ["//:__subpackages__"],
|
|
|
|
deps = [
|
|
|
|
"//internal/attestation/vtpm",
|
2023-04-06 11:00:56 -04:00
|
|
|
"//internal/config",
|
2023-03-09 09:23:42 -05:00
|
|
|
"//internal/crypto",
|
2023-03-29 03:30:13 -04:00
|
|
|
"//internal/variant",
|
2023-03-09 09:23:42 -05:00
|
|
|
"@com_github_google_go_tpm//tpm2",
|
|
|
|
"@com_github_google_go_tpm_tools//client",
|
|
|
|
"@com_github_google_go_tpm_tools//proto/attest",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "trustedlaunch_test",
|
|
|
|
srcs = ["trustedlaunch_test.go"],
|
|
|
|
embed = [":trustedlaunch"],
|
|
|
|
# keep
|
|
|
|
gotags = select({
|
|
|
|
"//bazel/settings:tpm_simulator_enabled": [],
|
|
|
|
"//conditions:default": ["disable_tpm_simulator"],
|
|
|
|
}),
|
|
|
|
deps = [
|
|
|
|
"//internal/attestation/measurements",
|
|
|
|
"//internal/attestation/simulator",
|
2023-03-21 07:46:49 -04:00
|
|
|
"//internal/attestation/vtpm",
|
2023-04-06 11:00:56 -04:00
|
|
|
"//internal/config",
|
2023-03-09 09:23:42 -05:00
|
|
|
"//internal/crypto",
|
|
|
|
"//internal/logger",
|
|
|
|
"@com_github_google_go_tpm//tpm2",
|
|
|
|
"@com_github_google_go_tpm_tools//client",
|
2023-03-21 07:46:49 -04:00
|
|
|
"@com_github_google_go_tpm_tools//proto/attest",
|
2023-03-09 09:23:42 -05:00
|
|
|
"@com_github_stretchr_testify//assert",
|
|
|
|
"@com_github_stretchr_testify//require",
|
|
|
|
],
|
|
|
|
)
|