-
- Downloads
Integrate TimeSource into the orchestrator and middleware (breaking change...
Integrate TimeSource into the orchestrator and middleware (breaking change warning is spurious) (#2728) ## Motivation and Context - #2262 - #2087 - #2707 This adds `TimeSource` in SDK and service configs so we can effectively control time when executing requests with the SDK at the client level. _note:_ the breaking change is in a trait implementation of a struct we're going to delete, not a real breaking change ## Description - Add `SharedTimeSource` and use it in SdkConfig / `aws-config` / <service>::Config - Wire up the signer and other uses of `SystemTime::now()` that I could find - track down broken tests ## Testing - [x] various unit tests that all still pass ## 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 19 additions, 0 deletionsCHANGELOG.next.toml
- aws/rust-runtime/aws-config/external-types.toml 1 addition, 0 deletionsaws/rust-runtime/aws-config/external-types.toml
- aws/rust-runtime/aws-config/src/imds/client/token.rs 4 additions, 4 deletionsaws/rust-runtime/aws-config/src/imds/client/token.rs
- aws/rust-runtime/aws-config/src/imds/credentials.rs 6 additions, 3 deletionsaws/rust-runtime/aws-config/src/imds/credentials.rs
- aws/rust-runtime/aws-config/src/lib.rs 14 additions, 1 deletionaws/rust-runtime/aws-config/src/lib.rs
- aws/rust-runtime/aws-config/src/profile/credentials/exec.rs 12 additions, 6 deletionsaws/rust-runtime/aws-config/src/profile/credentials/exec.rs
- aws/rust-runtime/aws-config/src/provider_config.rs 7 additions, 7 deletionsaws/rust-runtime/aws-config/src/provider_config.rs
- aws/rust-runtime/aws-config/src/sts.rs 1 addition, 0 deletionsaws/rust-runtime/aws-config/src/sts.rs
- aws/rust-runtime/aws-config/src/sts/assume_role.rs 4 additions, 3 deletionsaws/rust-runtime/aws-config/src/sts/assume_role.rs
- aws/rust-runtime/aws-config/src/sts/util.rs 3 additions, 4 deletionsaws/rust-runtime/aws-config/src/sts/util.rs
- aws/rust-runtime/aws-config/src/web_identity_token.rs 6 additions, 3 deletionsaws/rust-runtime/aws-config/src/web_identity_token.rs
- aws/rust-runtime/aws-credential-types/src/time_source.rs 17 additions, 19 deletionsaws/rust-runtime/aws-credential-types/src/time_source.rs
- aws/rust-runtime/aws-inlineable/Cargo.toml 2 additions, 1 deletionaws/rust-runtime/aws-inlineable/Cargo.toml
- aws/rust-runtime/aws-inlineable/tests/middleware_e2e_test.rs 4 additions, 1 deletionaws/rust-runtime/aws-inlineable/tests/middleware_e2e_test.rs
- aws/rust-runtime/aws-runtime/Cargo.toml 2 additions, 0 deletionsaws/rust-runtime/aws-runtime/Cargo.toml
- aws/rust-runtime/aws-runtime/src/auth/sigv4.rs 8 additions, 9 deletionsaws/rust-runtime/aws-runtime/src/auth/sigv4.rs
- aws/rust-runtime/aws-sig-auth/Cargo.toml 3 additions, 1 deletionaws/rust-runtime/aws-sig-auth/Cargo.toml
- aws/rust-runtime/aws-sig-auth/src/middleware.rs 14 additions, 12 deletionsaws/rust-runtime/aws-sig-auth/src/middleware.rs
- aws/rust-runtime/aws-types/external-types.toml 2 additions, 0 deletionsaws/rust-runtime/aws-types/external-types.toml
- aws/rust-runtime/aws-types/src/sdk_config.rs 23 additions, 0 deletionsaws/rust-runtime/aws-types/src/sdk_config.rs
Loading
Please register or sign in to comment