Skip to content

OAK-9722 Allow replacing default Azure SAS token generator#519

Closed
jelmini wants to merge 5 commits intoapache:trunkfrom
jelmini:issues/OAK-9722_presigned_uri_strategy
Closed

OAK-9722 Allow replacing default Azure SAS token generator#519
jelmini wants to merge 5 commits intoapache:trunkfrom
jelmini:issues/OAK-9722_presigned_uri_strategy

Conversation

@jelmini
Copy link
Copy Markdown
Contributor

@jelmini jelmini commented Mar 15, 2022

No description provided.

@jelmini
Copy link
Copy Markdown
Contributor Author

jelmini commented Mar 15, 2022

@smiroslav @mattvryan Could you please review this PR? Thanks.

azureBlobStoreBackend = new AzureBlobStoreBackend();
if (null != properties) {
azureBlobStoreBackend.setProperties(properties);
azureBlobStoreBackend.setSasTokenGenerator(sasTokenGenerator);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This doesn't look right to me. Why set the sasTokenGenerator only when there are properties?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Right. It should be outside the if clause.

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public interface SasTokenGenerator {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think this interface should have some basic documentation and the new sas package should have an explicit export version in a package-info.java file. I understand the interface is intended to be implemented by 3rd parties and therefore must have the export version managed explicitly.

Copy link
Copy Markdown
Contributor Author

@jelmini jelmini Apr 5, 2022

Choose a reason for hiding this comment

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

Yes, during tests I realised explicit export version should be added.
This PR should have been a draft PR, as the goal was to receive early feedback.

Copy link
Copy Markdown
Contributor

@mreutegg mreutegg left a comment

Choose a reason for hiding this comment

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

This PR also contains changes unrelated to this issue under oak-lucene.

@jelmini
Copy link
Copy Markdown
Contributor Author

jelmini commented Apr 5, 2022

This PR also contains changes unrelated to this issue under oak-lucene.

Hmm, weird. I have pushed a single commit with changes only to oak-blob-cloud-azure, but now this PR thinks other unrelated commits were added to it... I don't know how that could happen.
In case we continue with this PR, I will rebase the relevant commit on top of trunk to get rid of those spurious commits.

@jelmini jelmini closed this Apr 21, 2022
@jelmini jelmini deleted the issues/OAK-9722_presigned_uri_strategy branch April 21, 2022 12:43
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.

4 participants