grafana/pkg/services/kmsproviders/kmsproviders.go
Joan López de la Franca Beltran 532e71554f
Usage Stats: Add metrics to count enabled kms providers per kind (#43640)
* Usage Insights: Add metrics to count enabled kms providers per kind

* Add backwards compatibility
2022-01-07 13:52:28 +01:00

20 lines
574 B
Go

package kmsproviders
import "github.com/grafana/grafana/pkg/services/secrets"
const (
// Legacy is used for historical reasons (keeping backwards).
// In older versions, the default value was a non-valid identifier,
// so it was updated to a valid one. See Default.
Legacy = "secretKey"
// Default is the identifier of the default kms provider
// which fallbacks to Grafana's secret key. See the
// defaultprovider package for further information.
Default = "secretKey.v1"
)
type Service interface {
Provide() (map[secrets.ProviderID]secrets.Provider, error)
}