SecretsManager: Add base encryption manager (#107562)
Co-authored-by: Michael Mandrus <michael.mandrus@grafana.com> Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com>
This commit is contained in:
co-authored by
Michael Mandrus
Matheus Macabu
parent
93c14c52da
commit
4d8678c7f2
@@ -4,11 +4,6 @@ import (
|
||||
"context"
|
||||
)
|
||||
|
||||
const (
|
||||
AesCfb = "aes-cfb"
|
||||
AesGcm = "aes-gcm"
|
||||
)
|
||||
|
||||
type Cipher interface {
|
||||
Encrypter
|
||||
Decrypter
|
||||
@@ -21,8 +16,3 @@ type Encrypter interface {
|
||||
type Decrypter interface {
|
||||
Decrypt(ctx context.Context, payload []byte, secret string) ([]byte, error)
|
||||
}
|
||||
|
||||
type Provider interface {
|
||||
ProvideCiphers() map[string]Encrypter
|
||||
ProvideDeciphers() map[string]Decrypter
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user