Skip to content

Commit 749f73d

Browse files
Merge branch 'main' into RFC30/rust-runtime-impl-serde-on-runtime-types
2 parents a0f0400 + 2b7a19e commit 749f73d

File tree

125 files changed

+2854
-586
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+2854
-586
lines changed

.github/workflows/github-pages.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
on:
22
workflow_dispatch:
3+
inputs:
4+
opt-in-to-sparse-registry:
5+
description: Enable/disable CARGO_UNSTABLE_SPARSE_REGISTRY (https://blog.rust-lang.org/2022/06/22/sparse-registry-testing.html)
6+
required: true
7+
type: boolean
8+
default: false
39
push:
410
branches: [main]
511
paths:
@@ -24,6 +30,7 @@ jobs:
2430
- name: Generate docs
2531
env:
2632
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
CARGO_UNSTABLE_SPARSE_REGISTRY: ${{ inputs.opt-in-to-sparse-registry }}
2734
run: |
2835
git config --local user.name "AWS SDK Rust Bot"
2936
git config --local user.email "aws-sdk-rust-primary@amazon.com"

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,6 @@ target/
5656

5757
# tools
5858
.tool-versions
59+
60+
# python
61+
__pycache__

CHANGELOG.next.toml

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,18 @@
1111
# meta = { "breaking" = false, "tada" = false, "bug" = false, "target" = "client | server | all"}
1212
# author = "rcoh"
1313

14+
[[aws-sdk-rust]]
15+
message = "Implement std::error::Error#source() properly for the service meta Error enum"
16+
references = ["aws-sdk-rust#784"]
17+
meta = { "breaking" = false, "tada" = false, "bug" = false }
18+
author = "abusch"
19+
20+
[[smithy-rs]]
21+
message = "Implement std::error::Error#source() properly for the service meta Error enum"
22+
references = ["aws-sdk-rust#784"]
23+
meta = { "breaking" = false, "tada" = false, "bug" = false, "target" = "client"}
24+
author = "abusch"
25+
1426
[[aws-sdk-rust]]
1527
message = "The outputs for event stream operations (for example, S3's SelectObjectContent) now implement the `Sync` auto-trait."
1628
references = ["smithy-rs#2496"]
@@ -82,7 +94,7 @@ meta = { "breaking" = false, "tada" = false, "bug" = false }
8294
author = "parker-timmerman"
8395

8496
[[aws-sdk-rust]]
85-
message = "Fix but where an incorrect endpoint was produced for WriteGetObjectResponse"
97+
message = "Fix bug where an incorrect endpoint was produced for `WriteGetObjectResponse`"
8698
references = ["smithy-rs#781", "aws-sdk-rust#781"]
8799
meta = { "breaking" = false, "tada" = false, "bug" = true }
88100
author = "rcoh"
@@ -92,3 +104,43 @@ message = "Update the `std::fmt::Debug` implementation for `aws-sigv4::SigningPa
92104
references = ["smithy-rs#2562"]
93105
meta = { "breaking" = false, "tada" = true, "bug" = true }
94106
author = "Velfi"
107+
108+
[[aws-sdk-rust]]
109+
message = "`aws_smithy_types::date_time::Format` has been re-exported in SDK crates."
110+
references = ["smithy-rs#2534"]
111+
meta = { "breaking" = false, "tada" = false, "bug" = false }
112+
author = "ysaito1001"
113+
114+
[[smithy-rs]]
115+
message = "`aws_smithy_types::date_time::Format` has been re-exported in service client crates."
116+
references = ["smithy-rs#2534"]
117+
meta = { "breaking" = false, "tada" = false, "bug" = false, "target" = "client" }
118+
author = "ysaito1001"
119+
120+
[[smithy-rs]]
121+
message = "Fix generation of constrained shapes reaching `@sensitive` shapes"
122+
references = ["smithy-rs#2582", "smithy-rs#2585"]
123+
meta = { "breaking" = false, "tada" = false, "bug" = true, "target" = "server" }
124+
author = "david-perez"
125+
126+
[[smithy-rs]]
127+
message = "Fix server code generation bug affecting constrained shapes bound with `@httpPayload`"
128+
references = ["smithy-rs#2583", "smithy-rs#2584"]
129+
meta = { "breaking" = false, "tada" = false, "bug" = true, "target" = "server" }
130+
author = "david-perez"
131+
132+
[[aws-sdk-rust]]
133+
message = """Reduce several instances of credential exposure in the SDK logs:
134+
- IMDS now suppresses the body of the response from logs
135+
- `aws-sigv4` marks the `x-amz-session-token` header as sensitive
136+
- STS & SSO credentials have been manually marked as sensitive which suppresses logging of response bodies for relevant operations
137+
"""
138+
author = "rcoh"
139+
references = ["smithy-rs#2603"]
140+
meta = { "breaking" = false, "tada" = false, "bug" = false }
141+
142+
[[smithy-rs]]
143+
message = "Add a sensitive method to `ParseHttpResponse`. When this returns true, logging of the HTTP response body will be suppressed."
144+
author = "rcoh"
145+
references = ["smithy-rs#2603"]
146+
meta = { "breaking" = false, "tada" = false, "bug" = false, "target" = "client" }

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
/codegen-server-test/ @awslabs/smithy-rs-server
55
/codegen-server/ @awslabs/smithy-rs-server
66
/rust-runtime/aws-smithy-http-server/ @awslabs/smithy-rs-server
7+
/examples/ @awslabs/smithy-rs-server
78

89
# Python Server
910
/codegen-server-test/python/ @awslabs/smithy-rs-python-server @awslabs/smithy-rs-server

aws/rust-runtime/aws-config/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ zeroize = { version = "1", optional = true }
4949
[dev-dependencies]
5050
futures-util = { version = "0.3.16", default-features = false }
5151
tracing-test = "0.2.1"
52+
tracing-subscriber = { version = "0.3.16", features = ["fmt", "json"] }
5253

5354
tokio = { version = "1.23.1", features = ["full", "test-util"] }
5455

aws/rust-runtime/aws-config/src/default_provider/credentials.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,6 @@ impl Builder {
198198

199199
#[cfg(test)]
200200
mod test {
201-
use tracing_test::traced_test;
202-
203201
use aws_credential_types::provider::ProvideCredentials;
204202

205203
use crate::default_provider::credentials::DefaultCredentialsChain;
@@ -242,7 +240,6 @@ mod test {
242240
make_test!($name, execute, $provider_config_builder);
243241
};
244242
($name: ident, $func: ident, $provider_config_builder: expr) => {
245-
#[traced_test]
246243
#[tokio::test]
247244
async fn $name() {
248245
crate::test_case::TestEnvironment::from_dir(concat!(
@@ -324,7 +321,6 @@ mod test {
324321
}
325322

326323
#[tokio::test]
327-
#[traced_test]
328324
#[cfg(feature = "client-hyper")]
329325
async fn no_providers_configured_err() {
330326
use crate::provider_config::ProviderConfig;

aws/rust-runtime/aws-config/src/http_credential_provider.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,10 @@ impl ParseStrictResponse for CredentialsResponseParser {
149149
)),
150150
}
151151
}
152+
153+
fn sensitive(&self) -> bool {
154+
true
155+
}
152156
}
153157

154158
#[derive(Clone, Debug)]

aws/rust-runtime/aws-config/src/imds/client.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,10 @@ impl ParseStrictResponse for ImdsGetResponseHandler {
280280
Err(InnerImdsError::BadStatus)
281281
}
282282
}
283+
284+
fn sensitive(&self) -> bool {
285+
true
286+
}
283287
}
284288

285289
/// IMDSv2 Endpoint Mode

aws/rust-runtime/aws-config/src/imds/client/token.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,4 +197,8 @@ impl ParseStrictResponse for GetTokenResponseHandler {
197197
expiry: self.time.now() + Duration::from_secs(ttl),
198198
})
199199
}
200+
201+
fn sensitive(&self) -> bool {
202+
true
203+
}
200204
}

aws/rust-runtime/aws-config/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ mod loader {
374374
///
375375
/// # Example: Using a custom profile file path
376376
///
377-
/// ```
377+
/// ```no_run
378378
/// use aws_config::profile::{ProfileFileCredentialsProvider, ProfileFileRegionProvider};
379379
/// use aws_config::profile::profile_file::{ProfileFiles, ProfileFileKind};
380380
///
@@ -417,7 +417,7 @@ mod loader {
417417
///
418418
/// # Example: Using a custom profile name
419419
///
420-
/// ```
420+
/// ```no_run
421421
/// use aws_config::profile::{ProfileFileCredentialsProvider, ProfileFileRegionProvider};
422422
/// use aws_config::profile::profile_file::{ProfileFiles, ProfileFileKind};
423423
///

0 commit comments

Comments
 (0)