Skip to content

Conversation

@github-actions
Copy link
Contributor

Cherry-picked from #58740

…ialsProviderChain (#58740)

### Changes

This update enables Catalogs to automatically load credentials for S3 or
S3-compatible storage using AwsCredentialsProviderChain. Users no longer
need to explicitly specify AK/SK in Catalog properties. The feature
provides stronger support for cloud-native environments such as IRSA,
containers, and EC2 Instance Profiles. ↳

All credential resolution is unified through
DefaultDorisAwsCredentialsProviderChain, ensuring consistent and secure
handling across the project.

 Key Behavior

#### No need to configure AK/SK manually:

Credentials can be automatically derived from IRSA, WebIdentity,
container metadata, EC2 instance profile, environment variables, system
properties, or AWS profile files. ↳

#### Unified credential resolution:
All modules use DefaultDorisAwsCredentialsProviderChain to avoid
inconsistent custom implementations. ↳

eg
```

CREATE CATALOG `iceberg_fs_catalog` PROPERTIES (
"type" = "iceberg",
"iceberg.catalog.type" = "hadoop",
"warehouse" = "s3://<bucket>/iceberg/fs/s3/warehouse/",
"s3.region"="us-east-1",
"s3.endpoint" = "s3.us-east-1.amazonaws.com"
); 
```
@github-actions github-actions bot requested a review from morrySnow as a code owner December 15, 2025 14:30
@hello-stephen
Copy link
Contributor

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@dataroaring dataroaring reopened this Dec 15, 2025
@hello-stephen
Copy link
Contributor

run buildall

@morrySnow morrySnow merged commit 5cc69b3 into branch-3.1 Dec 18, 2025
22 of 23 checks passed
@morrySnow morrySnow deleted the auto-pick-58740-branch-3.1 branch December 18, 2025 06:17
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.

5 participants