mirror of
https://github.com/grafana/grafana.git
synced 2025-07-31 13:12:37 +08:00
ManagedServiceAccounts: Add a config option to disable the feature on-prem (#93571)
* ManagedServiceAccounts: Add a config option to disabled by default * Update log in pkg/services/extsvcauth/registry/service.go Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
This commit is contained in:
@ -245,6 +245,7 @@ type Cfg struct {
|
||||
IDResponseHeaderEnabled bool
|
||||
IDResponseHeaderPrefix string
|
||||
IDResponseHeaderNamespaces map[string]struct{}
|
||||
ManagedServiceAccountsEnabled bool
|
||||
|
||||
// AWS Plugin Auth
|
||||
AWSAllowedAuthProviders []string
|
||||
@ -1668,6 +1669,10 @@ func readAuthSettings(iniFile *ini.File, cfg *Cfg) (err error) {
|
||||
for _, provider := range util.SplitString(providers) {
|
||||
cfg.SSOSettingsConfigurableProviders[provider] = true
|
||||
}
|
||||
|
||||
// Managed Service Accounts
|
||||
cfg.ManagedServiceAccountsEnabled = auth.Key("managed_service_accounts_enabled").MustBool(false)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user