Skip to content
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

Is it possible to remove the required "User management" permission when doing the data source test #267

Open
FingerlessGlov3s opened this issue Oct 14, 2024 · 2 comments

Comments

@FingerlessGlov3s
Copy link

In my CheckMK setup, I use a read only user to connect Grafana to the CheckMK to gather the data. The test will fail unless you give it the User management permission, but all my reports work fine without the permission, so I assume it's only required for the test to function.

Would be possible to remove this requirement for the test to pass?

@BenediktSeidl
Copy link
Contributor

we currently need the "User managment" permission to check if the user is an automation user:

async isAutomationUser(username: string): Promise<boolean> {
const response = await this.api<{ extensions: { auth_option: { auth_type: string } } }>({
url: `/objects/user_config/${username}`,
});
return response.data['extensions']['auth_option']['auth_type'] === 'automation';
}
as this is a requirement for the autocompleter endpoints. but we should check if this is still necessary, or invest time in a better workaround.

checking if the current user is an automation user is the last check in the test connection code, so you don't miss anything by ignoring the error, but we should still look into that!

@FingerlessGlov3s
Copy link
Author

When I do to edit any current graphs, it does auto complete the metrics... or are you speaking of a different autocompleter?

Granted not sure my user is an automation user or a basic user, that I would need to check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants