[v11.0.x] OAuth: Make sub claim required for generic oauth behind feature toggle (#86118)
OAuth: Make sub claim required for generic oauth behind feature toggle (#85065)
* Add feature toggle for sub claims requirement
* OAuth: require valid auth id
* Fix feature toggle description
(cherry picked from commit 2f3a01f79f)
Co-authored-by: Karl Persson <kalle.persson@grafana.com>
This commit is contained in:
co-authored by
Karl Persson
parent
b49a40d319
commit
524c590462
@@ -1181,6 +1181,14 @@ var (
|
||||
FrontendOnly: true,
|
||||
Owner: grafanaObservabilityMetricsSquad,
|
||||
},
|
||||
{
|
||||
Name: "oauthRequireSubClaim",
|
||||
Description: "Require that sub claims is present in oauth tokens.",
|
||||
Stage: FeatureStageExperimental,
|
||||
Owner: identityAccessTeam,
|
||||
HideFromDocs: true,
|
||||
HideFromAdminPage: true,
|
||||
},
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
@@ -157,3 +157,4 @@ betterPageScrolling,GA,@grafana/grafana-frontend-platform,false,false,true
|
||||
scopeFilters,experimental,@grafana/dashboards-squad,false,false,false
|
||||
ssoSettingsSAML,experimental,@grafana/identity-access-team,false,false,false
|
||||
usePrometheusFrontendPackage,experimental,@grafana/observability-metrics,false,false,true
|
||||
oauthRequireSubClaim,experimental,@grafana/identity-access-team,false,false,false
|
||||
|
||||
|
@@ -638,4 +638,8 @@ const (
|
||||
// FlagUsePrometheusFrontendPackage
|
||||
// Use the @grafana/prometheus frontend package in core Prometheus.
|
||||
FlagUsePrometheusFrontendPackage = "usePrometheusFrontendPackage"
|
||||
|
||||
// FlagOauthRequireSubClaim
|
||||
// Require that sub claims is present in oauth tokens.
|
||||
FlagOauthRequireSubClaim = "oauthRequireSubClaim"
|
||||
)
|
||||
|
||||
@@ -2032,6 +2032,23 @@
|
||||
"frontend": true,
|
||||
"allowSelfServe": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"metadata": {
|
||||
"name": "oauthRequireSubClaim",
|
||||
"resourceVersion": "1711371458317",
|
||||
"creationTimestamp": "2024-03-25T10:50:29Z",
|
||||
"annotations": {
|
||||
"grafana.app/updatedTimestamp": "2024-03-25 12:57:38.317427693 +0000 UTC"
|
||||
}
|
||||
},
|
||||
"spec": {
|
||||
"description": "Require that sub claims is present in oauth tokens.",
|
||||
"stage": "experimental",
|
||||
"codeowner": "@grafana/identity-access-team",
|
||||
"hideFromAdminPage": true,
|
||||
"hideFromDocs": true
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user