add build tags to disable kms providers

This commit is contained in:
Nicola Murino
2020-12-02 09:44:18 +01:00
parent 87b51a6fd5
commit a67276ccc2
13 changed files with 132 additions and 35 deletions

View File

@@ -50,6 +50,15 @@ const (
SecretStatusRedacted SecretStatus = "Redacted"
)
const (
localProviderName = "Local"
builtinProviderName = "Builtin"
awsProviderName = "AWS"
gcpProviderName = "GCP"
vaultProviderName = "VaultTransit"
disabledProviderName = "Disabled"
)
// Configuration defines the KMS configuration
type Configuration struct {
Secrets Secrets `json:"secrets" mapstructure:"secrets"`