feat: add per-user authentication#2064
feat: add per-user authentication#2064christos-diamantis wants to merge 35 commits intografana:mainfrom
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. :) |
|
any update? |
|
any update on this? |
|
@matwijec any update? |
thanks for the fix. I just tried this feature (and encountered pointed errors) but I'm not a maintainer |
Sorry, thought you were a maintainer! What errors did you encountered however? Can you please attach errors and screenshots? |
|
@zoltanbedi any update on this? |
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