-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
repository-azure plugin: SAS authentication fails with endpoint_suffix #2462
Comments
@raphlopez could you please try without using |
@reta it does work with Looking back, I could see this being categorized as a feature request more than a bug report - let me know if you'd like me to adjust the title/tags accordingly. |
I think that 1.3.2 ship just sailed, hasn't it? |
Yes, you are right, I discovered that yesterday at open hours, thanks! |
Generally those releases are for security fixes only. While backporting other fixes and even features seems nice because one feels like they are doing a no-risk upgrade, it doesn't always work out that way. |
I agree, thank you |
Describe the bug
Loading the
repository-azure
plugin fails when providing a SAS token rather than a Storage Account key for Azure authentication.To Reproduce
Steps to reproduce the behavior:
azure.client.default.account
azure.client.default.sas_token
azure.client.default.endpoint_suffix
repository-azure
pluginExpected behavior
According to the checks in buildConnectString() method, authentication can be done by providing either a storage account name and key, or a storage account name and a SAS token.
However, providing only a SAS_TOKEN_SETTING results in the following error on plugin load (from above trace):
The error message above points to the ENDPOINT_SUFFIX_SETTING, which has a dependency on storage account name and key only (i.e. does not account for SAS token).
Given that SAS_TOKEN_SETTING can be set and is mutually exclusive with KEY_SETTING, the ENDPOINT_SUFFIX_SETTING's dependencies should account for this alternative authentication method.
Plugins
repository-azure
The text was updated successfully, but these errors were encountered: