在Grafana中的用户角色正在恢复为查看者。

huangapple go评论82阅读模式
英文:

User Role in Grafana is reverting to Viewer

问题

描述

在Kubernetes中部署了Grafana v7.3.6,并集成了Azure AD以进行登录。

有一个用户最初被分配了Viewer角色,而且已经有一段时间了,我们决定将他分配为EditorAdmin角色,而不是Viewer

从Grafana Web-UI更改权限如预期那样正常工作,但大约在7或10天后,它会恢复到Viewer状态。

PS. 我们的AzureAD专家表示,他已更新了与该用户相关的Azure配置/角色。

我尝试过的

  • 我尝试了EditorAdmin角色,但无论如何都会被还原。
  • 我尝试重新启动Grafana POD(在更新角色后)并查看是否会导致权限被还原,但没有。
英文:

Description

Having Grafana v7.3.6 deployed in Kubernetes, and integrated with Azure AD for logging in.

There is a user that initially had the Viewer role assigned and it's been a while since we decided to assign him the Editor or Admin Role instead of Viewer.

Changing the permission from Grafana Web-UI works fine as expected, but after like 7 or 10 days, it reverts back to Viewer.

PS. Our AzureAD specialist stated that he has updated the Azure configs/roles relevant to that user.

What I have tried

  • I have tried both Editor and Admin roles but no matter what it is being reverted.
  • I have tried to restart the Grafana POD (After updating the Role) and see if it can cause the permissions to be reverted but it didn't.

答案1

得分: 1

这是正确的:

> 在每次登录时,用户组织角色将被重置以匹配AzureAD的应用程序角色,并且他们的组织成员身份将被重置为默认组织。

文档链接:https://grafana.com/docs/grafana/latest/setup-grafana/configure-security/configure-authentication/azuread/#map-roles

配置正确的角色映射,以便用户在AD中具有所需的角色。

或者跳过组织角色同步,并通过用户界面管理角色。

您的Grafana版本相当旧,因此您可能需要升级它以使用所有提到的Grafana Azure AD配置选项。

英文:

That's correct:

> On every login the user organization role will be reset to match AzureAD’s application role and their organization membership will be reset to the default organization.

Doc: https://grafana.com/docs/grafana/latest/setup-grafana/configure-security/configure-authentication/azuread/#map-roles

Configure proper role mapping, so user will have desired role in the AD.

Or skip that org role sync and manage roles via UI.

You have quite old Grafana, so you may need to upgrade it to use all mentioned Grafana Azure AD config options.

huangapple
  • 本文由 发表于 2023年7月11日 14:44:18
  • 转载请务必保留本文链接:https://go.coder-hub.com/76659294.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定