diff --git a/pkg/services/featuremgmt/registry.go b/pkg/services/featuremgmt/registry.go index 4845193014e..3af6aeb7e79 100644 --- a/pkg/services/featuremgmt/registry.go +++ b/pkg/services/featuremgmt/registry.go @@ -988,11 +988,12 @@ var ( Owner: grafanaSharingSquad, }, { - Name: "ssoSettingsApi", - Description: "Enables the SSO settings API and the OAuth configuration UIs in Grafana", - Stage: FeatureStagePublicPreview, - FrontendOnly: false, - Owner: identityAccessTeam, + Name: "ssoSettingsApi", + Description: "Enables the SSO settings API and the OAuth configuration UIs in Grafana", + Stage: FeatureStagePublicPreview, + AllowSelfServe: true, + FrontendOnly: false, + Owner: identityAccessTeam, }, { Name: "canvasPanelPanZoom", diff --git a/pkg/services/featuremgmt/toggles_gen.json b/pkg/services/featuremgmt/toggles_gen.json index b877d2e9af1..35e90a09023 100644 --- a/pkg/services/featuremgmt/toggles_gen.json +++ b/pkg/services/featuremgmt/toggles_gen.json @@ -480,13 +480,17 @@ { "metadata": { "name": "ssoSettingsApi", - "resourceVersion": "1708108588074", - "creationTimestamp": "2024-02-16T18:36:28Z" + "resourceVersion": "1708503560010", + "creationTimestamp": "2024-02-16T18:36:28Z", + "annotations": { + "grafana.app/updatedTimestamp": "2024-02-21 08:19:20.010283 +0000 UTC" + } }, "spec": { "description": "Enables the SSO settings API and the OAuth configuration UIs in Grafana", "stage": "preview", - "codeowner": "@grafana/identity-access-team" + "codeowner": "@grafana/identity-access-team", + "allowSelfServe": true } }, { diff --git a/pkg/services/featuremgmt/toggles_gen_test.go b/pkg/services/featuremgmt/toggles_gen_test.go index 946a52e4079..e1014d79063 100644 --- a/pkg/services/featuremgmt/toggles_gen_test.go +++ b/pkg/services/featuremgmt/toggles_gen_test.go @@ -49,8 +49,8 @@ func TestFeatureToggleFiles(t *testing.T) { if flag.Name != strings.TrimSpace(flag.Name) { t.Errorf("flag Name should not start/end with spaces. See: %s", flag.Name) } - if flag.AllowSelfServe && flag.Stage != FeatureStageGeneralAvailability { - t.Errorf("only allow self-serving GA toggles") + if flag.AllowSelfServe && !(flag.Stage == FeatureStageGeneralAvailability || flag.Stage == FeatureStagePublicPreview || flag.Stage == FeatureStageDeprecated) { + t.Errorf("only allow self-serving GA, PublicPreview and Deprecated toggles") } if flag.Owner == "" { t.Errorf("feature %s does not have an owner. please fill the FeatureFlag.Owner property", flag.Name)