kms: remove support for compat secrets

also document how to activate the deprecated builtin provider
This commit is contained in:
Nicola Murino
2021-12-01 17:53:19 +01:00
parent 4df0ae82ac
commit 6ee51c5cc1
6 changed files with 11 additions and 89 deletions

View File

@@ -125,15 +125,6 @@ func NewPlainSecret(payload string) *Secret {
return NewSecret(SecretStatusPlain, payload, "", "")
}
// GetSecretFromCompatString returns a secret from the previous format
func GetSecretFromCompatString(secret string) (*Secret, error) {
plain, err := util.DecryptData(secret)
if err != nil {
return &Secret{}, errMalformedCiphertext
}
return NewSecret(SecretStatusPlain, plain, "", ""), nil
}
// Initialize configures the KMS support
func (c *Configuration) Initialize() error {
if c.Secrets.MasterKeyString != "" {