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

Issues/OAK-10675 #1385

Merged
merged 24 commits into from
May 23, 2024
Merged

Issues/OAK-10675 #1385

merged 24 commits into from
May 23, 2024

Conversation

t-rana
Copy link
Contributor

@t-rana t-rana commented Mar 27, 2024

Added service principal support in oak-blob-cloud-azure

@t-rana t-rana marked this pull request as ready for review April 4, 2024 08:09
import java.util.Optional;
import java.util.Properties;

public class AzureDataStoreAccessManager {
Copy link
Contributor

Choose a reason for hiding this comment

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

Public methods of this class do not resolve access rights. This class rather provides CloudBlobContainer . I would rename it accordingly.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Renamed to AzureBlobContainerProvider

guava,
jsr305
jsr305,
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm very concerned about the amount of embeds here. Is this really needed? It will make the nundle bigger, and will make updates harder...

Copy link
Member

Choose a reason for hiding this comment

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

At least JSR305 is never necessary at run time AFAIK. It is only annotations relevant at compile time.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@reschke, we are using azure-identity library for migration to service principals from access key based authentication in azure. All these dependencies came transitively from azure-identity. I initially tried marking some of them as optional which helped in resolving the bundle to active state but when I configured the component to use service principals, it failed with NoClassDefFoundError exceptions meaning that they were indeed required at runtime and cannot be marked as optional.

Attaching the file of errors that I got and the corresponding dependency embedded.
dependencies_list.pdf

Copy link

Choose a reason for hiding this comment

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

@reschke @kwin do we have anything else to add regarding the embeds list? otherwise I'd suggest to go forward with the PR

cc @t-rana

Copy link
Contributor

Choose a reason for hiding this comment

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

I just wanted to make sure we know what we do :-)

@t-rana t-rana requested a review from reschke May 16, 2024 08:20
@smiroslav smiroslav merged commit a52b001 into apache:trunk May 23, 2024
2 checks 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
5 participants