zy-kkk opened a new pull request, #55760:
URL: https://github.com/apache/doris/pull/55760
### What problem does this PR solve?
#### Overview:
This PR refactors the vended credentials system by introducing a unified
architecture to support multiple data sources (Iceberg, Paimon) with better
abstraction and
extensibility.
#### Key Changes:
##### New Architecture:
- **`AbstractVendedCredentialsProvider`**: Abstract base class providing
unified credential handling workflow
- **`VendedCredentialsFactory`**: Factory pattern for creating appropriate
credential providers
- **`CredentialUtils`**: Utility class for cloud storage property
filtering and backend property extraction
##### Removed Components:
- `CredentialExtractor` interface and its implementations
(`IcebergS3CredentialExtractor`, `PaimonOssCredentialExtractor`)
- Scattered credential handling logic across different modules
##### Enhanced Features:
- Cloud storage property filtering with support for s3, oss, cos, obs, gs,
azure prefixes
- Unified use` StorageProperties.createAll()` integration for consistent
format conversion
- Improved error handling and graceful degradation
- Thread-safe singleton pattern for credential providers
##### Updated Components:
- `IcebergVendedCredentialsProvider`: Now extends
AbstractVendedCredentialsProvider
- `PaimonVendedCredentialsProvider`: Now extends
AbstractVendedCredentialsProvider
- `IcebergScanNode`、`IcebergTableSink`、`PaimonScanNode`: Updated to use
unified credential system
##### Benefits:
- Simplified credential management across data sources
- Better code maintainability and extensibility
- Consistent behavior and error handling
- Reduced code duplication
### Release note
None
### Check List (For Author)
- Test <!-- At least one of them must be included. -->
- [ ] Regression test
- [ ] Unit Test
- [ ] Manual test (add detailed scripts or steps below)
- [ ] No need to test or manual test. Explain why:
- [ ] This is a refactor/code format and no logic has been changed.
- [ ] Previous test can cover this change.
- [ ] No code files have been changed.
- [ ] Other reason <!-- Add your reason? -->
- Behavior changed:
- [ ] No.
- [ ] Yes. <!-- Explain the behavior change -->
- Does this need documentation?
- [ ] No.
- [ ] Yes. <!-- Add document PR link here. eg:
https://github.com/apache/doris-website/pull/1214 -->
### Check List (For Reviewer who merge this PR)
- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR should
merge into -->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]