Configure Admin users as Grafana Admins
Problem to solve
If you use Grafana with Gitlab as OAuth provider and disable regular logins (the current default), all users are configured as Viewer.
This means all the dashboards are read-only and you can't edit anything.
To solve this, you need to re-enable the admin account (requires a gitlab-ctl reconfigure
), login as admin and give access to another "regular" OAuth user.
Proposal
Automatically provision admin users (on Gitlab) as Grafana Admin users. This should also be done on update.
Alternatively, add a configuration option to provision some users as Admin or Editor.
Permissions and Security
There shouldn't be any security issue. Gitlab Admins are already all powerful.
Steps
-
Upstream issue https://github.com/grafana/grafana/issues/28892 -
Upstream PR https://github.com/grafana/grafana/pull/30025 -
Configure omnibus omnibus-gitlab#6401 -
Update Grafana in omnibus
Edited by Peter Leitzen