-
- Downloads
Use tokio::process to allow timeouts to occur (#3052)
## Motivation and Context The existing credentials provider was a DOS risk and didn't obey timeout settings because it used `std::timeout::spawn` but relied on a async-based timeout mechanism. ## Description - Use `tokio::process` instead - introduce new cargo feature ## Testing - unit test ## Checklist <!--- If a checkbox below is not applicable, then please DELETE it rather than leaving it unchecked --> - [x] I have updated `CHANGELOG.next.toml` if I made changes to the smithy-rs codegen or runtime crates - [x] I have updated `CHANGELOG.next.toml` if I made changes to the AWS SDK, generated SDK code, or SDK runtime crates ---- _By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice._
Showing
- CHANGELOG.next.toml 12 additions, 0 deletionsCHANGELOG.next.toml
- aws/rust-runtime/aws-config/Cargo.toml 2 additions, 1 deletionaws/rust-runtime/aws-config/Cargo.toml
- aws/rust-runtime/aws-config/src/credential_process.rs 30 additions, 50 deletionsaws/rust-runtime/aws-config/src/credential_process.rs
- aws/rust-runtime/aws-config/src/lib.rs 1 addition, 0 deletionsaws/rust-runtime/aws-config/src/lib.rs
- aws/rust-runtime/aws-config/src/profile/credentials.rs 8 additions, 2 deletionsaws/rust-runtime/aws-config/src/profile/credentials.rs
- aws/rust-runtime/aws-config/src/profile/credentials/exec.rs 18 additions, 3 deletionsaws/rust-runtime/aws-config/src/profile/credentials/exec.rs
- aws/rust-runtime/aws-config/src/profile/credentials/repr.rs 2 additions, 2 deletionsaws/rust-runtime/aws-config/src/profile/credentials/repr.rs
- aws/rust-runtime/aws-config/src/sensitive_command.rs 51 additions, 0 deletionsaws/rust-runtime/aws-config/src/sensitive_command.rs
- rust-runtime/aws-smithy-runtime/src/test_util/capture_test_logs.rs 2 additions, 1 deletion...ime/aws-smithy-runtime/src/test_util/capture_test_logs.rs
Loading
Please register or sign in to comment