Skip to content

Commit d1db8ba

Browse files
Merge smithy-rs-release-1.x.y into main (#4225)
2 parents 6649098 + ef064b2 commit d1db8ba

File tree

4 files changed

+50
-83
lines changed

4 files changed

+50
-83
lines changed

.changelog/1752160009.md

Lines changed: 0 additions & 37 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,34 @@
11
<!-- Do not manually edit this file. Use the `changelogger` tool. -->
2+
July 21st, 2025
3+
===============
4+
**New this release:**
5+
- :tada: (client, [smithy-rs#4203](https://github.com/smithy-lang/smithy-rs/issues/4203)) Add support for configuring auth schemes manually using an auth scheme preference list.
6+
The preference list allows customers to reprioritize the order of auth schemes originally
7+
determined by the auth scheme resolver.
8+
Customers can configure the auth scheme preference at the following locations, listed in order of precedence:
9+
1. Service Client Configuration
10+
```rust
11+
use aws_runtime::auth::sigv4;
12+
use aws_smithy_runtime_api::client::auth::AuthSchemeId;
13+
use aws_smithy_runtime_api::client::auth::http::HTTP_BEARER_AUTH_SCHEME_ID;
14+
15+
let config = aws_sdk_s3::Config::builder()
16+
.auth_scheme_preference([AuthSchemeId::from("scheme1"), sigv4::SCHEME_ID, HTTP_BEARER_AUTH_SCHEME_ID])
17+
// ...
18+
.build();
19+
```
20+
2. Environment Variable
21+
```
22+
AWS_AUTH_SCHEME_PREFERENCE=scheme1, sigv4, httpBearerAuth
23+
```
24+
3. Configuration File
25+
```
26+
auth_scheme_preference=scheme1, sigv4, httpBearerAuth
27+
```
28+
With this configuration, the auth scheme resolver will prefer to select them in the specified order,
29+
if they are supported.
30+
31+
232
July 17th, 2025
333
===============
434
**New this release:**

aws/SDK_CHANGELOG.next.json

Lines changed: 16 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -5,46 +5,6 @@
55
{
66
"smithy-rs": [],
77
"aws-sdk-rust": [
8-
{
9-
"message": "Temporarily disable fetching account ID from IMDS credentials on EC2.\n",
10-
"meta": {
11-
"bug": false,
12-
"breaking": false,
13-
"tada": false
14-
},
15-
"author": "ysaito1001",
16-
"references": [
17-
"smithy-rs#4187"
18-
],
19-
"since-commit": "dd10f0602682dfabafc465dbcd9eb92d3d915c51",
20-
"age": 5
21-
},
22-
{
23-
"message": "Fix hyper 1.x connection refused errors not marked as retryable\n",
24-
"meta": {
25-
"bug": true,
26-
"breaking": false,
27-
"tada": false
28-
},
29-
"author": "aajtodd",
30-
"references": [],
31-
"since-commit": "dd10f0602682dfabafc465dbcd9eb92d3d915c51",
32-
"age": 5
33-
},
34-
{
35-
"message": "Make Rpc V2 CBOR a compatible protocol for `awsQuery` using `awsQueryCompatible` trait\n",
36-
"meta": {
37-
"bug": false,
38-
"breaking": false,
39-
"tada": false
40-
},
41-
"author": "ysaito1001",
42-
"references": [
43-
"smithy-rs#4186"
44-
],
45-
"since-commit": "dd10f0602682dfabafc465dbcd9eb92d3d915c51",
46-
"age": 5
47-
},
488
{
499
"message": "Allows customers to configure the auth schemes and auth scheme resolver. For more information see the GitHub [discussion](https://github.com/smithy-lang/smithy-rs/discussions/4197).\n",
5010
"meta": {
@@ -58,7 +18,7 @@
5818
"smithy-rs#4198"
5919
],
6020
"since-commit": "ccf374dddc0690ef8aca1ed006b9e9b21299558e",
61-
"age": 3
21+
"age": 4
6222
},
6323
{
6424
"message": "re-use checksums on retry attempts for enhanced durability\n",
@@ -70,7 +30,7 @@
7030
"author": "aajtodd",
7131
"references": [],
7232
"since-commit": "1378695258e645d2c65a99cc0311b8c3d982e167",
73-
"age": 2
33+
"age": 3
7434
},
7535
{
7636
"message": "Event streams now allocate a right-sized buffer avoiding repeated reallocations during serialization\n",
@@ -84,6 +44,20 @@
8444
"smithy-rs#4212"
8545
],
8646
"since-commit": "a23d116a79e8920c2efa813a8f831541a9943e4f",
47+
"age": 2
48+
},
49+
{
50+
"message": "Add support for configuring auth schemes manually using an auth scheme preference list.\nThe preference list allows customers to reprioritize the order of auth schemes originally\ndetermined by the auth scheme resolver.\nCustomers can configure the auth scheme preference at the following locations, listed in order of precedence:\n1. Service Client Configuration\n```rust\nuse aws_runtime::auth::sigv4;\nuse aws_smithy_runtime_api::client::auth::AuthSchemeId;\nuse aws_smithy_runtime_api::client::auth::http::HTTP_BEARER_AUTH_SCHEME_ID;\n\nlet config = aws_sdk_s3::Config::builder()\n .auth_scheme_preference([AuthSchemeId::from(\"scheme1\"), sigv4::SCHEME_ID, HTTP_BEARER_AUTH_SCHEME_ID])\n // ...\n .build();\n```\n2. Environment Variable\n```\nAWS_AUTH_SCHEME_PREFERENCE=scheme1, sigv4, httpBearerAuth\n```\n3. Configuration File\n```\nauth_scheme_preference=scheme1, sigv4, httpBearerAuth\n```\nWith this configuration, the auth scheme resolver will prefer to select them in the specified order,\nif they are supported.\n",
51+
"meta": {
52+
"bug": false,
53+
"breaking": false,
54+
"tada": true
55+
},
56+
"author": "ysaito1001",
57+
"references": [
58+
"smithy-rs#4203"
59+
],
60+
"since-commit": "6649098171e33e1e65eaacffb12be58e858a4782",
8761
"age": 1
8862
}
8963
],

aws/sdk/Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)