constellation/bootstrapper/internal/initserver/BUILD.bazel
Otto Bittner 8f21972aec
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.
2023-06-09 15:41:02 +02:00

64 lines
1.9 KiB
Python

load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("//bazel/go:go_test.bzl", "go_ld_test", "go_test")
go_library(
name = "initserver",
srcs = ["initserver.go"],
importpath = "github.com/edgelesssys/constellation/v2/bootstrapper/internal/initserver",
visibility = ["//bootstrapper:__subpackages__"],
deps = [
"//bootstrapper/initproto",
"//bootstrapper/internal/diskencryption",
"//bootstrapper/internal/journald",
"//internal/atls",
"//internal/attestation",
"//internal/crypto",
"//internal/file",
"//internal/grpc/atlscredentials",
"//internal/grpc/grpclog",
"//internal/kms/kms",
"//internal/kms/setup",
"//internal/logger",
"//internal/nodestate",
"//internal/role",
"//internal/versions/components",
"@org_golang_google_grpc//:go_default_library",
"@org_golang_google_grpc//codes",
"@org_golang_google_grpc//keepalive",
"@org_golang_google_grpc//status",
"@org_golang_x_crypto//bcrypt",
"@org_uber_go_zap//:zap",
],
)
go_test(
name = "initserver_test",
srcs = ["initserver_test.go"],
embed = [":initserver"],
# keep
tags = ["manual"],
deps = [
"//bootstrapper/initproto",
"//internal/atls",
"//internal/attestation/variant",
"//internal/crypto/testvector",
"//internal/file",
"//internal/kms/setup",
"//internal/kms/uri",
"//internal/logger",
"//internal/versions/components",
"@com_github_spf13_afero//:afero",
"@com_github_stretchr_testify//assert",
"@com_github_stretchr_testify//require",
"@org_golang_google_grpc//:go_default_library",
"@org_golang_x_crypto//bcrypt",
"@org_uber_go_goleak//:goleak",
],
)
go_ld_test(
name = "initserver_ld_test",
src = "initserver_test",
ld = "//rpm:ld",
)