-
Notifications
You must be signed in to change notification settings - Fork 40
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
Migrate client secret auth to Grafana Azure SDK #358
Migrate client secret auth to Grafana Azure SDK #358
Conversation
(Asked a couple of questions about scope since I saw #356. Sorry if you might have discussed these with someone else on the team or if these are obvious for you.) |
Nice - this is much cleaner than before. Tested with app registration and OBO and it's working as expected. I'll leave the approval of this PR for @fridgepoet. |
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.
Actually I'm getting invalid Azure credentials: the cloud '' not supported
. Seems like ADX was not strict about setting azureCloud
in the json data, so empty string needs to be treated as public cloud. Can you do that in auth.go?
Co-authored-by: Shirley <4163034+fridgepoet@users.noreply.github.com>
Thanks for pointing at this. Fixed. Unset cloud defaults to public now, any other unknown values fail. |
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 applying changes! Tested and it's working as expected.
@fridgepoet looks like all of your comments have been addressed. Is it okay to merge?
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.
Yes!
Introduced dependency on the external module github.com/grafana/grafana-azure-sdk-go.
App Registration (client secret) authentication was migrated to the library. OBO still implemented in ADX because it's not supported by the library.