Skip to content

chore: align default credential provider API style#700

Merged
Xuanwo merged 2 commits intomainfrom
xuanwo/aws-style-audit
Mar 18, 2026
Merged

chore: align default credential provider API style#700
Xuanwo merged 2 commits intomainfrom
xuanwo/aws-style-audit

Conversation

@Xuanwo
Copy link
Copy Markdown
Member

@Xuanwo Xuanwo commented Feb 26, 2026

Summary

This PR aligns DefaultCredentialProvider / DefaultCredentialProviderBuilder API style across services using aws-v4 as the baseline.

Changes

  • Fix Oracle DefaultCredentialProvider::default() semantics to match new().
  • Add Oracle regression test to ensure default() and new() stay equivalent.
  • Export DefaultCredentialProviderBuilder from Volcengine provide_credential module.
  • Export DefaultCredentialProviderBuilder from Google and Oracle crate roots.
  • Make provide_credential module private in Oracle and Tencent (keep public re-exports).

Validation

  • cargo check -p reqsign-oracle -p reqsign-volcengine-tos -p reqsign-google -p reqsign-tencent-cos
  • cargo test -p reqsign-oracle test_default_matches_new

@Xuanwo Xuanwo merged commit d87031d into main Mar 18, 2026
48 checks passed
@Xuanwo Xuanwo deleted the xuanwo/aws-style-audit branch March 18, 2026 08:28
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.

1 participant