SecretsManager: Consolidation service and ability to run via cli (#108774)
* list all encrypted values and count * separate interfaces * add time filter to global queries * initial secrets consolidation * Revert defaults * More verbose description of the operation * Add consolidation tests and tracing * Fix lint * Revert debug log
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package secretsconsolidation
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/grafana/grafana/pkg/cmd/grafana-cli/utils"
|
||||
"github.com/grafana/grafana/pkg/server"
|
||||
)
|
||||
|
||||
func ConsolidateSecrets(_ utils.CommandLine, runner server.Runner) error {
|
||||
err := runner.SecretsConsolidationService.Consolidate(context.Background())
|
||||
return err
|
||||
}
|
||||
Reference in New Issue
Block a user