-
Notifications
You must be signed in to change notification settings - Fork 12.2k
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
Add basic auth authentication support #2218
Comments
yea, I have definitely seen this pain. One other solution that I would like to do is to allow api authentication with username/pass |
Yup, I could see that working too |
Another thought would be to expose the hash / salt function to an external CLI tool. Then we can manually move the hash into the database |
@pabelanger was thinking along similar lines |
would be nice to not have a plain text password in the automation script |
It would be great to have the api authentication with username/pass, it would solve automation deployments |
You can now use the api with username password using a standard basic auth header (integrated into most http client libs) ❯curl -u admin http://localhost:3000/api/org
Enter host password for user 'admin':
{"id":1,"name":"Main Org."} |
this also works,
|
Thank!!!! |
Currently, grafana exposes the admin_user and admin_password in the .ini file; this is convenient. As such, I'm requesting we also expose and admin_api_key via the .ini file.
The purpose of this is to help with automated depolyments of grafana. There is no method exposed currently that allows for an initial api_key to be provisioned. Current steps require logging into GUI as admin user and manually adding it.
The text was updated successfully, but these errors were encountered: