Skip to content

Integrate AbfsVendedTokenProvider to the unity catalog - #1176

Merged
tdas merged 3 commits into
unitycatalog:mainfrom
openinx:1175-integrate-abfs-token-provider
Nov 11, 2025
Merged

tdas merged 3 commits into
unitycatalog:mainfrom
openinx:1175-integrate-abfs-token-provider

Conversation

@openinx

@openinx openinx commented Nov 7, 2025

Copy link
Copy Markdown
Collaborator

PR Checklist

  • A description of the changes is added to the description of this PR.
  • If there is a related issue, make sure it is linked to this PR.
  • If you've fixed a bug or added code that should be tested, add tests!
  • If you've added or modified a feature, documentation in docs is updated

Description of changes

Related issue: #1175

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I think we need to remove those azurefs packages import here, otherwise it will require use to add the hadoop-azure dependency even if people just access the aws s3 storage. Which will highly confuse the end users.

My suggestion is making those to be some static defined configuration keys in the UCHadoopConf, that will be better.

@@ -1,8 +1,8 @@
package io.unitycatalog.spark.auth;

import static org.apache.hadoop.fs.azurebfs.constants.ConfigurationKeys.FS_AZURE_ACCOUNT_AUTH_TYPE_PROPERTY_NAME;

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Since the CredPropsUtil is a common code path that will also be used by AwsVendedTokenProvider, so we definitely don't want to add the hadoop-azure when runing spark job on top of the aws s3.

That's why I removed all those hadoop-azure dependency, so that we won't mess up the cloud vendor 's runtime.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

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.

That makes complete sense. thank you for catching that.

How do we make sure that we never break this in the future? today every test was passing using these imports. That means that we are compiling with azure libraries as a compile-time dependency... isnt it? if so, should we change it to not dependent on azure/aws/gcs libraries and everything should still compile and work?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

One simple thought, is adding an checkstyle enforcement rules in the checkstyle-dev.xml to explicitly forbidden any aws, azure, gcp filesystem imports in the production code base.

@openinx
openinx force-pushed the 1175-integrate-abfs-token-provider branch from b9b0cc1 to 1782e54 Compare November 11, 2025 18:08
@openinx openinx closed this Nov 11, 2025
@openinx openinx reopened this Nov 11, 2025
@openinx openinx closed this Nov 11, 2025
@openinx openinx reopened this Nov 11, 2025

@tdas tdas left a comment

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.

LGTM

@tdas
tdas merged commit 7a0a99e into unitycatalog:main Nov 11, 2025
openinx added a commit to openinx/unitycatalog that referenced this pull request Nov 14, 2025
…1176)

**PR Checklist**

- [x] A description of the changes is added to the description of this
PR.
- [x] If there is a related issue, make sure it is linked to this PR.
- [x] If you've fixed a bug or added code that should be tested, add
tests!
- [ ] If you've added or modified a feature, documentation in `docs` is
updated

**Description of changes**

Related issue: unitycatalog#1175

---------

Signed-off-by: Zheng Hu <[email protected]>
tdas pushed a commit that referenced this pull request Nov 14, 2025
**PR Checklist**

- [x] A description of the changes is added to the description of this
PR.
- [x] If there is a related issue, make sure it is linked to this PR.
- [x] If you've fixed a bug or added code that should be tested, add
tests!
- [ ] If you've added or modified a feature, documentation in `docs` is
updated

**Description of changes**

Backport [PR
change](#1176) of
#1175 to branch-0.3
The whole backport progress is here:
#1163

Signed-off-by: Zheng Hu <[email protected]>
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