-
Notifications
You must be signed in to change notification settings - Fork 34
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
Azure credentials in common format #459
Conversation
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 this PR Sergey! My main concern here is that I would much rather have this "new" code in the SDK, even if the OBO implementation is not final rather than having so many special cases here. Is there any major blocker for doing that that I'm missing?
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 the changes @kostrse! Changes mostly looks good to me but I think there are still some bits we can do in the SDK instead.
@kostrse can you merge |
Done. |
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!
ADX datasource currently supports Client Secret and On-Behalf-Of authentication types via own credentials format and implementation of authentication logic.
Other Azure datasources share the same credentials format and reuse shared credentials logic from the Grafana Azure SDK. Features like Managed Identity support are shared via common implementation.
This PR attempts to migrate ADX backend to the new common credentials format (#360) to take advantage of Grafana Azure SDK and potentially support Managed Identity (#362).
Changes:
azcredentials.AzureManagedIdentityCredentials
(SDK),azcredentials.AzureClientSecretCredentials
(SDK),adxcredentials.AzureClientSecretOboCredentials
(ADX), all derived from the commonazcredentials.AzureCredentials
in Grafana Azure SDK.DatasourceSettings
doesn't have fields related to credentials anymore, credentials encapsulated inazcredentials.AzureCredentials
.adxcredentials.FromDatasourceData
tries first to parse credentials in the new common format and fallbacks to the legacy format.This PR doesn't update UI so end user experience doesn't change yet. UI changes will be done separately (#361).
Fixes #360
Related to #362