mirror of
https://github.com/grafana/grafana.git
synced 2026-08-18 17:15:08 -05:00
Encryption: Move secrets migrations into secrets.Migrator (#51014)
This commit is contained in:
@@ -69,3 +69,9 @@ func KeyLabel(scope string, providerID ProviderID) string {
|
||||
type BackgroundProvider interface {
|
||||
Run(ctx context.Context) error
|
||||
}
|
||||
|
||||
// Migrator is responsible for secrets migrations like re-encrypting or rolling back secrets.
|
||||
type Migrator interface {
|
||||
ReEncryptSecrets(ctx context.Context) error
|
||||
RollBackSecrets(ctx context.Context) error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user