The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
grafana/pkg/services/kmsproviders/kmsproviders.go

27 lines
697 B

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)
}
func NormalizeProviderID(id secrets.ProviderID) secrets.ProviderID {
if id == Legacy {
return Default
}
return id
}