Skip to content

[#5778] feat(aliyun-bundles)support OSS secret key credential#5814

Merged
jerryshao merged 2 commits intoapache:mainfrom
sunxiaojian:OSS-secret-key-credential
Dec 11, 2024
Merged

[#5778] feat(aliyun-bundles)support OSS secret key credential#5814
jerryshao merged 2 commits intoapache:mainfrom
sunxiaojian:OSS-secret-key-credential

Conversation

@sunxiaojian
Copy link
Collaborator

What changes were proposed in this pull request?

Support OSS secret key credential

Why are the changes needed?

Fix: # (5778)

How was this patch tested?

IcebergRESTOSSSecretIT

@sunxiaojian sunxiaojian force-pushed the OSS-secret-key-credential branch 3 times, most recently from 23ddbbe to 9b54973 Compare December 10, 2024 11:16
@jerryshao jerryshao requested a review from FANNG1 December 10, 2024 12:45
@sunxiaojian
Copy link
Collaborator Author

@FANNG1 PTAL

@FANNG1
Copy link
Contributor

FANNG1 commented Dec 11, 2024

LGTM except for minor comments, could you do extra work?

  1. add test in TestCredentialFactory
  2. remove ICEBERG_OSS_ACCESS_KEY_ID and ICEBERG_OSS_ACCESS_KEY_SECRET from catalogPropertiesToClientKeys in CatalogWrapper as this OSS secret key provider is supported in this PR.

* @param secretAccessKey The OSS static secret access key.
*/
public OSSSecretKeyCredential(String accessKeyId, String secretAccessKey) {
Preconditions.checkNotNull(accessKeyId, "OSS access key Id should not null");
Copy link
Contributor

Choose a reason for hiding this comment

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

could you reuse validate here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed

@sunxiaojian
Copy link
Collaborator Author

LGTM except for minor comments, could you do extra work?

  1. add test in TestCredentialFactory
  2. remove ICEBERG_OSS_ACCESS_KEY_ID and ICEBERG_OSS_ACCESS_KEY_SECRET from catalogPropertiesToClientKeys in CatalogWrapper as this OSS secret key provider is supported in this PR.

ok, fixed

@sunxiaojian sunxiaojian force-pushed the OSS-secret-key-credential branch from c41d9a5 to acf90bf Compare December 11, 2024 04:07
@sunxiaojian sunxiaojian force-pushed the OSS-secret-key-credential branch from acf90bf to 01330b4 Compare December 11, 2024 04:19
@FANNG1
Copy link
Contributor

FANNG1 commented Dec 11, 2024

LGTM

@jerryshao jerryshao merged commit 26a8b37 into apache:main Dec 11, 2024
Abyss-lord pushed a commit to Abyss-lord/gravitino that referenced this pull request Dec 12, 2024
…pache#5814)

### What changes were proposed in this pull request?

Support OSS secret key credential

### Why are the changes needed?

Fix: [# (5778)](apache#5778)

### How was this patch tested?

IcebergRESTOSSSecretIT
Abyss-lord pushed a commit to Abyss-lord/gravitino that referenced this pull request Dec 13, 2024
…pache#5814)

### What changes were proposed in this pull request?

Support OSS secret key credential

### Why are the changes needed?

Fix: [# (5778)](apache#5778)

### How was this patch tested?

IcebergRESTOSSSecretIT
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.

[Subtask] support OSS secret key credential

3 participants