Xuanwo opened a new issue, #8878:
URL: https://github.com/apache/opendal/issues/8878
## Problem
In `core/services/s3/src/backend.rs:1070-1077`:
```rust
if config.disable_config_load {
builder = builder.no_env().no_profile();
} else if let Some(profile) = config
.profile
.as_deref()
.filter(|profile| !profile.is_empty())
{
builder = builder.with_profile(profile);
}
```
In `reqsign-aws-core`'s `DefaultCredentialProviderBuilder`, `sso`,
`process`, and `web_identity` are independent provider slots from `env` and
`profile`:
- `SSOCredentialProvider` reads `~/.aws/config` (`AWS_CONFIG_FILE`,
`AWS_PROFILE`) and `~/.aws/sso/cache`.
- `ProcessCredentialProvider` reads `~/.aws/config` (`AWS_CONFIG_FILE`,
`AWS_PROFILE`) and executes `credential_process`.
- `AssumeRoleWithWebIdentityCredentialProvider` reads `AWS_ROLE_ARN` and
`AWS_WEB_IDENTITY_TOKEN_FILE` from the environment.
Because `disable_config_load` only calls `.no_env().no_profile()`:
1. It contradicts `S3Builder::profile`'s docstring
(`core/services/s3/src/backend.rs:168-173`), which states that profile
selection applies to shared AWS config/credentials files and SSO and has no
effect when `disable_config_load` is set—yet `SSOCredentialProvider` and
`ProcessCredentialProvider` still load `~/.aws/config` using `AWS_PROFILE` /
`default`.
2. Once `reqsign-command-execute-tokio` is wired (#8872),
`ProcessCredentialProvider` will also execute `credential_process` commands
from `~/.aws/config` even when `disable_config_load` is enabled.
## Scope & considerations
- Disable `.no_sso().no_process()` when `config.disable_config_load` is set
(and audit whether `.no_web_identity()` should also be disabled or documented
explicitly as a runtime workload-identity provider alongside ECS/IMDS, matching
`S3Config::disable_config_load`'s documented contract in
`core/services/s3/src/config.rs:214-222`).
- Add unit tests confirming `~/.aws/config` SSO and `credential_process`
entries are not loaded when `disable_config_load` is enabled.
- (Separate follow-up note: `reqsign-aws-core 3.4.0` now exposes
`SharedConfig` and `IMDSv2RegionProvider`; evaluate separately whether profile
`region` / `endpoint_url` discovery fits S3's synchronous `Builder::build()` or
`detect_region`.)
## Coordination
- Coordinate with #8872 (wiring `reqsign-command-execute-tokio`).
---
*Drafted with AI assistance (Gemini 4 Neon) and verified against
`core/services/s3/src/{config.rs,backend.rs}` and `reqsign-aws-core` `v0.20.9`.*
--
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]