-
Notifications
You must be signed in to change notification settings - Fork 16
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
Store access token in secureJsonData #277
Conversation
4c0f65c
to
5d6633d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for starting this. I tested this with these recommended changes here and it seems to work. The only thing missing is using the secure data:
in settings.go
add something like the following before the return statement
if token, exists := config.DecryptedSecureJSONData["accessToken"]; exists {
s.AccessToken = token
}
5d6633d
to
ddd9576
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure that my approval matters, but this works perfectly!
It does, thank you for testing this! |
Is there anything we can do to help accelerate releasing this? |
You can put pressure on me. Just kidding, but asking for it is enough. As usual, I can't promise anything, but I'll try releasing a new version this week. |
I haven't gotten to it yet. The biggest stopper for me is that I have to test the changes manually, and I do this so infrequently, that I lose time remembering how to run a particular version of Grafana locally. |
@nineinchnick I tested the changes from my end and it worked with my setup; although, I was using a production trino instance so it was not something had to setup manually. The grafana piece was just running the plugin locally in a docker container. I wrote up these notes to remind me of what I need to do get the plugin running in docker and then connect to
|
35d292e
to
ea0df39
Compare
ea0df39
to
3b70906
Compare
I added E2E tests, released v1.0.10 and submitted it to Grafana for review. Hopefully it'll only take a few days, but I wouldn't be surprised if it'll get reviewed after the new year. |
1.0.10 has been published! Thanks everyone for your patience: https://grafana.com/grafana/plugins/trino-datasource/ |
Ref: https://grafana.com/developers/plugin-tools/how-to-guides/data-source-plugins/add-authentication-for-data-source-plugins#store-configuration-in-securejsondata