feat(grafana)!: Variable for role attribute path mapping #443
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "grafana-keycloak-adjustments"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
BREAKING CHANGE: You need to add the
role_attribute_pathattribute to themonitoring_grafana_oauthdict.We now allow to configure the role attribute path mapping, because Keycloak by default does not map its realm / client roles into a
rolesfield, but instead usesresource_access.CLIENTID.roles.This was changed for simpler setups with Keycloak.
Otherwise, you would need to create a custom mapper for the roles property and enable it on the Grafana client.
To do so, we now also request the
rolesscope.Note: Our default now also explicitly maps users without a role to
Noneinstead ofViewer.3ba6bf247583518a383483518a3834dc05b059f1LGTM
Changing the default role to 'None' was way overdue
@ -67,2 +67,4 @@client_secret: "something-secret123"allow_assign_grafana_admin: false# For Keycloak: Instead of the lowercase grafana, please use the client id you chose.role_attribute_path: "contains(resource_access.grafana.roles[*], 'GrafanaAdmin') && 'GrafanaAdmin' || contains(resource_access.grafana.roles[*], 'Admin') && 'Admin' || contains(resource_access.grafana.roles[*], 'Editor') && 'Editor' || 'None'" # noqa yaml[line-length]could we use multiline yaml here? splitting at the ORs maybe?
feat(keycloak)!: Variable for role attribute path mappingto feat(grafana)!: Variable for role attribute path mappingdc05b059f1d9f9056141d9f90561419731ad41ab