2023-03-09 09:23:42 -05:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
2023-08-18 08:25:14 -04:00
|
|
|
load("//bazel/go:go_test.bzl", "go_test")
|
2023-03-09 09:23:42 -05:00
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "initserver",
|
|
|
|
srcs = ["initserver.go"],
|
|
|
|
importpath = "github.com/edgelesssys/constellation/v2/bootstrapper/internal/initserver",
|
|
|
|
visibility = ["//bootstrapper:__subpackages__"],
|
|
|
|
deps = [
|
|
|
|
"//bootstrapper/initproto",
|
2023-05-30 07:47:36 -04:00
|
|
|
"//bootstrapper/internal/journald",
|
2023-03-09 09:23:42 -05:00
|
|
|
"//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",
|
2024-05-21 11:56:37 -04:00
|
|
|
"@org_golang_google_grpc//:grpc",
|
2023-03-09 09:23:42 -05:00
|
|
|
"@org_golang_google_grpc//codes",
|
|
|
|
"@org_golang_google_grpc//keepalive",
|
|
|
|
"@org_golang_google_grpc//status",
|
|
|
|
"@org_golang_x_crypto//bcrypt",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "initserver_test",
|
|
|
|
srcs = ["initserver_test.go"],
|
|
|
|
embed = [":initserver"],
|
|
|
|
# keep
|
2023-08-18 08:25:14 -04:00
|
|
|
pure = "on",
|
|
|
|
# keep
|
|
|
|
race = "off",
|
2023-03-09 09:23:42 -05:00
|
|
|
deps = [
|
|
|
|
"//bootstrapper/initproto",
|
|
|
|
"//internal/atls",
|
2023-06-09 09:41:02 -04:00
|
|
|
"//internal/attestation/variant",
|
2023-03-09 09:23:42 -05:00
|
|
|
"//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",
|
2024-05-21 11:56:37 -04:00
|
|
|
"@org_golang_google_grpc//:grpc",
|
2023-03-09 09:23:42 -05:00
|
|
|
"@org_golang_x_crypto//bcrypt",
|
|
|
|
"@org_uber_go_goleak//:goleak",
|
|
|
|
],
|
|
|
|
)
|