Skip to content
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

implement support for SharedKey signature #186

Merged
merged 4 commits into from
Oct 20, 2023

Conversation

larshagencognite
Copy link
Contributor

This is the recommended signature scheme for Azure, and the only scheme that is supported by the Azurite emulator.

https://learn.microsoft.com/en-us/rest/api/storageservices/authorize-with-shared-key

This is the recommended signature scheme for Azure, and the only scheme
that is supported by the Azurite emulator.

https://learn.microsoft.com/en-us/rest/api/storageservices/authorize-with-shared-key
@larshagencognite
Copy link
Contributor Author

Not sure how this feature should be introduced, but I think it would be nice to have it as an opt-in feature to begin with. There is a lot of parallel code in SharedKeyLiteAuthentication.java now, and it would probably be better to put the logic in two separate classes, but not sure how that would work with the annotations.

Happy to take feedback on the direction.

@larshagencognite
Copy link
Contributor Author

I have validated that I am able to sign in to Azurite using this new signing method, which was not possible with SharedKeyLite.

Copy link
Member

@nacx nacx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Overall LGTM.

larshagencognite and others added 3 commits October 19, 2023 17:13
Co-authored-by: Ignasi Barrera <nacx@apache.org>
@larshagencognite
Copy link
Contributor Author

@nacx Do you agree with the approach of adding a new authType, or should we have a new property like jclouds.azureblob.sigType defaulting to SharedKeyLite?

@larshagencognite larshagencognite marked this pull request as ready for review October 20, 2023 08:38
@nacx
Copy link
Member

nacx commented Oct 20, 2023

I think adding the new authType is fine and easy to use/understand for users, so this approach LGTM.

@nacx nacx merged commit a2628f9 into apache:master Oct 20, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants