kms: add support for KES enclaves (#16139)

Signed-off-by: Andreas Auernhammer <hi@aead.dev>
This commit is contained in:
Andreas Auernhammer authored and GitHub committed 2022-12-04 02:34:24 -08:00
1 parent 90e37a8745
commit d882ba2cb4
3 files changed
+44 -19

No files matched your search

+1
View File
@@ -854,6 +854,7 @@ func handleKMSConfig() {
defaultKeyID := env.Get(config.EnvKESKeyName, "")
KMS, err := kms.NewWithConfig(kms.Config{
Endpoints: endpoints,
Enclave: env.Get(config.EnvKESEnclave, ""),
DefaultKeyID: defaultKeyID,
Certificate: certificate,
ReloadCertEvents: reloadCertEvents,