Skip to content

Revert "fix(services/s3): use role_arn from environment or profile (#8623)" - #8634

Merged
Xuanwo merged 1 commit into
mainfrom
xuanwo/revert-8623-s3-role-arn
Nov 22, 2026
Merged

Xuanwo merged 1 commit into
mainfrom
xuanwo/revert-8623-s3-role-arn

Conversation

@Xuanwo

@Xuanwo Xuanwo commented Nov 22, 2026

Copy link
Copy Markdown
Member

Which issue does this PR close?

Refs #4178.

Rationale for this change

AWS profile loading, environment precedence, AssumeRole and web identity selection, and STS endpoint resolution belong in Reqsign. That follows the decision in #4182 and the direction in apache/reqsign#685.

The fallback added in #8623 skips profiles that specify source_profile or credential_source, while a bare AWS_ROLE_ARN or profile role_arn can trigger plain AssumeRole. AWS uses AWS_ROLE_ARN for web identity and defines profile role assumption with a credential source. With config loading enabled, the new wrapper can also use explicitly supplied access_key_id and secret_access_key to sign an STS request and then use the assumed role for S3, changing the caller's identity.

This revert removes the 822 lines added to the S3 backend, including the credential wrapper and its mock STS tests, before release. Reqsign already implements AssumeRoleChainCredentialProvider for role_arn with source_profile in apache/reqsign#954, which is included in v0.20.9-rc.1 (reqsign-aws-v4 3.5.0). The STS endpoint settings for the AssumeRole and AssumeRoleWithWebIdentity providers landed after that candidate in apache/reqsign#984. The follow-up for #4178 is to upgrade to a published Reqsign version carrying the relevant changes and address gaps such as credential_source upstream.

What changes are included in this PR?

Revert commit 67bb90c8445f4f1f4038e1aac7bd96296a02d0a9, including the S3 configuration documentation and generated bindings and website data.

Are there any user-facing changes?

Restores S3 credential selection from before #8623. An explicit OpenDAL role_arn still configures AssumeRole, and Reqsign continues to load web identity credentials through its existing provider.

Breaking changes

AI Usage Statement

@Xuanwo
Xuanwo merged commit 810429d into main Nov 22, 2026
102 of 103 checks passed
@Xuanwo
Xuanwo deleted the xuanwo/revert-8623-s3-role-arn branch November 22, 2026 04:47
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