mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-29 09:26:17 -05:00
84d8bd8110
The user can choose to supply an intermediate certificate through the config, like they can for the root key. If none is supplied, the KDS is queried for a valid ASK.
29 lines
799 B
Python
29 lines
799 B
Python
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
|
load("//bazel/go:go_test.bzl", "go_test")
|
|
|
|
go_library(
|
|
name = "verify",
|
|
srcs = ["verify.go"],
|
|
importpath = "github.com/edgelesssys/constellation/v2/internal/verify",
|
|
visibility = ["//:__subpackages__"],
|
|
deps = [
|
|
"//internal/attestation/snp",
|
|
"//internal/config",
|
|
"@com_github_golang_jwt_jwt_v5//:jwt",
|
|
"@com_github_google_go_sev_guest//abi",
|
|
"@com_github_google_go_sev_guest//kds",
|
|
"@com_github_google_go_sev_guest//verify/trust",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "verify_test",
|
|
srcs = ["verify_test.go"],
|
|
embed = [":verify"],
|
|
deps = [
|
|
"//internal/attestation/snp/testdata",
|
|
"//internal/logger",
|
|
"@com_github_stretchr_testify//assert",
|
|
],
|
|
)
|