-
Notifications
You must be signed in to change notification settings - Fork 482
Add per-user authentication feature #2064
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Add per-user authentication feature #2064
Conversation
|
@christos-diamantis thanks for your PR. I'll take a look at it shortly. |
|
Did a quick review:
|
|
Implemented a helper flow that runs when per user auth is enabled. Feel free to test thoroughly and propose or do any changes if needed. :) |
This PR introduces per-user authentication to the Grafana Zabbix datasource plugin. When enabled, Grafana users are mapped to corresponding Zabbix users, and all API requests are performed using the permissions of the mapped Zabbix user. This allows organizations to fully leverage Zabbix RBAC and audit capabilities directly from Grafana.
Key Features
New option in the datasource config to enable/disable per-user authentication.
Admins can choose whether to map users by Grafana username or email.
The plugin will generate and use Zabbix API tokens for each user session, ensuring secure and isolated access.
If a Grafana user does not exist in Zabbix, a clear error is shown and access is denied.
When per-user authentication is disabled, the plugin continues to use the global Zabbix credentials as before.
How It Works
Configuration
Testing
Documentation
The README and in-app tooltips have been updated to explain the new feature and its requirements.
Feel free to test thoroughly and propose or do any changes if needed.
Closes #2016