SecureValues: Run mutate and validation hooks in service layer (#109379)

* SecureValues: Run mutate and validation hooks in service layer

* add some unit tests
This commit is contained in:
Matheus Macabu
2025-08-08 13:15:23 +02:00
committed by GitHub
parent 71b6149492
commit 01c1a6ce5b
12 changed files with 418 additions and 20 deletions
+3
View File
@@ -45,6 +45,7 @@ import (
cipher "github.com/grafana/grafana/pkg/registry/apis/secret/encryption/cipher/service"
encryptionManager "github.com/grafana/grafana/pkg/registry/apis/secret/encryption/manager"
secretinline "github.com/grafana/grafana/pkg/registry/apis/secret/inline"
secretmutator "github.com/grafana/grafana/pkg/registry/apis/secret/mutator"
secretsecurevalueservice "github.com/grafana/grafana/pkg/registry/apis/secret/service"
secretvalidator "github.com/grafana/grafana/pkg/registry/apis/secret/validator"
appregistry "github.com/grafana/grafana/pkg/registry/apps"
@@ -437,6 +438,8 @@ var wireBasicSet = wire.NewSet(
secretsecurevalueservice.ProvideSecureValueService,
secretvalidator.ProvideKeeperValidator,
secretvalidator.ProvideSecureValueValidator,
secretmutator.ProvideKeeperMutator,
secretmutator.ProvideSecureValueMutator,
secretmigrator.NewWithEngine,
secretdatabase.ProvideDatabase,
wire.Bind(new(secretcontracts.Database), new(*secretdatabase.Database)),