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

feat(ABFS): Support SAS and OAuth config for ABFS #11623

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

zhli1142015
Copy link
Contributor

No description provided.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 22, 2024
Copy link

netlify bot commented Nov 22, 2024

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit bc6cc65
🔍 Latest deploy log https://app.netlify.com/sites/meta-velox/deploys/67481084fdc3e10008f65b54

@zhli1142015
Copy link
Contributor Author

cc @majetideepak , thanks. I offline verified this change.
Please let me know if I should create a separate PR for the dependency change.

@majetideepak
Copy link
Collaborator

@zhli1142015 Thanks for this contribution! It is better to have a separate PR for the dependency change to test the code changes against a new image with these dependencies.

@zhli1142015
Copy link
Contributor Author

I see, here is the Pr for dep update, please help review it. Thanks.
#11633

@zhli1142015 zhli1142015 force-pushed the abfs_auth_more branch 3 times, most recently from 3460abc to 9cb4099 Compare November 26, 2024 07:22
@zhli1142015
Copy link
Contributor Author

@majetideepak , could you help to review the change?

velox/connectors/hive/storage_adapters/abfs/AbfsConfig.h Outdated Show resolved Hide resolved
return url_;
}

std::string urlWithSasToken() const {
Copy link
Collaborator

Choose a reason for hiding this comment

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

These APIs are only used for testing. Can we remove these, create the read/write clients here, and then use something like GetAccountInfo from the client object in the tests?
https://github.com/Azure/azure-sdk-for-cpp/blob/main/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/blob_client.hpp

Copy link
Contributor Author

@zhli1142015 zhli1142015 Nov 27, 2024

Choose a reason for hiding this comment

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

Updated. Only available function is getUrl. Others like GetAccountInfo need to retrieve info from remote server.

// account specific variant). The supported values are SharedKey, OAuth and SAS.
static std::string kAzureAccountAuthType{"fs.azure.account.auth.type"};

static std::string kAzureAccountKey{"fs.azure.account.key"};
Copy link
Collaborator

Choose a reason for hiding this comment

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

We also need to fix the config names to be consistent with other Velox filesystems.
can we use hive.abfs prefix instead of fs.azure?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These are user-facing configurations that have consistently been referred to by these names. Using a different prefix might cause confusion for users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants