1 + | 3046022100dcfa462c480d85707221a690323639df78fb10eb2f4913abcfc4eec215c39fb8022100bad863cf9d951963fc2d8068a2887742d553283e5086f644e3ca9ff8b262e13c
|
\ | No newline at end of file
|
0 2 | diff --git a/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded-parameters/query-signed-request.txt b/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded-parameters/query-signed-request.txt
|
1 3 | new file mode 100644
|
2 4 | index 0000000..197b99e
|
3 - | -- /dev/null
|
5 + | ++ b/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded-parameters/query-signed-request.txt
|
4 6 | @@ -0,0 +1,6 @@
|
7 + | POST /?X-Amz-Algorithm=AWS4-ECDSA-P256-SHA256&X-Amz-Credential=AKIDEXAMPLE%2F20150830%2Fservice%2Faws4_request&X-Amz-Date=20150830T123600Z&X-Amz-SignedHeaders=content-length%3Bcontent-type%3Bhost&X-Amz-Expires=3600&X-Amz-Region-Set=us-east-1&X-Amz-Signature=30450220128d491ccca3f9a7988d00454d2210dd884d7990ca2cb844d4968c8fa9e937f8022100b3668dd440d8206074460567cee98691f66412fe5a83d8e32c601e1331f2ec2b HTTP/1.1
|
8 + | Content-Type:application/x-www-form-urlencoded; charset=utf-8
|
9 + | Host:example.amazonaws.com
|
10 + | Content-Length:13
|
11 + |
|
12 + | Param1=value1
|
\ | No newline at end of file
|
5 13 | diff --git a/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded-parameters/query-string-to-sign.txt b/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded-parameters/query-string-to-sign.txt
|
6 14 | new file mode 100644
|
7 15 | index 0000000..9d2bc74
|
8 - | -- /dev/null
|
16 + | ++ b/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded-parameters/query-string-to-sign.txt
|
9 17 | @@ -0,0 +1,4 @@
|
18 + | AWS4-ECDSA-P256-SHA256
|
19 + | 20150830T123600Z
|
20 + | 20150830/service/aws4_request
|
21 + | d4dab970413a0459d2a3bb644b278e96e85f2f6ac8fa09a74bbd6a269ec3dd82
|
\ | No newline at end of file
|
10 22 | diff --git a/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-sig-v4-test-suite/post-x-www-form-urlencoded-parameters/post-x-www-form-urlencoded-parameters.req b/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded-parameters/request.txt
|
11 23 | similarity index 80%
|
12 24 | rename from tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-sig-v4-test-suite/post-x-www-form-urlencoded-parameters/post-x-www-form-urlencoded-parameters.req
|
13 25 | rename to tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded-parameters/request.txt
|
14 26 | index 36015f1..8289eaa 100644
|
15 - | -- a/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-sig-v4-test-suite/post-x-www-form-urlencoded-parameters/post-x-www-form-urlencoded-parameters.req
|
27 + | ++ b/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded-parameters/request.txt
|
16 28 | @@ -1,6 +1,6 @@
|
17 29 | POST / HTTP/1.1
|
18 30 | Content-Type:application/x-www-form-urlencoded; charset=utf-8
|
19 31 | Host:example.amazonaws.com
|
20 - | X-Amz-Date:20150830T123600Z
|
32 + | Content-Length:13
|
21 33 |
|
22 34 | Param1=value1
|
\ | No newline at end of file
|
23 35 | diff --git a/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded/context.json b/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded/context.json
|
24 36 | new file mode 100644
|
25 37 | index 0000000..0db1df1
|
26 - | -- /dev/null
|
38 + | ++ b/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded/context.json
|
27 39 | @@ -0,0 +1,12 @@
|
40 + | {
|
41 + | "credentials": {
|
42 + | "access_key_id": "AKIDEXAMPLE",
|
43 + | "secret_access_key": "wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY"
|
44 + | },
|
45 + | "expiration_in_seconds": 3600,
|
46 + | "normalize": true,
|
47 + | "region": "us-east-1",
|
48 + | "service": "service",
|
49 + | "sign_body": true,
|
50 + | "timestamp": "2015-08-30T12:36:00Z"
|
51 + | }
|
\ | No newline at end of file
|
28 52 | diff --git a/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-sig-v4a-test-suite/post-x-www-form-urlencoded/header-canonical-request.txt b/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded/header-canonical-request.txt
|
29 53 | similarity index 61%
|
30 54 | rename from tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-sig-v4a-test-suite/post-x-www-form-urlencoded/header-canonical-request.txt
|
31 55 | rename to tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded/header-canonical-request.txt
|
32 56 | index 69009dc..797632b 100644
|
33 - | -- a/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-sig-v4a-test-suite/post-x-www-form-urlencoded/header-canonical-request.txt
|
57 + | ++ b/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded/header-canonical-request.txt
|
34 58 | @@ -1,12 +1,12 @@
|
35 59 | POST
|
36 60 | /
|
37 61 |
|
38 62 | content-length:13
|
39 63 | content-type:application/x-www-form-urlencoded
|
40 64 | host:example.amazonaws.com
|
41 - | x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
65 + | x-amz-content-sha256:9095672bbd1f56dfc5b65f3e153adc8731a4a654192329106275f4c7b24d0b6e
|
42 66 | x-amz-date:20150830T123600Z
|
43 67 | x-amz-region-set:us-east-1
|
44 68 |
|
45 69 | content-length;content-type;host;x-amz-content-sha256;x-amz-date;x-amz-region-set
|
46 - | e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
70 + | 9095672bbd1f56dfc5b65f3e153adc8731a4a654192329106275f4c7b24d0b6e
|
\ | No newline at end of file
|
47 71 | diff --git a/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded/header-signature.txt b/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded/header-signature.txt
|
48 72 | new file mode 100644
|
49 73 | index 0000000..f5a641c
|
50 - | -- /dev/null
|
74 + | ++ b/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded/header-signature.txt
|
51 75 | @@ -0,0 +1 @@
|
76 + | 304402202dc0a1ca6ca9308bece143f48201f2500761a242ba6efc7857e1ba01a022e843022053f570cb5adf521df2f6732b5077becd86bc2073b30e9d48c2057851902c1c0e
|
\ | No newline at end of file
|
52 77 | diff --git a/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded/header-signed-request.txt b/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded/header-signed-request.txt
|
53 78 | new file mode 100644
|
54 79 | index 0000000..7bd94a7
|
55 - | -- /dev/null
|
80 + | ++ b/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded/header-signed-request.txt
|
56 81 | @@ -0,0 +1,10 @@
|
82 + | POST / HTTP/1.1
|
83 + | Content-Type:application/x-www-form-urlencoded
|
84 + | Host:example.amazonaws.com
|
85 + | Content-Length:13
|
86 + | X-Amz-Date:20150830T123600Z
|
87 + | X-Amz-Region-Set:us-east-1
|
88 + | x-amz-content-sha256:9095672bbd1f56dfc5b65f3e153adc8731a4a654192329106275f4c7b24d0b6e
|
89 + | Authorization:AWS4-ECDSA-P256-SHA256 Credential=AKIDEXAMPLE/20150830/service/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-content-sha256;x-amz-date;x-amz-region-set, Signature=3045022100955bbc0f0b9d4284719808642167f7d5ea4a72f8c296b75b442898c8b81cd7e502202425fb97620fa9a20344d22b248dd00db07524fc39b5ad77533e00b277331241
|
90 + |
|
91 + | Param1=value1
|
\ | No newline at end of file
|
57 92 | diff --git a/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded/header-string-to-sign.txt b/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded/header-string-to-sign.txt
|
58 93 | new file mode 100644
|
59 94 | index 0000000..8d25ba9
|
60 - | -- /dev/null
|
95 + | ++ b/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded/header-string-to-sign.txt
|
61 96 | @@ -0,0 +1,4 @@
|
97 + | AWS4-ECDSA-P256-SHA256
|
98 + | 20150830T123600Z
|
99 + | 20150830/service/aws4_request
|
100 + | ba7fa291aefad463b308fdc89b33d852aea9fbcfa151d820117bd8189066cb91
|
\ | No newline at end of file
|
62 101 | diff --git a/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded/public-key.json b/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded/public-key.json
|
63 102 | new file mode 100644
|
64 103 | index 0000000..379dcb2
|
65 - | -- /dev/null
|
104 + | ++ b/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded/public-key.json
|
66 105 | @@ -0,0 +1,4 @@
|
106 + | {
|
107 + | "X":"b6618f6a65740a99e650b33b6b4b5bd0d43b176d721a3edfea7e7d2d56d936b1",
|
108 + | "Y":"865ed22a7eadc9c5cb9d2cbaca1b3699139fedc5043dc6661864218330c8e518"
|
109 + | }
|
67 110 | diff --git a/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-sig-v4a-test-suite/post-x-www-form-urlencoded/query-canonical-request.txt b/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded/query-canonical-request.txt
|
68 111 | similarity index 99%
|
69 112 | rename from tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-sig-v4a-test-suite/post-x-www-form-urlencoded/query-canonical-request.txt
|
70 113 | rename to tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded/query-canonical-request.txt
|
71 114 | index 9ed065b..563ff58 100644
|
72 - | -- a/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-sig-v4a-test-suite/post-x-www-form-urlencoded/query-canonical-request.txt
|
115 + | ++ b/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded/query-canonical-request.txt
|
73 116 | @@ -1,9 +1,9 @@
|
74 117 | POST
|
75 118 | /
|
76 119 | X-Amz-Algorithm=AWS4-ECDSA-P256-SHA256&X-Amz-Credential=AKIDEXAMPLE%2F20150830%2Fservice%2Faws4_request&X-Amz-Date=20150830T123600Z&X-Amz-Expires=3600&X-Amz-Region-Set=us-east-1&X-Amz-SignedHeaders=content-length%3Bcontent-type%3Bhost
|
77 120 | content-length:13
|
78 121 | content-type:application/x-www-form-urlencoded
|
79 122 | host:example.amazonaws.com
|
80 123 |
|
81 124 | content-length;content-type;host
|
82 - | 9095672bbd1f56dfc5b65f3e153adc8731a4a654192329106275f4c7b24d0b6e
|
125 + | 9095672bbd1f56dfc5b65f3e153adc8731a4a654192329106275f4c7b24d0b6e
|
\ | No newline at end of file
|
83 126 | diff --git a/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded/query-signature.txt b/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded/query-signature.txt
|
84 127 | new file mode 100644
|
85 128 | index 0000000..0c77daf
|
86 - | -- /dev/null
|
129 + | ++ b/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded/query-signature.txt
|
87 130 | @@ -0,0 +1 @@
|
131 + | 304402205e21d399153f879b0f32c38742d12941299467bfdc213224cc76a97acffd6ec6022035a9be37a38c19e98e5cfc536fabe885e82fbf999081234b364cab5cacff8733
|
\ | No newline at end of file
|
88 132 | diff --git a/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded/query-signed-request.txt b/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded/query-signed-request.txt
|
89 133 | new file mode 100644
|
90 134 | index 0000000..71d6de9
|
91 - | -- /dev/null
|
135 + | ++ b/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded/query-signed-request.txt
|
92 136 | @@ -0,0 +1,6 @@
|
137 + | POST /?X-Amz-Algorithm=AWS4-ECDSA-P256-SHA256&X-Amz-Credential=AKIDEXAMPLE%2F20150830%2Fservice%2Faws4_request&X-Amz-Date=20150830T123600Z&X-Amz-SignedHeaders=content-length%3Bcontent-type%3Bhost&X-Amz-Expires=3600&X-Amz-Region-Set=us-east-1&X-Amz-Signature=30450221008d8a6aa0bc3f651e6c14c52e9e24dbca58964641c9cb6e55169f9dc74766ae3d022016126756ce1523ac972f66f6bf6e981f44572d3c8916f1f43d428fb2caa0e1ea HTTP/1.1
|
138 + | Content-Type:application/x-www-form-urlencoded
|
139 + | Host:example.amazonaws.com
|
140 + | Content-Length:13
|
141 + |
|
142 + | Param1=value1
|
\ | No newline at end of file
|
93 143 | diff --git a/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-sig-v4a-test-suite/post-x-www-form-urlencoded/query-string-to-sign.txt b/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded/query-string-to-sign.txt
|
94 144 | similarity index 99%
|
95 145 | rename from tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-sig-v4a-test-suite/post-x-www-form-urlencoded/query-string-to-sign.txt
|
96 146 | rename to tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded/query-string-to-sign.txt
|
97 147 | index bef3143..cc7a224 100644
|
98 - | -- a/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-sig-v4a-test-suite/post-x-www-form-urlencoded/query-string-to-sign.txt
|
148 + | ++ b/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded/query-string-to-sign.txt
|
99 149 | @@ -1,4 +1,4 @@
|
100 150 | AWS4-ECDSA-P256-SHA256
|
101 151 | 20150830T123600Z
|
102 152 | 20150830/service/aws4_request
|
103 - | 4e4122984d30d13170a298ece62cc30f8da12578fb3b482616b1f11036b13934
|
153 + | 4e4122984d30d13170a298ece62cc30f8da12578fb3b482616b1f11036b13934
|
\ | No newline at end of file
|
104 154 | diff --git a/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded/request.txt b/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded/request.txt
|
105 155 | new file mode 100644
|
106 156 | index 0000000..760b2d3
|
107 - | -- /dev/null
|
157 + | ++ b/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded/request.txt
|
108 158 | @@ -0,0 +1,6 @@
|
159 + | POST / HTTP/1.1
|
160 + | Content-Type:application/x-www-form-urlencoded
|
161 + | Host:example.amazonaws.com
|
162 + | Content-Length:13
|
163 + |
|
164 + | Param1=value1
|
\ | No newline at end of file
|
109 165 | diff --git a/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/src/http_request/canonical_request.rs b/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/src/http_request/canonical_request.rs
|
110 166 | index 9bd636f..b53f33f 100644
|
111 - | -- a/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/src/http_request/canonical_request.rs
|
167 + | ++ b/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/src/http_request/canonical_request.rs
|
112 168 | @@ -346,67 +346,78 @@ impl CanonicalRequest<'_> {
|
113 169 | params.push((Cow::Borrowed(k), Cow::Borrowed(v)));
|
114 170 | }
|
115 171 |
|
116 172 | if let SignatureValues::QueryParams(values) = values {
|
117 173 | add_param(&mut params, param::X_AMZ_DATE, &values.date_time);
|
118 174 | add_param(&mut params, param::X_AMZ_EXPIRES, &values.expires);
|
119 175 |
|
120 176 | #[cfg(feature = "sigv4a")]
|
121 177 | if let Some(regions) = values.region_set {
|
122 178 | add_param(&mut params, sigv4a::param::X_AMZ_REGION_SET, regions);
|
123 179 | }
|
124 180 |
|
125 181 | add_param(&mut params, param::X_AMZ_ALGORITHM, values.algorithm);
|
126 182 | add_param(&mut params, param::X_AMZ_CREDENTIAL, &values.credential);
|
127 183 | add_param(
|
128 184 | &mut params,
|
129 185 | param::X_AMZ_SIGNED_HEADERS,
|
130 186 | values.signed_headers.as_str(),
|
131 187 | );
|
132 188 |
|
133 189 | if let Some(security_token) = values.security_token {
|
134 190 | add_param(
|
135 191 | &mut params,
|
136 192 | settings
|
137 193 | .session_token_name_override
|
138 194 | .unwrap_or(param::X_AMZ_SECURITY_TOKEN),
|
139 195 | security_token,
|
140 196 | );
|
141 197 | }
|
142 198 | }
|
143 - | // Sort by param name, and then by param value
|
199 + |
|
200 + | // Sort on the _encoded_ key/value pairs
|
201 + | let mut params: Vec<(String, String)> = params
|
202 + | .into_iter()
|
203 + | .map(|x| {
|
204 + | use aws_smithy_http::query::fmt_string;
|
205 + | let enc_k = fmt_string(&x.0);
|
206 + | let enc_v = fmt_string(&x.1);
|
207 + | (enc_k, enc_v)
|
208 + | })
|
209 + | .collect();
|
210 + |
|
144 211 | params.sort();
|
145 212 |
|
146 213 | let mut query = QueryWriter::new(uri);
|
147 214 | query.clear_params();
|
148 215 | for (key, value) in params {
|
149 - | query.insert(&key, &value);
|
216 + | query.insert_encoded(&key, &value);
|
150 217 | }
|
151 218 |
|
152 219 | let query = query.build_query();
|
153 220 | if query.is_empty() {
|
154 221 | None
|
155 222 | } else {
|
156 223 | Some(query)
|
157 224 | }
|
158 225 | }
|
159 226 |
|
160 227 | fn insert_host_header(
|
161 228 | canonical_headers: &mut HeaderMap<HeaderValue>,
|
162 229 | uri: &Uri,
|
163 230 | ) -> HeaderValue {
|
164 231 | match canonical_headers.get(&HOST) {
|
165 232 | Some(header) => header.clone(),
|
166 233 | None => {
|
167 234 | let port = uri.port();
|
168 235 | let scheme = uri.scheme();
|
169 236 | let authority = uri
|
170 237 | .authority()
|
171 238 | .expect("request uri authority must be set for signing")
|
172 239 | .as_str();
|
173 240 | let host = uri
|
174 241 | .host()
|
175 242 | .expect("request uri host must be set for signing");
|
176 243 |
|
177 244 | // Check if port is default (80 for HTTP, 443 for HTTPS) and if so exclude it from the
|
178 245 | // Host header when signing since RFC 2616 indicates that the default port should not be
|
179 246 | // sent in the Host header (and Hyper strips default ports if they are present)
|
180 247 | @@ -642,310 +653,320 @@ impl<'a> StringToSign<'a> {
|
181 248 | service,
|
182 249 | hashed_creq,
|
183 250 | signature_version: SignatureVersion::V4a,
|
184 251 | }
|
185 252 | }
|
186 253 | }
|
187 254 |
|
188 255 | impl fmt::Display for StringToSign<'_> {
|
189 256 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
190 257 | write!(
|
191 258 | f,
|
192 259 | "{}\n{}\n{}\n{}",
|
193 260 | self.algorithm,
|
194 261 | format_date_time(self.time),
|
195 262 | match self.signature_version {
|
196 263 | SignatureVersion::V4 => self.scope.to_string(),
|
197 264 | SignatureVersion::V4a => self.scope.v4a_display(),
|
198 265 | },
|
199 266 | self.hashed_creq
|
200 267 | )
|
201 268 | }
|
202 269 | }
|
203 270 |
|
204 271 | #[cfg(test)]
|
205 272 | mod tests {
|
206 273 | use crate::date_time::test_parsers::parse_date_time;
|
207 274 | use crate::http_request::canonical_request::{
|
208 275 | normalize_header_value, trim_all, CanonicalRequest, SigningScope, StringToSign,
|
209 276 | };
|
210 277 | use crate::http_request::test;
|
278 + | use crate::http_request::test::SigningSuiteTest;
|
211 279 | use crate::http_request::{
|
212 280 | PayloadChecksumKind, SessionTokenMode, SignableBody, SignableRequest, SignatureLocation,
|
213 281 | SigningParams, SigningSettings,
|
214 282 | };
|
215 283 | use crate::sign::v4;
|
216 284 | use crate::sign::v4::sha256_hex_string;
|
217 285 | use aws_credential_types::Credentials;
|
218 286 | use aws_smithy_http::query_writer::QueryWriter;
|
219 287 | use aws_smithy_runtime_api::client::identity::Identity;
|
220 288 | use http0::{HeaderValue, Uri};
|
221 289 | use pretty_assertions::assert_eq;
|
222 290 | use proptest::{prelude::*, proptest};
|
223 291 | use std::borrow::Cow;
|
224 292 | use std::time::Duration;
|
225 293 |
|
226 294 | fn signing_params(identity: &Identity, settings: SigningSettings) -> SigningParams<'_> {
|
227 295 | v4::signing_params::Builder::default()
|
228 296 | .identity(identity)
|
229 297 | .region("test-region")
|
230 298 | .name("testservicename")
|
231 299 | .time(parse_date_time("20210511T154045Z").unwrap())
|
232 300 | .settings(settings)
|
233 301 | .build()
|
234 302 | .unwrap()
|
235 303 | .into()
|
236 304 | }
|
237 305 |
|
238 306 | #[test]
|
239 307 | fn test_repeated_header() {
|
240 - | let mut req = test::v4::test_request("get-vanilla-query-order-key-case");
|
308 + | let test = test::SigningSuiteTest::v4("get-vanilla-query-order-key-case");
|
309 + | let mut req = test.request();
|
241 310 | req.headers.push((
|
242 311 | "x-amz-object-attributes".to_string(),
|
243 312 | "Checksum".to_string(),
|
244 313 | ));
|
245 314 | req.headers.push((
|
246 315 | "x-amz-object-attributes".to_string(),
|
247 316 | "ObjectSize".to_string(),
|
248 317 | ));
|
249 318 | let req = SignableRequest::from(&req);
|
250 319 | let settings = SigningSettings {
|
251 320 | payload_checksum_kind: PayloadChecksumKind::XAmzSha256,
|
252 321 | session_token_mode: SessionTokenMode::Exclude,
|
253 322 | ..Default::default()
|
254 323 | };
|
255 324 | let identity = Credentials::for_tests().into();
|
256 325 | let signing_params = signing_params(&identity, settings);
|
257 326 | let creq = CanonicalRequest::from(&req, &signing_params).unwrap();
|
258 327 |
|
259 328 | assert_eq!(
|
260 329 | creq.values.signed_headers().to_string(),
|
261 330 | "host;x-amz-content-sha256;x-amz-date;x-amz-object-attributes"
|
262 331 | );
|
263 332 | assert_eq!(
|
264 333 | creq.header_values_for("x-amz-object-attributes"),
|
265 334 | "Checksum,ObjectSize",
|
266 335 | );
|
267 336 | }
|
268 337 |
|
269 338 | #[test]
|
270 339 | fn test_host_header_properly_handles_ports() {
|
271 340 | fn host_header_test_setup(endpoint: String) -> String {
|
272 - | let mut req = test::v4::test_request("get-vanilla");
|
341 + | let test = SigningSuiteTest::v4("get-vanilla");
|
342 + | let mut req = test.request();
|
273 343 | req.uri = endpoint;
|
274 344 | let req = SignableRequest::from(&req);
|
275 345 | let settings = SigningSettings {
|
276 346 | payload_checksum_kind: PayloadChecksumKind::XAmzSha256,
|
277 347 | session_token_mode: SessionTokenMode::Exclude,
|
278 348 | ..Default::default()
|
279 349 | };
|
280 350 | let identity = Credentials::for_tests().into();
|
281 351 | let signing_params = signing_params(&identity, settings);
|
282 352 | let creq = CanonicalRequest::from(&req, &signing_params).unwrap();
|
283 353 | creq.header_values_for("host")
|
284 354 | }
|
285 355 |
|
286 356 | // HTTP request with 80 port should not be signed with that port
|
287 357 | let http_80_host_header = host_header_test_setup("http://localhost:80".into());
|
288 358 | assert_eq!(http_80_host_header, "localhost",);
|
289 359 |
|
290 360 | // HTTP request with non-80 port should be signed with that port
|
291 361 | let http_1234_host_header = host_header_test_setup("http://localhost:1234".into());
|
292 362 | assert_eq!(http_1234_host_header, "localhost:1234",);
|
293 363 |
|
294 364 | // HTTPS request with 443 port should not be signed with that port
|
295 365 | let https_443_host_header = host_header_test_setup("https://localhost:443".into());
|
296 366 | assert_eq!(https_443_host_header, "localhost",);
|
297 367 |
|
298 368 | // HTTPS request with non-443 port should be signed with that port
|
299 369 | let https_1234_host_header = host_header_test_setup("https://localhost:1234".into());
|
300 370 | assert_eq!(https_1234_host_header, "localhost:1234",);
|
301 371 | }
|
302 372 |
|
303 373 | #[test]
|
304 374 | fn test_set_xamz_sha_256() {
|
305 - | let req = test::v4::test_request("get-vanilla-query-order-key-case");
|
375 + | let test = SigningSuiteTest::v4("get-vanilla-query-order-key-case");
|
376 + | let req = test.request();
|
306 377 | let req = SignableRequest::from(&req);
|
307 378 | let settings = SigningSettings {
|
308 379 | payload_checksum_kind: PayloadChecksumKind::XAmzSha256,
|
309 380 | session_token_mode: SessionTokenMode::Exclude,
|
310 381 | ..Default::default()
|
311 382 | };
|
312 383 | let identity = Credentials::for_tests().into();
|
313 384 | let mut signing_params = signing_params(&identity, settings);
|
314 385 | let creq = CanonicalRequest::from(&req, &signing_params).unwrap();
|
315 386 | assert_eq!(
|
316 387 | creq.values.content_sha256(),
|
317 388 | "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
318 389 | );
|
319 390 | // assert that the sha256 header was added
|
320 391 | assert_eq!(
|
321 392 | creq.values.signed_headers().as_str(),
|
322 393 | "host;x-amz-content-sha256;x-amz-date"
|
323 394 | );
|
324 395 |
|
325 396 | signing_params.set_payload_checksum_kind(PayloadChecksumKind::NoHeader);
|
326 397 | let creq = CanonicalRequest::from(&req, &signing_params).unwrap();
|
327 398 | assert_eq!(creq.values.signed_headers().as_str(), "host;x-amz-date");
|
328 399 | }
|
329 400 |
|
330 401 | #[test]
|
331 402 | fn test_unsigned_payload() {
|
332 - | let mut req = test::v4::test_request("get-vanilla-query-order-key-case");
|
403 + | let test = SigningSuiteTest::v4("get-vanilla-query-order-key-case");
|
404 + | let mut req = test.request();
|
333 405 | req.set_body(SignableBody::UnsignedPayload);
|
334 406 | let req: SignableRequest<'_> = SignableRequest::from(&req);
|
335 407 |
|
336 408 | let settings = SigningSettings {
|
337 409 | payload_checksum_kind: PayloadChecksumKind::XAmzSha256,
|
338 410 | ..Default::default()
|
339 411 | };
|
340 412 | let identity = Credentials::for_tests().into();
|
341 413 | let signing_params = signing_params(&identity, settings);
|
342 414 | let creq = CanonicalRequest::from(&req, &signing_params).unwrap();
|
343 415 | assert_eq!(creq.values.content_sha256(), "UNSIGNED-PAYLOAD");
|
344 416 | assert!(creq.to_string().ends_with("UNSIGNED-PAYLOAD"));
|
345 417 | }
|
346 418 |
|
347 419 | #[test]
|
348 420 | fn test_precomputed_payload() {
|
349 421 | let payload_hash = "44ce7dd67c959e0d3524ffac1771dfbba87d2b6b4b4e99e42034a8b803f8b072";
|
350 - | let mut req = test::v4::test_request("get-vanilla-query-order-key-case");
|
422 + | let test = SigningSuiteTest::v4("get-vanilla-query-order-key-case");
|
423 + | let mut req = test.request();
|
351 424 | req.set_body(SignableBody::Precomputed(String::from(payload_hash)));
|
352 425 | let req = SignableRequest::from(&req);
|
353 426 | let settings = SigningSettings {
|
354 427 | payload_checksum_kind: PayloadChecksumKind::XAmzSha256,
|
355 428 | ..Default::default()
|
356 429 | };
|
357 430 | let identity = Credentials::for_tests().into();
|
358 431 | let signing_params = signing_params(&identity, settings);
|
359 432 | let creq = CanonicalRequest::from(&req, &signing_params).unwrap();
|
360 433 | assert_eq!(creq.values.content_sha256(), payload_hash);
|
361 434 | assert!(creq.to_string().ends_with(payload_hash));
|
362 435 | }
|
363 436 |
|
364 437 | #[test]
|
365 438 | fn test_generate_scope() {
|
366 439 | let expected = "20150830/us-east-1/iam/aws4_request\n";
|
367 440 | let scope = SigningScope {
|
368 441 | time: parse_date_time("20150830T123600Z").unwrap(),
|
369 442 | region: "us-east-1",
|
370 443 | service: "iam",
|
371 444 | };
|
372 445 | assert_eq!(format!("{}\n", scope), expected);
|
373 446 | }
|
374 447 |
|
375 448 | #[test]
|
376 449 | fn test_string_to_sign() {
|
377 450 | let time = parse_date_time("20150830T123600Z").unwrap();
|
378 - | let creq = test::v4::test_canonical_request("get-vanilla-query-order-key-case");
|
379 - | let expected_sts = test::v4::test_sts("get-vanilla-query-order-key-case");
|
451 + | let test = SigningSuiteTest::v4("get-vanilla-query-order-key-case");
|
452 + | let creq = test.canonical_request(SignatureLocation::Headers);
|
453 + | let expected_sts = test.string_to_sign(SignatureLocation::Headers);
|
380 454 | let encoded = sha256_hex_string(creq.as_bytes());
|
381 455 |
|
382 456 | let actual = StringToSign::new_v4(time, "us-east-1", "service", &encoded);
|
383 457 | assert_eq!(expected_sts, actual.to_string());
|
384 458 | }
|
385 459 |
|
386 460 | #[test]
|
387 461 | fn test_digest_of_canonical_request() {
|
388 - | let creq = test::v4::test_canonical_request("get-vanilla-query-order-key-case");
|
462 + | let test = SigningSuiteTest::v4("get-vanilla-query-order-key-case");
|
463 + | let creq = test.canonical_request(SignatureLocation::Headers);
|
389 464 | let expected = "816cd5b414d056048ba4f7c5386d6e0533120fb1fcfa93762cf0fc39e2cf19e0";
|
390 465 | let actual = sha256_hex_string(creq.as_bytes());
|
391 466 | assert_eq!(expected, actual);
|
392 467 | }
|
393 468 |
|
394 469 | #[test]
|
395 470 | fn test_double_url_encode_path() {
|
396 - | let req = test::v4::test_request("double-encode-path");
|
471 + | let test = SigningSuiteTest::v4("double-encode-path");
|
472 + | let req = test.request();
|
397 473 | let req = SignableRequest::from(&req);
|
398 474 | let identity = Credentials::for_tests().into();
|
399 475 | let signing_params = signing_params(&identity, SigningSettings::default());
|
400 476 | let creq = CanonicalRequest::from(&req, &signing_params).unwrap();
|
401 477 |
|
402 - | let expected = test::v4::test_canonical_request("double-encode-path");
|
478 + | let expected = test.canonical_request(SignatureLocation::Headers);
|
403 479 | let actual = format!("{}", creq);
|
404 480 | assert_eq!(actual, expected);
|
405 481 | }
|
406 482 |
|
407 483 | #[test]
|
408 484 | fn test_double_url_encode() {
|
409 - | let req = test::v4::test_request("double-url-encode");
|
485 + | let test = SigningSuiteTest::v4("double-url-encode");
|
486 + | let req = test.request();
|
410 487 | let req = SignableRequest::from(&req);
|
411 488 | let identity = Credentials::for_tests().into();
|
412 489 | let signing_params = signing_params(&identity, SigningSettings::default());
|
413 490 | let creq = CanonicalRequest::from(&req, &signing_params).unwrap();
|
414 - |
|
415 - | let expected = test::v4::test_canonical_request("double-url-encode");
|
491 + | let expected = test.canonical_request(SignatureLocation::Headers);
|
416 492 | let actual = format!("{}", creq);
|
417 493 | assert_eq!(actual, expected);
|
418 494 | }
|
419 495 |
|
420 496 | #[test]
|
421 497 | fn test_tilde_in_uri() {
|
422 498 | let req = http0::Request::builder()
|
423 499 | .uri("https://s3.us-east-1.amazonaws.com/my-bucket?list-type=2&prefix=~objprefix&single&k=&unreserved=-_.~").body("").unwrap().into();
|
424 500 | let req = SignableRequest::from(&req);
|
425 501 | let identity = Credentials::for_tests().into();
|
426 502 | let signing_params = signing_params(&identity, SigningSettings::default());
|
427 503 | let creq = CanonicalRequest::from(&req, &signing_params).unwrap();
|
428 504 | assert_eq!(
|
429 505 | Some("k=&list-type=2&prefix=~objprefix&single=&unreserved=-_.~"),
|
430 506 | creq.params.as_deref(),
|
431 507 | );
|
432 508 | }
|
433 509 |
|
434 510 | #[test]
|
435 511 | fn test_signing_urls_with_percent_encoded_query_strings() {
|
436 512 | let all_printable_ascii_chars: String = (32u8..127).map(char::from).collect();
|
437 513 | let uri = Uri::from_static("https://s3.us-east-1.amazonaws.com/my-bucket");
|
438 514 |
|
439 515 | let mut query_writer = QueryWriter::new(&uri);
|
440 516 | query_writer.insert("list-type", "2");
|
441 517 | query_writer.insert("prefix", &all_printable_ascii_chars);
|
442 518 |
|
443 519 | let req = http0::Request::builder()
|
444 520 | .uri(query_writer.build_uri())
|
445 521 | .body("")
|
446 522 | .unwrap()
|
447 523 | .into();
|
448 524 | let req = SignableRequest::from(&req);
|
449 525 | let identity = Credentials::for_tests().into();
|
450 526 | let signing_params = signing_params(&identity, SigningSettings::default());
|
451 527 | let creq = CanonicalRequest::from(&req, &signing_params).unwrap();
|
452 528 |
|
453 529 | let expected = "list-type=2&prefix=%20%21%22%23%24%25%26%27%28%29%2A%2B%2C-.%2F0123456789%3A%3B%3C%3D%3E%3F%40ABCDEFGHIJKLMNOPQRSTUVWXYZ%5B%5C%5D%5E_%60abcdefghijklmnopqrstuvwxyz%7B%7C%7D~";
|
454 530 | let actual = creq.params.unwrap();
|
455 531 | assert_eq!(expected, actual);
|
456 532 | }
|
457 533 |
|
458 534 | #[test]
|
459 535 | fn test_omit_session_token() {
|
460 - | let req = test::v4::test_request("get-vanilla-query-order-key-case");
|
536 + | let test = SigningSuiteTest::v4("get-vanilla-query-order-key-case");
|
537 + | let req = test.request();
|
461 538 | let req = SignableRequest::from(&req);
|
462 539 | let settings = SigningSettings {
|
463 540 | session_token_mode: SessionTokenMode::Include,
|
464 541 | ..Default::default()
|
465 542 | };
|
466 543 | let identity = Credentials::for_tests_with_session_token().into();
|
467 544 | let mut signing_params = signing_params(&identity, settings);
|
468 545 |
|
469 546 | let creq = CanonicalRequest::from(&req, &signing_params).unwrap();
|
470 547 | assert_eq!(
|
471 548 | creq.values.signed_headers().as_str(),
|
472 549 | "host;x-amz-date;x-amz-security-token"
|
473 550 | );
|
474 551 | assert_eq!(
|
475 552 | creq.headers.get("x-amz-security-token").unwrap(),
|
476 553 | "notarealsessiontoken"
|
477 554 | );
|
478 555 |
|
479 556 | signing_params.set_session_token_mode(SessionTokenMode::Exclude);
|
480 557 | let creq = CanonicalRequest::from(&req, &signing_params).unwrap();
|
481 558 | assert_eq!(
|
482 559 | creq.headers.get("x-amz-security-token").unwrap(),
|
483 560 | "notarealsessiontoken"
|
484 561 | );
|
485 562 | assert_eq!(creq.values.signed_headers().as_str(), "host;x-amz-date");
|
486 563 | }
|
487 564 |
|
488 565 | // It should exclude authorization, user-agent, x-amzn-trace-id, and transfer-encoding headers from presigning
|
489 566 | #[test]
|
490 567 | fn non_presigning_header_exclusion() {
|
491 568 | diff --git a/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/src/http_request/sign.rs b/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/src/http_request/sign.rs
|
492 569 | index c4bbbee..363fc2c 100644
|
493 - | -- a/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/src/http_request/sign.rs
|
570 + | ++ b/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/src/http_request/sign.rs
|
494 571 | @@ -6,60 +6,62 @@
|
495 572 | use super::error::SigningError;
|
496 573 | use super::{PayloadChecksumKind, SignatureLocation};
|
497 574 | use crate::http_request::canonical_request::header;
|
498 575 | use crate::http_request::canonical_request::param;
|
499 576 | use crate::http_request::canonical_request::{CanonicalRequest, StringToSign};
|
500 577 | use crate::http_request::error::CanonicalRequestError;
|
501 578 | use crate::http_request::SigningParams;
|
502 579 | use crate::sign::v4;
|
503 580 | #[cfg(feature = "sigv4a")]
|
504 581 | use crate::sign::v4a;
|
505 582 | use crate::{SignatureVersion, SigningOutput};
|
506 583 | use http0::Uri;
|
507 584 | use std::borrow::Cow;
|
508 585 | use std::fmt::{Debug, Formatter};
|
509 586 | use std::str;
|
510 587 |
|
511 588 | const LOG_SIGNABLE_BODY: &str = "LOG_SIGNABLE_BODY";
|
512 589 |
|
513 590 | /// Represents all of the information necessary to sign an HTTP request.
|
514 591 | #[derive(Debug)]
|
515 592 | #[non_exhaustive]
|
516 593 | pub struct SignableRequest<'a> {
|
517 594 | method: &'a str,
|
518 595 | uri: Uri,
|
519 596 | headers: Vec<(&'a str, &'a str)>,
|
520 597 | body: SignableBody<'a>,
|
521 598 | }
|
522 599 |
|
523 600 | impl<'a> SignableRequest<'a> {
|
524 601 | /// Creates a new `SignableRequest`.
|
602 + | ///
|
603 + | /// NOTE: The `uri` is expected to already in encoded form.
|
525 604 | pub fn new(
|
526 605 | method: &'a str,
|
527 606 | uri: impl Into<Cow<'a, str>>,
|
528 607 | headers: impl Iterator<Item = (&'a str, &'a str)>,
|
529 608 | body: SignableBody<'a>,
|
530 609 | ) -> Result<Self, SigningError> {
|
531 610 | let uri = uri
|
532 611 | .into()
|
533 612 | .parse()
|
534 613 | .map_err(|e| SigningError::from(CanonicalRequestError::from(e)))?;
|
535 614 | let headers = headers.collect();
|
536 615 | Ok(Self {
|
537 616 | method,
|
538 617 | uri,
|
539 618 | headers,
|
540 619 | body,
|
541 620 | })
|
542 621 | }
|
543 622 |
|
544 623 | /// Returns the signable URI
|
545 624 | pub(crate) fn uri(&self) -> &Uri {
|
546 625 | &self.uri
|
547 626 | }
|
548 627 |
|
549 628 | /// Returns the signable HTTP method
|
550 629 | pub(crate) fn method(&self) -> &str {
|
551 630 | self.method
|
552 631 | }
|
553 632 |
|
554 633 | /// Returns the request headers
|
555 634 | @@ -478,436 +480,324 @@ fn add_header(map: &mut Vec<Header>, key: &'static str, value: &str, sensitive:
|
556 635 | sensitive,
|
557 636 | });
|
558 637 | }
|
559 638 |
|
560 639 | // add signature to authorization header
|
561 640 | // Authorization: algorithm Credential=access key ID/credential scope, SignedHeaders=SignedHeaders, Signature=signature
|
562 641 | fn build_authorization_header(
|
563 642 | access_key: &str,
|
564 643 | creq: &CanonicalRequest<'_>,
|
565 644 | sts: StringToSign<'_>,
|
566 645 | signature: &str,
|
567 646 | signature_version: SignatureVersion,
|
568 647 | ) -> String {
|
569 648 | let scope = match signature_version {
|
570 649 | SignatureVersion::V4 => sts.scope.to_string(),
|
571 650 | SignatureVersion::V4a => sts.scope.v4a_display(),
|
572 651 | };
|
573 652 | format!(
|
574 653 | "{} Credential={}/{}, SignedHeaders={}, Signature={}",
|
575 654 | sts.algorithm,
|
576 655 | access_key,
|
577 656 | scope,
|
578 657 | creq.values.signed_headers().as_str(),
|
579 658 | signature
|
580 659 | )
|
581 660 | }
|
582 661 | #[cfg(test)]
|
583 662 | mod tests {
|
584 663 | use crate::date_time::test_parsers::parse_date_time;
|
585 664 | use crate::http_request::sign::{add_header, SignableRequest};
|
665 + | use crate::http_request::test::SigningSuiteTest;
|
586 666 | use crate::http_request::{
|
587 - | sign, test, SessionTokenMode, SignableBody, SignatureLocation, SigningInstructions,
|
667 + | sign, SessionTokenMode, SignableBody, SignatureLocation, SigningInstructions,
|
588 668 | SigningSettings,
|
589 669 | };
|
590 670 | use crate::sign::v4;
|
591 671 | use aws_credential_types::Credentials;
|
592 672 | use http0::{HeaderValue, Request};
|
593 673 | use pretty_assertions::assert_eq;
|
594 674 | use proptest::proptest;
|
595 675 | use std::borrow::Cow;
|
596 676 | use std::iter;
|
597 - | use std::time::Duration;
|
598 677 |
|
599 678 | macro_rules! assert_req_eq {
|
600 679 | (http: $expected:expr, $actual:expr) => {
|
601 680 | let mut expected = ($expected).map(|_b|"body");
|
602 681 | let mut actual = ($actual).map(|_b|"body");
|
603 682 | make_headers_comparable(&mut expected);
|
604 683 | make_headers_comparable(&mut actual);
|
605 684 | assert_eq!(format!("{:?}", expected), format!("{:?}", actual));
|
606 685 | };
|
607 686 | ($expected:tt, $actual:tt) => {
|
608 687 | assert_req_eq!(http: ($expected).as_http_request(), $actual);
|
609 688 | };
|
610 689 | }
|
611 690 |
|
612 691 | pub(crate) fn make_headers_comparable<B>(request: &mut Request<B>) {
|
613 692 | for (_name, value) in request.headers_mut() {
|
614 693 | value.set_sensitive(false);
|
615 694 | }
|
616 695 | }
|
617 696 |
|
618 - | #[test]
|
619 - | fn test_sign_vanilla_with_headers() {
|
620 - | let settings = SigningSettings::default();
|
621 - | let identity = &Credentials::for_tests().into();
|
622 - | let params = v4::SigningParams {
|
623 - | identity,
|
624 - | region: "us-east-1",
|
625 - | name: "service",
|
626 - | time: parse_date_time("20150830T123600Z").unwrap(),
|
627 - | settings,
|
628 - | }
|
629 - | .into();
|
630 - |
|
631 - | let original = test::v4::test_request("get-vanilla-query-order-key-case");
|
632 - | let signable = SignableRequest::from(&original);
|
633 - | let out = sign(signable, ¶ms).unwrap();
|
634 - | assert_eq!(
|
635 - | "5557820e7380d585310524bd93d51a08d7757fb5efd7344ee12088f2b0860947",
|
636 - | out.signature
|
637 - | );
|
638 - |
|
639 - | let mut signed = original.as_http_request();
|
640 - | out.output.apply_to_request_http0x(&mut signed);
|
641 - |
|
642 - | let expected = test::v4::test_signed_request("get-vanilla-query-order-key-case");
|
643 - | assert_req_eq!(expected, signed);
|
644 - | }
|
645 - |
|
697 + | // Sigv4A suite tests
|
646 698 | #[cfg(feature = "sigv4a")]
|
647 - | mod sigv4a_tests {
|
648 - | use super::*;
|
649 - | use crate::http_request::canonical_request::{CanonicalRequest, StringToSign};
|
650 - | use crate::http_request::{sign, test, SigningParams};
|
651 - | use crate::sign::v4a;
|
652 - | use p256::ecdsa::signature::{Signature, Verifier};
|
653 - | use p256::ecdsa::{DerSignature, SigningKey};
|
654 - | use pretty_assertions::assert_eq;
|
655 - |
|
656 - | fn new_v4a_signing_params_from_context(
|
657 - | test_context: &'_ test::v4a::TestContext,
|
658 - | signature_location: SignatureLocation,
|
659 - | ) -> SigningParams<'_> {
|
660 - | let mut params = v4a::SigningParams::from(test_context);
|
661 - | params.settings.signature_location = signature_location;
|
662 - |
|
663 - | params.into()
|
664 - | }
|
665 - |
|
666 - | fn run_v4a_test_suite(test_name: &str, signature_location: SignatureLocation) {
|
667 - | let tc = test::v4a::test_context(test_name);
|
668 - | let params = new_v4a_signing_params_from_context(&tc, signature_location);
|
669 - |
|
670 - | let req = test::v4a::test_request(test_name);
|
671 - | let expected_creq = test::v4a::test_canonical_request(test_name, signature_location);
|
672 - | let signable_req = SignableRequest::from(&req);
|
673 - | let actual_creq = CanonicalRequest::from(&signable_req, ¶ms).unwrap();
|
674 - |
|
675 - | assert_eq!(expected_creq, actual_creq.to_string(), "creq didn't match");
|
676 - |
|
677 - | let expected_string_to_sign =
|
678 - | test::v4a::test_string_to_sign(test_name, signature_location);
|
679 - | let hashed_creq = &v4::sha256_hex_string(actual_creq.to_string().as_bytes());
|
680 - | let actual_string_to_sign = StringToSign::new_v4a(
|
681 - | *params.time(),
|
682 - | params.region_set().unwrap(),
|
683 - | params.name(),
|
684 - | hashed_creq,
|
685 - | )
|
686 - | .to_string();
|
699 + | mod v4a_suite {
|
700 + | use crate::http_request::test::v4a::run_test_suite_v4a;
|
687 701 |
|
688 - | assert_eq!(
|
689 - | expected_string_to_sign, actual_string_to_sign,
|
690 - | "'string to sign' didn't match"
|
691 - | );
|
692 - |
|
693 - | let out = sign(signable_req, ¶ms).unwrap();
|
694 - | // Sigv4a signatures are non-deterministic, so we can't compare the signature directly.
|
695 - | out.output
|
696 - | .apply_to_request_http0x(&mut req.as_http_request());
|
697 - |
|
698 - | let creds = params.credentials().unwrap();
|
699 - | let signing_key =
|
700 - | v4a::generate_signing_key(creds.access_key_id(), creds.secret_access_key());
|
701 - | let sig = DerSignature::from_bytes(&hex::decode(out.signature).unwrap()).unwrap();
|
702 - | let sig = sig
|
703 - | .try_into()
|
704 - | .expect("DER-style signatures are always convertible into fixed-size signatures");
|
705 - |
|
706 - | let signing_key = SigningKey::from_bytes(signing_key.as_ref()).unwrap();
|
707 - | let peer_public_key = signing_key.verifying_key();
|
708 - | let sts = actual_string_to_sign.as_bytes();
|
709 - | peer_public_key.verify(sts, &sig).unwrap();
|
702 + | #[test]
|
703 + | fn test_get_header_key_duplicate() {
|
704 + | run_test_suite_v4a("get-header-key-duplicate")
|
710 705 | }
|
711 706 |
|
712 707 | #[test]
|
713 - | fn test_get_header_key_duplicate() {
|
714 - | run_v4a_test_suite("get-header-key-duplicate", SignatureLocation::Headers);
|
708 + | #[ignore = "httpparse doesn't support parsing multiline headers since they are deprecated in RFC7230"]
|
709 + | fn test_get_header_value_multiline() {
|
710 + | run_test_suite_v4a("get-header-value-multiline")
|
715 711 | }
|
716 712 |
|
717 713 | #[test]
|
718 714 | fn test_get_header_value_order() {
|
719 - | run_v4a_test_suite("get-header-value-order", SignatureLocation::Headers);
|
715 + | run_test_suite_v4a("get-header-value-order")
|
720 716 | }
|
721 717 |
|
722 718 | #[test]
|
723 719 | fn test_get_header_value_trim() {
|
724 - | run_v4a_test_suite("get-header-value-trim", SignatureLocation::Headers);
|
720 + | run_test_suite_v4a("get-header-value-trim");
|
725 721 | }
|
726 722 |
|
727 723 | #[test]
|
728 724 | fn test_get_relative_normalized() {
|
729 - | run_v4a_test_suite("get-relative-normalized", SignatureLocation::Headers);
|
725 + | run_test_suite_v4a("get-relative-normalized");
|
730 726 | }
|
731 727 |
|
732 728 | #[test]
|
733 729 | fn test_get_relative_relative_normalized() {
|
734 - | run_v4a_test_suite(
|
735 - | "get-relative-relative-normalized",
|
736 - | SignatureLocation::Headers,
|
737 - | );
|
730 + | run_test_suite_v4a("get-relative-relative-normalized");
|
738 731 | }
|
739 732 |
|
740 733 | #[test]
|
741 734 | fn test_get_relative_relative_unnormalized() {
|
742 - | run_v4a_test_suite(
|
743 - | "get-relative-relative-unnormalized",
|
744 - | SignatureLocation::Headers,
|
745 - | );
|
735 + | run_test_suite_v4a("get-relative-relative-unnormalized");
|
746 736 | }
|
747 737 |
|
748 738 | #[test]
|
749 739 | fn test_get_relative_unnormalized() {
|
750 - | run_v4a_test_suite("get-relative-unnormalized", SignatureLocation::Headers);
|
740 + | run_test_suite_v4a("get-relative-unnormalized");
|
751 741 | }
|
752 742 |
|
753 743 | #[test]
|
754 744 | fn test_get_slash_dot_slash_normalized() {
|
755 - | run_v4a_test_suite("get-slash-dot-slash-normalized", SignatureLocation::Headers);
|
745 + | run_test_suite_v4a("get-slash-dot-slash-normalized");
|
756 746 | }
|
757 747 |
|
758 748 | #[test]
|
759 749 | fn test_get_slash_dot_slash_unnormalized() {
|
760 - | run_v4a_test_suite(
|
761 - | "get-slash-dot-slash-unnormalized",
|
762 - | SignatureLocation::Headers,
|
763 - | );
|
750 + | run_test_suite_v4a("get-slash-dot-slash-unnormalized");
|
764 751 | }
|
765 752 |
|
766 753 | #[test]
|
767 754 | fn test_get_slash_normalized() {
|
768 - | run_v4a_test_suite("get-slash-normalized", SignatureLocation::Headers);
|
755 + | run_test_suite_v4a("get-slash-normalized");
|
769 756 | }
|
770 757 |
|
771 758 | #[test]
|
772 759 | fn test_get_slash_pointless_dot_normalized() {
|
773 - | run_v4a_test_suite(
|
774 - | "get-slash-pointless-dot-normalized",
|
775 - | SignatureLocation::Headers,
|
776 - | );
|
760 + | run_test_suite_v4a("get-slash-pointless-dot-normalized");
|
777 761 | }
|
778 762 |
|
779 763 | #[test]
|
780 764 | fn test_get_slash_pointless_dot_unnormalized() {
|
781 - | run_v4a_test_suite(
|
782 - | "get-slash-pointless-dot-unnormalized",
|
783 - | SignatureLocation::Headers,
|
784 - | );
|
765 + | run_test_suite_v4a("get-slash-pointless-dot-unnormalized");
|
785 766 | }
|
786 767 |
|
787 768 | #[test]
|
788 769 | fn test_get_slash_unnormalized() {
|
789 - | run_v4a_test_suite("get-slash-unnormalized", SignatureLocation::Headers);
|
770 + | run_test_suite_v4a("get-slash-unnormalized");
|
790 771 | }
|
791 772 |
|
792 773 | #[test]
|
793 774 | fn test_get_slashes_normalized() {
|
794 - | run_v4a_test_suite("get-slashes-normalized", SignatureLocation::Headers);
|
775 + | run_test_suite_v4a("get-slashes-normalized");
|
795 776 | }
|
796 777 |
|
797 778 | #[test]
|
798 779 | fn test_get_slashes_unnormalized() {
|
799 - | run_v4a_test_suite("get-slashes-unnormalized", SignatureLocation::Headers);
|
780 + | run_test_suite_v4a("get-slashes-unnormalized");
|
781 + | }
|
782 + |
|
783 + | #[test]
|
784 + | #[ignore = "relies on single encode of path segments"]
|
785 + | // rely on single encoding of path segments, i.e. string-to-sign contains %20 for spaces rather than %25%20 as it should.
|
786 + | // skipped until we add control over double_uri_encode in context.json
|
787 + | fn test_get_space_normalized() {
|
788 + | run_test_suite_v4a("get-space-normalized");
|
789 + | }
|
790 + |
|
791 + | #[test]
|
792 + | #[ignore = "httpparse fails on unencoded spaces in path"]
|
793 + | // the input request has unencoded space ' ' in the path which fails to parse
|
794 + | fn test_get_space_unnormalized() {
|
795 + | run_test_suite_v4a("get-space-unnormalized");
|
800 796 | }
|
801 797 |
|
802 798 | #[test]
|
803 799 | fn test_get_unreserved() {
|
804 - | run_v4a_test_suite("get-unreserved", SignatureLocation::Headers);
|
800 + | run_test_suite_v4a("get-unreserved");
|
801 + | }
|
802 + |
|
803 + | #[test]
|
804 + | #[ignore = "httparse fails on invalid uri character"]
|
805 + | // relies on /ሴ canonicalized as /%E1%88%B4 when it should be /%25%E1%25%88%25%B4
|
806 + | fn test_get_utf8() {
|
807 + | run_test_suite_v4a("get-utf8");
|
805 808 | }
|
806 809 |
|
807 810 | #[test]
|
808 811 | fn test_get_vanilla() {
|
809 - | run_v4a_test_suite("get-vanilla", SignatureLocation::Headers);
|
812 + | run_test_suite_v4a("get-vanilla");
|
810 813 | }
|
811 814 |
|
812 815 | #[test]
|
813 816 | fn test_get_vanilla_empty_query_key() {
|
814 - | run_v4a_test_suite(
|
815 - | "get-vanilla-empty-query-key",
|
816 - | SignatureLocation::QueryParams,
|
817 - | );
|
817 + | run_test_suite_v4a("get-vanilla-empty-query-key");
|
818 818 | }
|
819 819 |
|
820 820 | #[test]
|
821 821 | fn test_get_vanilla_query() {
|
822 - | run_v4a_test_suite("get-vanilla-query", SignatureLocation::QueryParams);
|
822 + | run_test_suite_v4a("get-vanilla-query");
|
823 + | }
|
824 + |
|
825 + | #[test]
|
826 + | fn test_get_vanilla_query_order_encoded() {
|
827 + | run_test_suite_v4a("get-vanilla-query-order-encoded");
|
823 828 | }
|
824 829 |
|
825 830 | #[test]
|
826 831 | fn test_get_vanilla_query_order_key_case() {
|
827 - | run_v4a_test_suite(
|
828 - | "get-vanilla-query-order-key-case",
|
829 - | SignatureLocation::QueryParams,
|
830 - | );
|
832 + | run_test_suite_v4a("get-vanilla-query-order-key-case");
|
831 833 | }
|
832 834 |
|
833 835 | #[test]
|
834 836 | fn test_get_vanilla_query_unreserved() {
|
835 - | run_v4a_test_suite(
|
836 - | "get-vanilla-query-unreserved",
|
837 - | SignatureLocation::QueryParams,
|
838 - | );
|
837 + | run_test_suite_v4a("get-vanilla-query-unreserved");
|
838 + | }
|
839 + |
|
840 + | #[test]
|
841 + | #[ignore = "httparse fails on invalid uri character"]
|
842 + | // relies on /ሴ canonicalized as /%E1%88%B4 when it should be /%25%E1%25%88%25%B4
|
843 + | fn test_get_vanilla_utf8_query() {
|
844 + | run_test_suite_v4a("get-vanilla-utf8-query");
|
839 845 | }
|
840 846 |
|
841 847 | #[test]
|
842 848 | fn test_get_vanilla_with_session_token() {
|
843 - | run_v4a_test_suite("get-vanilla-with-session-token", SignatureLocation::Headers);
|
849 + | run_test_suite_v4a("get-vanilla-with-session-token")
|
844 850 | }
|
845 851 |
|
846 852 | #[test]
|
847 853 | fn test_post_header_key_case() {
|
848 - | run_v4a_test_suite("post-header-key-case", SignatureLocation::Headers);
|
854 + | run_test_suite_v4a("post-header-key-case");
|
849 855 | }
|
850 856 |
|
851 857 | #[test]
|
852 858 | fn test_post_header_key_sort() {
|
853 - | run_v4a_test_suite("post-header-key-sort", SignatureLocation::Headers);
|
859 + | run_test_suite_v4a("post-header-key-sort");
|
854 860 | }
|
855 861 |
|
856 862 | #[test]
|
857 863 | fn test_post_header_value_case() {
|
858 - | run_v4a_test_suite("post-header-value-case", SignatureLocation::Headers);
|
864 + | run_test_suite_v4a("post-header-value-case");
|
859 865 | }
|
860 866 |
|
861 867 | #[test]
|
862 868 | fn test_post_sts_header_after() {
|
863 - | run_v4a_test_suite("post-sts-header-after", SignatureLocation::Headers);
|
869 + | run_test_suite_v4a("post-sts-header-after");
|
864 870 | }
|
865 871 |
|
866 872 | #[test]
|
867 873 | fn test_post_sts_header_before() {
|
868 - | run_v4a_test_suite("post-sts-header-before", SignatureLocation::Headers);
|
874 + | run_test_suite_v4a("post-sts-header-before");
|
869 875 | }
|
870 876 |
|
871 877 | #[test]
|
872 878 | fn test_post_vanilla() {
|
873 - | run_v4a_test_suite("post-vanilla", SignatureLocation::Headers);
|
879 + | run_test_suite_v4a("post-vanilla");
|
874 880 | }
|
875 881 |
|
876 882 | #[test]
|
877 883 | fn test_post_vanilla_empty_query_value() {
|
878 - | run_v4a_test_suite(
|
879 - | "post-vanilla-empty-query-value",
|
880 - | SignatureLocation::QueryParams,
|
881 - | );
|
884 + | run_test_suite_v4a("post-vanilla-empty-query-value");
|
882 885 | }
|
883 886 |
|
884 887 | #[test]
|
885 888 | fn test_post_vanilla_query() {
|
886 - | run_v4a_test_suite("post-vanilla-query", SignatureLocation::QueryParams);
|
889 + | run_test_suite_v4a("post-vanilla-query");
|
887 890 | }
|
888 891 |
|
889 892 | #[test]
|
890 893 | fn test_post_x_www_form_urlencoded() {
|
891 - | run_v4a_test_suite("post-x-www-form-urlencoded", SignatureLocation::Headers);
|
894 + | run_test_suite_v4a("post-x-www-form-urlencoded");
|
892 895 | }
|
893 896 |
|
894 897 | #[test]
|
895 898 | fn test_post_x_www_form_urlencoded_parameters() {
|
896 - | run_v4a_test_suite(
|
897 - | "post-x-www-form-urlencoded-parameters",
|
898 - | SignatureLocation::QueryParams,
|
899 - | );
|
899 + | run_test_suite_v4a("post-x-www-form-urlencoded-parameters");
|
900 900 | }
|
901 901 | }
|
902 902 |
|
903 903 | #[test]
|
904 904 | fn test_sign_url_escape() {
|
905 - | let test = "double-encode-path";
|
905 + | let test = SigningSuiteTest::v4("double-encode-path");
|
906 906 | let settings = SigningSettings::default();
|
907 907 | let identity = &Credentials::for_tests().into();
|
908 908 | let params = v4::SigningParams {
|
909 909 | identity,
|
910 910 | region: "us-east-1",
|
911 911 | name: "service",
|
912 912 | time: parse_date_time("20150830T123600Z").unwrap(),
|
913 913 | settings,
|
914 914 | }
|
915 915 | .into();
|
916 916 |
|
917 - | let original = test::v4::test_request(test);
|
917 + | let original = test.request();
|
918 918 | let signable = SignableRequest::from(&original);
|
919 919 | let out = sign(signable, ¶ms).unwrap();
|
920 920 | assert_eq!(
|
921 921 | "57d157672191bac40bae387e48bbe14b15303c001fdbb01f4abf295dccb09705",
|
922 922 | out.signature
|
923 923 | );
|
924 924 |
|
925 925 | let mut signed = original.as_http_request();
|
926 926 | out.output.apply_to_request_http0x(&mut signed);
|
927 927 |
|
928 - | let expected = test::v4::test_signed_request(test);
|
929 - | assert_req_eq!(expected, signed);
|
930 - | }
|
931 - |
|
932 - | #[test]
|
933 - | fn test_sign_vanilla_with_query_params() {
|
934 - | let settings = SigningSettings {
|
935 - | signature_location: SignatureLocation::QueryParams,
|
936 - | expires_in: Some(Duration::from_secs(35)),
|
937 - | ..Default::default()
|
938 - | };
|
939 - | let identity = &Credentials::for_tests().into();
|
940 - | let params = v4::SigningParams {
|
941 - | identity,
|
942 - | region: "us-east-1",
|
943 - | name: "service",
|
944 - | time: parse_date_time("20150830T123600Z").unwrap(),
|
945 - | settings,
|
946 - | }
|
947 - | .into();
|
948 - |
|
949 - | let original = test::v4::test_request("get-vanilla-query-order-key-case");
|
950 - | let signable = SignableRequest::from(&original);
|
951 - | let out = sign(signable, ¶ms).unwrap();
|
952 - | assert_eq!(
|
953 - | "ecce208e4b4f7d7e3a4cc22ced6acc2ad1d170ee8ba87d7165f6fa4b9aff09ab",
|
954 - | out.signature
|
955 - | );
|
956 - |
|
957 - | let mut signed = original.as_http_request();
|
958 - | out.output.apply_to_request_http0x(&mut signed);
|
959 - |
|
960 - | let expected =
|
961 - | test::v4::test_signed_request_query_params("get-vanilla-query-order-key-case");
|
928 + | let expected = test.signed_request(SignatureLocation::Headers);
|
962 929 | assert_req_eq!(expected, signed);
|
963 930 | }
|
964 931 |
|
965 932 | #[test]
|
966 933 | fn test_sign_headers_utf8() {
|
967 934 | let settings = SigningSettings::default();
|
968 935 | let identity = &Credentials::for_tests().into();
|
969 936 | let params = v4::SigningParams {
|
970 937 | identity,
|
971 938 | region: "us-east-1",
|
972 939 | name: "service",
|
973 940 | time: parse_date_time("20150830T123600Z").unwrap(),
|
974 941 | settings,
|
975 942 | }
|
976 943 | .into();
|
977 944 |
|
978 945 | let original = http0::Request::builder()
|
979 946 | .uri("https://some-endpoint.some-region.amazonaws.com")
|
980 947 | .header("some-header", HeaderValue::from_str("テスト").unwrap())
|
981 948 | .body("")
|
982 949 | .unwrap()
|
983 950 | .into();
|
984 951 | let signable = SignableRequest::from(&original);
|
985 952 | let out = sign(signable, ¶ms).unwrap();
|
986 953 | assert_eq!(
|
987 954 | "55e16b31f9bde5fd04f9d3b780dd2b5e5f11a5219001f91a8ca9ec83eaf1618f",
|
988 955 | out.signature
|
989 956 | );
|
990 957 |
|
991 958 | let mut signed = original.as_http_request();
|
992 959 | @@ -1138,31 +1028,236 @@ mod tests {
|
993 960 | let mut request = http::Request::builder()
|
994 961 | .uri("https://some-endpoint.some-region.amazonaws.com/some/path")
|
995 962 | .body("")
|
996 963 | .unwrap();
|
997 964 |
|
998 965 | instructions.apply_to_request_http1x(&mut request);
|
999 966 |
|
1000 967 | assert_eq!(
|
1001 968 | "/some/path?some-param=f%26o%3Fo&some-other-param%3F=bar",
|
1002 969 | request.uri().path_and_query().unwrap().to_string()
|
1003 970 | );
|
1004 971 | }
|
1005 972 |
|
1006 973 | #[test]
|
1007 974 | fn test_debug_signable_body() {
|
1008 975 | let sut = SignableBody::Bytes(b"hello signable body");
|
1009 976 | assert_eq!(
|
1010 977 | "Bytes(\"** REDACTED **. To print 19 bytes of raw data, set environment variable `LOG_SIGNABLE_BODY=true`\")",
|
1011 978 | format!("{sut:?}")
|
1012 979 | );
|
1013 980 |
|
1014 981 | let sut = SignableBody::UnsignedPayload;
|
1015 982 | assert_eq!("UnsignedPayload", format!("{sut:?}"));
|
1016 983 |
|
1017 984 | let sut = SignableBody::Precomputed("precomputed".to_owned());
|
1018 985 | assert_eq!("Precomputed(\"precomputed\")", format!("{sut:?}"));
|
1019 986 |
|
1020 987 | let sut = SignableBody::StreamingUnsignedPayloadTrailer;
|
1021 988 | assert_eq!("StreamingUnsignedPayloadTrailer", format!("{sut:?}"));
|
1022 989 | }
|
990 + |
|
991 + | // v4 test suite
|
992 + | mod v4_suite {
|
993 + | use crate::http_request::test::run_test_suite_v4;
|
994 + |
|
995 + | #[test]
|
996 + | fn test_get_header_key_duplicate() {
|
997 + | run_test_suite_v4("get-header-key-duplicate");
|
998 + | }
|
999 + |
|
1000 + | #[test]
|
1001 + | #[ignore = "httpparse doesn't support parsing multiline headers since they are deprecated in RFC7230"]
|
1002 + | fn test_get_header_value_multiline() {
|
1003 + | run_test_suite_v4("get-header-value-multiline");
|
1004 + | }
|
1005 + |
|
1006 + | #[test]
|
1007 + | fn test_get_header_value_order() {
|
1008 + | run_test_suite_v4("get-header-value-order");
|
1009 + | }
|
1010 + |
|
1011 + | #[test]
|
1012 + | fn test_get_header_value_trim() {
|
1013 + | run_test_suite_v4("get-header-value-trim");
|
1014 + | }
|
1015 + |
|
1016 + | #[test]
|
1017 + | fn test_get_relative_normalized() {
|
1018 + | run_test_suite_v4("get-relative-normalized");
|
1019 + | }
|
1020 + |
|
1021 + | #[test]
|
1022 + | fn test_get_relative_relative_normalized() {
|
1023 + | run_test_suite_v4("get-relative-relative-normalized");
|
1024 + | }
|
1025 + |
|
1026 + | #[test]
|
1027 + | fn test_get_relative_relative_unnormalized() {
|
1028 + | run_test_suite_v4("get-relative-relative-unnormalized");
|
1029 + | }
|
1030 + |
|
1031 + | #[test]
|
1032 + | fn test_get_relative_unnormalized() {
|
1033 + | run_test_suite_v4("get-relative-unnormalized");
|
1034 + | }
|
1035 + |
|
1036 + | #[test]
|
1037 + | fn test_get_slash_dot_slash_normalized() {
|
1038 + | run_test_suite_v4("get-slash-dot-slash-normalized");
|
1039 + | }
|
1040 + |
|
1041 + | #[test]
|
1042 + | fn test_get_slash_dot_slash_unnormalized() {
|
1043 + | run_test_suite_v4("get-slash-dot-slash-unnormalized");
|
1044 + | }
|
1045 + |
|
1046 + | #[test]
|
1047 + | fn test_get_slash_normalized() {
|
1048 + | run_test_suite_v4("get-slash-normalized");
|
1049 + | }
|
1050 + |
|
1051 + | #[test]
|
1052 + | fn test_get_slash_pointless_dot_normalized() {
|
1053 + | run_test_suite_v4("get-slash-pointless-dot-normalized");
|
1054 + | }
|
1055 + |
|
1056 + | #[test]
|
1057 + | fn test_get_slash_pointless_dot_unnormalized() {
|
1058 + | run_test_suite_v4("get-slash-pointless-dot-unnormalized");
|
1059 + | }
|
1060 + |
|
1061 + | #[test]
|
1062 + | fn test_get_slash_unnormalized() {
|
1063 + | run_test_suite_v4("get-slash-unnormalized");
|
1064 + | }
|
1065 + |
|
1066 + | #[test]
|
1067 + | fn test_get_slashes_normalized() {
|
1068 + | run_test_suite_v4("get-slashes-normalized");
|
1069 + | }
|
1070 + |
|
1071 + | #[test]
|
1072 + | fn test_get_slashes_unnormalized() {
|
1073 + | run_test_suite_v4("get-slashes-unnormalized");
|
1074 + | }
|
1075 + |
|
1076 + | #[test]
|
1077 + | #[ignore = "relies on single encode of path segments"]
|
1078 + | // rely on single encoding of path segments, i.e. string-to-sign contains %20 for spaces rather than %25%20 as it should.
|
1079 + | // skipped until we add control over double_uri_encode in context.json
|
1080 + | fn test_get_space_normalized() {
|
1081 + | run_test_suite_v4("get-space-normalized");
|
1082 + | }
|
1083 + |
|
1084 + | #[test]
|
1085 + | #[ignore = "httpparse fails on unencoded spaces in path"]
|
1086 + | // the input request has unencoded space ' ' in the path which fails to parse
|
1087 + | fn test_get_space_unnormalized() {
|
1088 + | run_test_suite_v4("get-space-unnormalized");
|
1089 + | }
|
1090 + |
|
1091 + | #[test]
|
1092 + | fn test_get_unreserved() {
|
1093 + | run_test_suite_v4("get-unreserved");
|
1094 + | }
|
1095 + |
|
1096 + | #[test]
|
1097 + | #[ignore = "httparse fails on invalid uri character"]
|
1098 + | // relies on /ሴ canonicalized as /%E1%88%B4 when it should be /%25%E1%25%88%25%B4
|
1099 + | fn test_get_utf8() {
|
1100 + | run_test_suite_v4("get-utf8");
|
1101 + | }
|
1102 + |
|
1103 + | #[test]
|
1104 + | fn test_get_vanilla() {
|
1105 + | run_test_suite_v4("get-vanilla");
|
1106 + | }
|
1107 + |
|
1108 + | #[test]
|
1109 + | fn test_get_vanilla_empty_query_key() {
|
1110 + | run_test_suite_v4("get-vanilla-empty-query-key");
|
1111 + | }
|
1112 + |
|
1113 + | #[test]
|
1114 + | fn test_get_vanilla_query() {
|
1115 + | run_test_suite_v4("get-vanilla-query");
|
1116 + | }
|
1117 + |
|
1118 + | #[test]
|
1119 + | fn test_get_vanilla_query_order_encoded() {
|
1120 + | run_test_suite_v4("get-vanilla-query-order-encoded");
|
1121 + | }
|
1122 + |
|
1123 + | #[test]
|
1124 + | fn test_get_vanilla_query_order_key_case() {
|
1125 + | run_test_suite_v4("get-vanilla-query-order-key-case");
|
1126 + | }
|
1127 + |
|
1128 + | #[test]
|
1129 + | fn test_get_vanilla_query_unreserved() {
|
1130 + | run_test_suite_v4("get-vanilla-query-unreserved");
|
1131 + | }
|
1132 + |
|
1133 + | #[test]
|
1134 + | #[ignore = "httparse fails on invalid uri character"]
|
1135 + | // relies on /ሴ canonicalized as /%E1%88%B4 when it should be /%25%E1%25%88%25%B4
|
1136 + | fn test_get_vanilla_utf8_query() {
|
1137 + | run_test_suite_v4("get-vanilla-utf8-query");
|
1138 + | }
|
1139 + |
|
1140 + | #[test]
|
1141 + | fn test_get_vanilla_with_session_token() {
|
1142 + | run_test_suite_v4("get-vanilla-with-session-token");
|
1143 + | }
|
1144 + |
|
1145 + | #[test]
|
1146 + | fn test_post_header_key_case() {
|
1147 + | run_test_suite_v4("post-header-key-case");
|
1148 + | }
|
1149 + |
|
1150 + | #[test]
|
1151 + | fn test_post_header_key_sort() {
|
1152 + | run_test_suite_v4("post-header-key-sort");
|
1153 + | }
|
1154 + |
|
1155 + | #[test]
|
1156 + | fn test_post_header_value_case() {
|
1157 + | run_test_suite_v4("post-header-value-case");
|
1158 + | }
|
1159 + |
|
1160 + | #[test]
|
1161 + | fn test_post_sts_header_after() {
|
1162 + | run_test_suite_v4("post-sts-header-after");
|
1163 + | }
|
1164 + |
|
1165 + | #[test]
|
1166 + | fn test_post_sts_header_before() {
|
1167 + | run_test_suite_v4("post-sts-header-before");
|
1168 + | }
|
1169 + |
|
1170 + | #[test]
|
1171 + | fn test_post_vanilla() {
|
1172 + | run_test_suite_v4("post-vanilla");
|
1173 + | }
|
1174 + |
|
1175 + | #[test]
|
1176 + | fn test_post_vanilla_empty_query_value() {
|
1177 + | run_test_suite_v4("post-vanilla-empty-query-value");
|
1178 + | }
|
1179 + |
|
1180 + | #[test]
|
1181 + | fn test_post_vanilla_query() {
|
1182 + | run_test_suite_v4("post-vanilla-query");
|
1183 + | }
|
1184 + |
|
1185 + | #[test]
|
1186 + | fn test_post_x_www_form_urlencoded() {
|
1187 + | run_test_suite_v4("post-x-www-form-urlencoded");
|
1188 + | }
|
1189 + |
|
1190 + | #[test]
|
1191 + | fn test_post_x_www_form_urlencoded_parameters() {
|
1192 + | run_test_suite_v4("post-x-www-form-urlencoded-parameters");
|
1193 + | }
|
1194 + | }
|
1023 1195 | }
|
1024 1196 | diff --git a/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/src/http_request/test.rs b/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/src/http_request/test.rs
|
1025 1197 | index be6c496..86eec20 100644
|
1026 - | -- a/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/src/http_request/test.rs
|
1198 + | ++ b/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/src/http_request/test.rs
|
1027 1199 | @@ -1,242 +1,453 @@
|
1028 1200 | /*
|
1029 1201 | * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
1030 1202 | * SPDX-License-Identifier: Apache-2.0
|
1031 1203 | */
|
1032 1204 |
|
1033 1205 | //! Functions shared between the tests of several modules.
|
1034 1206 |
|
1035 - | use crate::http_request::{SignableBody, SignableRequest};
|
1207 + | use crate::http_request::canonical_request::{CanonicalRequest, StringToSign};
|
1208 + | use crate::http_request::{
|
1209 + | PayloadChecksumKind, SessionTokenMode, SignableBody, SignableRequest, SignatureLocation,
|
1210 + | SigningSettings,
|
1211 + | };
|
1212 + | use aws_credential_types::Credentials;
|
1213 + | use aws_smithy_runtime_api::client::identity::Identity;
|
1036 1214 | use http0::{Method, Uri};
|
1215 + | use std::borrow::Cow;
|
1037 1216 | use std::error::Error as StdError;
|
1217 + | use std::time::{Duration, SystemTime};
|
1218 + | use time::format_description::well_known::Rfc3339;
|
1219 + | use time::OffsetDateTime;
|
1220 + |
|
1221 + | /// Common test suite collection
|
1222 + | #[derive(Debug, Clone, Copy, Eq, PartialEq)]
|
1223 + | enum Collection {
|
1224 + | V4,
|
1225 + | V4A,
|
1226 + | }
|
1038 1227 |
|
1039 - | pub(crate) mod v4 {
|
1040 - | use super::*;
|
1228 + | /// A test from the common CRT test suite
|
1229 + | #[derive(Debug, Clone)]
|
1230 + | pub(crate) struct SigningSuiteTest {
|
1231 + | test_name: &'static str,
|
1232 + | collection: Collection,
|
1233 + | }
|
1041 1234 |
|
1042 - | fn path(name: &str, ext: &str) -> String {
|
1043 - | format!("aws-sig-v4-test-suite/{}/{}.{}", name, name, ext)
|
1235 + | impl SigningSuiteTest {
|
1236 + | /// Create a new test from the V4 test suite
|
1237 + | pub(crate) fn v4(test_name: &'static str) -> Self {
|
1238 + | Self {
|
1239 + | test_name,
|
1240 + | collection: Collection::V4,
|
1241 + | }
|
1044 1242 | }
|
1045 1243 |
|
1046 - | pub(crate) fn test_canonical_request(name: &str) -> String {
|
1047 - | // Tests fail if there's a trailing newline in the file, and pre-commit requires trailing newlines
|
1048 - | read(&path(name, "creq")).trim().to_string()
|
1244 + | /// Create a new test from the V4a test suite
|
1245 + | pub(crate) fn v4a(test_name: &'static str) -> Self {
|
1246 + | Self {
|
1247 + | test_name,
|
1248 + | collection: Collection::V4A,
|
1249 + | }
|
1049 1250 | }
|
1050 1251 |
|
1051 - | pub(crate) fn test_sts(name: &str) -> String {
|
1052 - | read(&path(name, "sts"))
|
1252 + | /// Get the path to a file in this test suite directory
|
1253 + | fn path(&self, filename: &str) -> String {
|
1254 + | let dir = match self.collection {
|
1255 + | Collection::V4 => "v4",
|
1256 + | Collection::V4A => "v4a",
|
1257 + | };
|
1258 + | format!("aws-signing-test-suite/{dir}/{}/{filename}", self.test_name)
|
1053 1259 | }
|
1054 1260 |
|
1055 - | pub(crate) fn test_request(name: &str) -> TestRequest {
|
1056 - | test_parsed_request(name, "req")
|
1261 + | /// Get the HTTP request for the test
|
1262 + | pub(crate) fn request(&self) -> TestRequest {
|
1263 + | test_parsed_request(&self.path("request.txt"))
|
1057 1264 | }
|
1058 1265 |
|
1059 - | pub(crate) fn test_signed_request(name: &str) -> TestRequest {
|
1060 - | test_parsed_request(name, "sreq")
|
1266 + | /// Get the signed HTTP request for the test
|
1267 + | pub(crate) fn signed_request(&self, signature_location: SignatureLocation) -> TestRequest {
|
1268 + | match signature_location {
|
1269 + | SignatureLocation::QueryParams => {
|
1270 + | test_parsed_request(&self.path("query-signed-request.txt"))
|
1271 + | }
|
1272 + | SignatureLocation::Headers => {
|
1273 + | test_parsed_request(&self.path("header-signed-request.txt"))
|
1274 + | }
|
1275 + | }
|
1061 1276 | }
|
1062 1277 |
|
1063 - | pub(crate) fn test_signed_request_query_params(name: &str) -> TestRequest {
|
1064 - | test_parsed_request(name, "qpsreq")
|
1278 + | /// Get the canonical request for the test
|
1279 + | pub(crate) fn canonical_request(&self, signature_location: SignatureLocation) -> String {
|
1280 + | match signature_location {
|
1281 + | SignatureLocation::QueryParams => read(&self.path("query-canonical-request.txt")),
|
1282 + | SignatureLocation::Headers => read(&self.path("header-canonical-request.txt")),
|
1283 + | }
|
1065 1284 | }
|
1066 1285 |
|
1067 - | fn test_parsed_request(name: &str, ext: &str) -> TestRequest {
|
1068 - | let path = path(name, ext);
|
1069 - | match parse_request(read(&path).as_bytes()) {
|
1070 - | Ok(parsed) => parsed,
|
1071 - | Err(err) => panic!("Failed to parse {}: {}", path, err),
|
1286 + | /// Get the string to sign for the test
|
1287 + | pub(crate) fn string_to_sign(&self, signature_location: SignatureLocation) -> String {
|
1288 + | match signature_location {
|
1289 + | SignatureLocation::QueryParams => read(&self.path("query-string-to-sign.txt")),
|
1290 + | SignatureLocation::Headers => read(&self.path("header-string-to-sign.txt")),
|
1072 1291 | }
|
1073 1292 | }
|
1074 1293 |
|
1075 - | #[test]
|
1076 - | fn test_parse() {
|
1077 - | test_request("post-header-key-case");
|
1294 + | /// Get the signature for the test
|
1295 + | pub(crate) fn signature(&self, signature_location: SignatureLocation) -> String {
|
1296 + | match signature_location {
|
1297 + | SignatureLocation::QueryParams => read(&self.path("query-signature.txt")),
|
1298 + | SignatureLocation::Headers => read(&self.path("header-signature.txt")),
|
1299 + | }
|
1078 1300 | }
|
1079 1301 |
|
1080 - | #[test]
|
1081 - | fn test_read_query_params() {
|
1082 - | test_request("get-vanilla-query-order-key-case");
|
1302 + | /// Get the test context for the test
|
1303 + | pub(crate) fn context(&self) -> TestContext {
|
1304 + | let context = read(&self.path("context.json"));
|
1305 + | let tc_builder: TestContextBuilder = serde_json::from_str(&context).unwrap();
|
1306 + | tc_builder.build()
|
1083 1307 | }
|
1084 1308 | }
|
1085 1309 |
|
1086 - | #[cfg(feature = "sigv4a")]
|
1087 - | pub(crate) mod v4a {
|
1088 - | use super::*;
|
1089 - | use crate::http_request::{
|
1090 - | PayloadChecksumKind, SessionTokenMode, SignatureLocation, SigningSettings,
|
1091 - | };
|
1092 - | use aws_credential_types::Credentials;
|
1093 - | use aws_smithy_runtime_api::client::identity::Identity;
|
1094 - | use serde_derive::Deserialize;
|
1095 - | use std::time::{Duration, SystemTime};
|
1096 - | use time::format_description::well_known::Rfc3339;
|
1097 - | use time::OffsetDateTime;
|
1098 - |
|
1099 - | fn path(test_name: &str, definition_name: &str) -> String {
|
1100 - | format!("aws-sig-v4a-test-suite/{test_name}/{definition_name}.txt")
|
1310 + | fn test_parsed_request(path: &str) -> TestRequest {
|
1311 + | match parse_request(read(path).as_bytes()) {
|
1312 + | Ok(parsed) => parsed,
|
1313 + | Err(err) => panic!("Failed to parse {}: {}", path, err),
|
1101 1314 | }
|
1315 + | }
|
1102 1316 |
|
1103 - | pub(crate) fn test_request(name: &str) -> TestRequest {
|
1104 - | test_parsed_request(&path(name, "request"))
|
1105 - | }
|
1317 + | fn new_v4_signing_params_from_context(
|
1318 + | test_context: &'_ TestContext,
|
1319 + | signature_location: SignatureLocation,
|
1320 + | ) -> crate::http_request::SigningParams<'_> {
|
1321 + | let mut params = crate::sign::v4::SigningParams::from(test_context);
|
1322 + | params.settings.signature_location = signature_location;
|
1323 + | params.into()
|
1324 + | }
|
1106 1325 |
|
1107 - | pub(crate) fn test_canonical_request(
|
1108 - | name: &str,
|
1109 - | signature_location: SignatureLocation,
|
1110 - | ) -> String {
|
1111 - | match signature_location {
|
1112 - | SignatureLocation::QueryParams => read(&path(name, "query-canonical-request")),
|
1113 - | SignatureLocation::Headers => read(&path(name, "header-canonical-request")),
|
1326 + | /// Run the given test from the v4 suite for both header and query
|
1327 + | /// signature locations
|
1328 + | pub(crate) fn run_test_suite_v4(test_name: &'static str) {
|
1329 + | run_v4_test(test_name, SignatureLocation::Headers);
|
1330 + | run_v4_test(test_name, SignatureLocation::QueryParams);
|
1331 + | }
|
1332 + |
|
1333 + | fn assert_uri_eq(expected: &Uri, actual: &Uri) {
|
1334 + | assert_eq!(expected.scheme(), actual.scheme());
|
1335 + | assert_eq!(expected.authority(), actual.authority());
|
1336 + | assert_eq!(expected.path(), actual.path());
|
1337 + |
|
1338 + | // query params may be out of order
|
1339 + | let mut expected_params: Vec<(Cow<'_, str>, Cow<'_, str>)> =
|
1340 + | form_urlencoded::parse(expected.query().unwrap_or_default().as_bytes()).collect();
|
1341 + | expected_params.sort();
|
1342 + |
|
1343 + | let mut actual_params: Vec<(Cow<'_, str>, Cow<'_, str>)> =
|
1344 + | form_urlencoded::parse(actual.query().unwrap_or_default().as_bytes()).collect();
|
1345 + | actual_params.sort();
|
1346 + |
|
1347 + | assert_eq!(expected_params, actual_params);
|
1348 + | }
|
1349 + |
|
1350 + | fn assert_requests_eq(expected: TestRequest, actual: http0::Request<&str>) {
|
1351 + | let expected = expected.as_http_request();
|
1352 + | let actual = actual;
|
1353 + | assert_eq!(expected.method(), actual.method());
|
1354 + | assert_eq!(
|
1355 + | expected.headers().len(),
|
1356 + | actual.headers().len(),
|
1357 + | "extra or missing headers"
|
1358 + | );
|
1359 + | assert_eq!(expected.headers(), actual.headers(), "headers mismatch");
|
1360 + | assert_uri_eq(expected.uri(), actual.uri());
|
1361 + | assert_eq!(*expected.body(), *actual.body(), "body mismatch");
|
1362 + | }
|
1363 + |
|
1364 + | /// Run the given test from the v4 suite for the given signature location
|
1365 + | pub(crate) fn run_v4_test(test_name: &'static str, signature_location: SignatureLocation) {
|
1366 + | let test = SigningSuiteTest::v4(test_name);
|
1367 + | let tc = test.context();
|
1368 + | let params = new_v4_signing_params_from_context(&tc, signature_location);
|
1369 + |
|
1370 + | let req = test.request();
|
1371 + | let expected_creq = test.canonical_request(signature_location);
|
1372 + | let signable_req = SignableRequest::from(&req);
|
1373 + | let actual_creq = CanonicalRequest::from(&signable_req, ¶ms).unwrap();
|
1374 + |
|
1375 + | // check canonical request
|
1376 + | assert_eq!(
|
1377 + | expected_creq,
|
1378 + | actual_creq.to_string(),
|
1379 + | "canonical request didn't match (signature location: {signature_location:?})"
|
1380 + | );
|
1381 + |
|
1382 + | let expected_string_to_sign = test.string_to_sign(signature_location);
|
1383 + | let hashed_creq = &crate::sign::v4::sha256_hex_string(actual_creq.to_string().as_bytes());
|
1384 + | let actual_string_to_sign = StringToSign::new_v4(
|
1385 + | *params.time(),
|
1386 + | params.region().unwrap(),
|
1387 + | params.name(),
|
1388 + | hashed_creq,
|
1389 + | )
|
1390 + | .to_string();
|
1391 + |
|
1392 + | // check string to sign
|
1393 + | assert_eq!(
|
1394 + | expected_string_to_sign, actual_string_to_sign,
|
1395 + | "'string to sign' didn't match (signature location: {signature_location:?})"
|
1396 + | );
|
1397 + |
|
1398 + | let out = crate::http_request::sign(signable_req, ¶ms).unwrap();
|
1399 + | let mut signed = req.as_http_request();
|
1400 + | out.output.apply_to_request_http0x(&mut signed);
|
1401 + |
|
1402 + | // check signature
|
1403 + | assert_eq!(
|
1404 + | test.signature(signature_location),
|
1405 + | out.signature,
|
1406 + | "signature didn't match (signature location: {signature_location:?})"
|
1407 + | );
|
1408 + |
|
1409 + | let expected = test.signed_request(signature_location);
|
1410 + | assert_requests_eq(expected, signed);
|
1411 + | }
|
1412 + |
|
1413 + | /// Test suite context.json
|
1414 + | pub(crate) struct TestContext {
|
1415 + | pub(crate) identity: Identity,
|
1416 + | pub(crate) expiration_in_seconds: u64,
|
1417 + | pub(crate) normalize: bool,
|
1418 + | pub(crate) region: String,
|
1419 + | pub(crate) service: String,
|
1420 + | pub(crate) timestamp: String,
|
1421 + | pub(crate) omit_session_token: bool,
|
1422 + | pub(crate) sign_body: bool,
|
1423 + | }
|
1424 + |
|
1425 + | // Serde has limitations requiring this odd workaround.
|
1426 + | // See https://github.com/serde-rs/serde/issues/368 for more info.
|
1427 + | fn return_true() -> bool {
|
1428 + | true
|
1429 + | }
|
1430 + |
|
1431 + | #[derive(serde_derive::Deserialize)]
|
1432 + | pub(crate) struct TestContextBuilder {
|
1433 + | credentials: TestContextCreds,
|
1434 + | expiration_in_seconds: u64,
|
1435 + | normalize: bool,
|
1436 + | region: String,
|
1437 + | service: String,
|
1438 + | timestamp: String,
|
1439 + | #[serde(default)]
|
1440 + | omit_session_token: bool,
|
1441 + | #[serde(default = "return_true")]
|
1442 + | sign_body: bool,
|
1443 + | }
|
1444 + |
|
1445 + | impl TestContextBuilder {
|
1446 + | pub(crate) fn build(self) -> TestContext {
|
1447 + | let identity = Identity::new(
|
1448 + | Credentials::from_keys(
|
1449 + | &self.credentials.access_key_id,
|
1450 + | &self.credentials.secret_access_key,
|
1451 + | self.credentials.token.clone(),
|
1452 + | ),
|
1453 + | Some(SystemTime::UNIX_EPOCH + Duration::from_secs(self.expiration_in_seconds)),
|
1454 + | );
|
1455 + |
|
1456 + | TestContext {
|
1457 + | identity,
|
1458 + | expiration_in_seconds: self.expiration_in_seconds,
|
1459 + | normalize: self.normalize,
|
1460 + | region: self.region,
|
1461 + | service: self.service,
|
1462 + | timestamp: self.timestamp,
|
1463 + | omit_session_token: self.omit_session_token,
|
1464 + | sign_body: self.sign_body,
|
1114 1465 | }
|
1115 1466 | }
|
1467 + | }
|
1116 1468 |
|
1117 - | pub(crate) fn test_string_to_sign(name: &str, signature_location: SignatureLocation) -> String {
|
1118 - | match signature_location {
|
1119 - | SignatureLocation::QueryParams => read(&path(name, "query-string-to-sign")),
|
1120 - | SignatureLocation::Headers => read(&path(name, "header-string-to-sign")),
|
1469 + | #[derive(serde_derive::Deserialize)]
|
1470 + | pub(crate) struct TestContextCreds {
|
1471 + | access_key_id: String,
|
1472 + | secret_access_key: String,
|
1473 + | token: Option<String>,
|
1474 + | }
|
1475 + |
|
1476 + | impl<'a> From<&'a TestContext> for crate::sign::v4::SigningParams<'a, SigningSettings> {
|
1477 + | fn from(tc: &'a TestContext) -> Self {
|
1478 + | crate::sign::v4::SigningParams {
|
1479 + | identity: &tc.identity,
|
1480 + | region: &tc.region,
|
1481 + | name: &tc.service,
|
1482 + | time: OffsetDateTime::parse(&tc.timestamp, &Rfc3339)
|
1483 + | .unwrap()
|
1484 + | .into(),
|
1485 + | settings: SigningSettings {
|
1486 + | // payload_checksum_kind: PayloadChecksumKind::XAmzSha256,
|
1487 + | expires_in: Some(Duration::from_secs(tc.expiration_in_seconds)),
|
1488 + | uri_path_normalization_mode: tc.normalize.into(),
|
1489 + | session_token_mode: if tc.omit_session_token {
|
1490 + | SessionTokenMode::Exclude
|
1491 + | } else {
|
1492 + | SessionTokenMode::Include
|
1493 + | },
|
1494 + | payload_checksum_kind: if tc.sign_body {
|
1495 + | PayloadChecksumKind::XAmzSha256
|
1496 + | } else {
|
1497 + | PayloadChecksumKind::NoHeader
|
1498 + | },
|
1499 + | ..Default::default()
|
1500 + | },
|
1121 1501 | }
|
1122 1502 | }
|
1503 + | }
|
1123 1504 |
|
1124 - | fn test_parsed_request(path: &str) -> TestRequest {
|
1125 - | match parse_request(read(path).as_bytes()) {
|
1126 - | Ok(parsed) => parsed,
|
1127 - | Err(err) => panic!("Failed to parse {}: {}", path, err),
|
1128 - | }
|
1505 + | #[cfg(feature = "sigv4a")]
|
1506 + | pub(crate) mod v4a {
|
1507 + | use super::*;
|
1508 + | use crate::http_request::{
|
1509 + | sign, PayloadChecksumKind, SessionTokenMode, SignatureLocation, SigningSettings,
|
1510 + | };
|
1511 + | use crate::sign::v4a;
|
1512 + | use p256::ecdsa::signature::{Signature, Verifier};
|
1513 + | use p256::ecdsa::{DerSignature, SigningKey};
|
1514 + | use std::time::Duration;
|
1515 + | use time::format_description::well_known::Rfc3339;
|
1516 + | use time::OffsetDateTime;
|
1517 + |
|
1518 + | fn new_v4a_signing_params_from_context(
|
1519 + | test_context: &'_ TestContext,
|
1520 + | signature_location: SignatureLocation,
|
1521 + | ) -> crate::http_request::SigningParams<'_> {
|
1522 + | let mut params = crate::sign::v4a::SigningParams::from(test_context);
|
1523 + | params.settings.signature_location = signature_location;
|
1524 + | params.into()
|
1129 1525 | }
|
1130 1526 |
|
1131 - | pub(crate) fn test_context(test_name: &str) -> TestContext {
|
1132 - | let path = format!("aws-sig-v4a-test-suite/{test_name}/context.json");
|
1133 - | let context = read(&path);
|
1134 - | let tc_builder: TestContextBuilder = serde_json::from_str(&context).unwrap();
|
1135 - | tc_builder.build()
|
1527 + | pub(crate) fn run_test_suite_v4a(test_name: &'static str) {
|
1528 + | run_v4a_test(test_name, SignatureLocation::Headers);
|
1529 + | run_v4a_test(test_name, SignatureLocation::QueryParams);
|
1136 1530 | }
|
1137 1531 |
|
1138 - | pub(crate) struct TestContext {
|
1139 - | pub(crate) identity: Identity,
|
1140 - | pub(crate) expiration_in_seconds: u64,
|
1141 - | pub(crate) normalize: bool,
|
1142 - | pub(crate) region: String,
|
1143 - | pub(crate) service: String,
|
1144 - | pub(crate) timestamp: String,
|
1145 - | pub(crate) omit_session_token: bool,
|
1146 - | pub(crate) sign_body: bool,
|
1532 + | pub(crate) fn run_v4a_test(test_name: &'static str, signature_location: SignatureLocation) {
|
1533 + | let test = SigningSuiteTest::v4a(test_name);
|
1534 + | let tc = test.context();
|
1535 + | let params = new_v4a_signing_params_from_context(&tc, signature_location);
|
1536 + |
|
1537 + | let req = test.request();
|
1538 + | let expected_creq = test.canonical_request(signature_location);
|
1539 + | let signable_req = SignableRequest::from(&req);
|
1540 + | let actual_creq = CanonicalRequest::from(&signable_req, ¶ms).unwrap();
|
1541 + |
|
1542 + | assert_eq!(
|
1543 + | expected_creq,
|
1544 + | actual_creq.to_string(),
|
1545 + | "canonical request didn't match (signature location: {signature_location:?})"
|
1546 + | );
|
1547 + |
|
1548 + | let expected_string_to_sign = test.string_to_sign(signature_location);
|
1549 + | let hashed_creq = &crate::sign::v4::sha256_hex_string(actual_creq.to_string().as_bytes());
|
1550 + | let actual_string_to_sign = StringToSign::new_v4a(
|
1551 + | *params.time(),
|
1552 + | params.region_set().unwrap(),
|
1553 + | params.name(),
|
1554 + | hashed_creq,
|
1555 + | )
|
1556 + | .to_string();
|
1557 + |
|
1558 + | assert_eq!(
|
1559 + | expected_string_to_sign, actual_string_to_sign,
|
1560 + | "'string to sign' didn't match (signature location: {signature_location:?})"
|
1561 + | );
|
1562 + |
|
1563 + | let out = sign(signable_req, ¶ms).unwrap();
|
1564 + | // Sigv4a signatures are non-deterministic, so we can't compare the signature directly.
|
1565 + | out.output
|
1566 + | .apply_to_request_http0x(&mut req.as_http_request());
|
1567 + |
|
1568 + | let creds = params.credentials().unwrap();
|
1569 + | let signing_key =
|
1570 + | v4a::generate_signing_key(creds.access_key_id(), creds.secret_access_key());
|
1571 + | let sig = DerSignature::from_bytes(&hex::decode(out.signature).unwrap()).unwrap();
|
1572 + | let sig = sig
|
1573 + | .try_into()
|
1574 + | .expect("DER-style signatures are always convertible into fixed-size signatures");
|
1575 + |
|
1576 + | let signing_key = SigningKey::from_bytes(signing_key.as_ref()).unwrap();
|
1577 + | let peer_public_key = signing_key.verifying_key();
|
1578 + | let sts = actual_string_to_sign.as_bytes();
|
1579 + | peer_public_key.verify(sts, &sig).unwrap();
|
1580 + | // TODO(sigv4a) - use public.key.json as verifying key?
|
1147 1581 | }
|
1148 1582 |
|
1149 1583 | impl<'a> From<&'a TestContext> for crate::sign::v4a::SigningParams<'a, SigningSettings> {
|
1150 1584 | fn from(tc: &'a TestContext) -> Self {
|
1151 1585 | crate::sign::v4a::SigningParams {
|
1152 1586 | identity: &tc.identity,
|
1153 1587 | region_set: &tc.region,
|
1154 1588 | name: &tc.service,
|
1155 1589 | time: OffsetDateTime::parse(&tc.timestamp, &Rfc3339)
|
1156 1590 | .unwrap()
|
1157 1591 | .into(),
|
1158 1592 | settings: SigningSettings {
|
1159 1593 | // payload_checksum_kind: PayloadChecksumKind::XAmzSha256,
|
1160 1594 | expires_in: Some(Duration::from_secs(tc.expiration_in_seconds)),
|
1161 1595 | uri_path_normalization_mode: tc.normalize.into(),
|
1162 1596 | session_token_mode: if tc.omit_session_token {
|
1163 1597 | SessionTokenMode::Exclude
|
1164 1598 | } else {
|
1165 1599 | SessionTokenMode::Include
|
1166 1600 | },
|
1167 1601 | payload_checksum_kind: if tc.sign_body {
|
1168 1602 | PayloadChecksumKind::XAmzSha256
|
1169 1603 | } else {
|
1170 1604 | PayloadChecksumKind::NoHeader
|
1171 1605 | },
|
1172 1606 | ..Default::default()
|
1173 1607 | },
|
1174 1608 | }
|
1175 1609 | }
|
1176 1610 | }
|
1177 1611 |
|
1178 - | // Serde has limitations requiring this odd workaround.
|
1179 - | // See https://github.com/serde-rs/serde/issues/368 for more info.
|
1180 - | fn return_true() -> bool {
|
1181 - | true
|
1182 - | }
|
1183 - |
|
1184 - | #[derive(Deserialize)]
|
1185 - | pub(crate) struct TestContextBuilder {
|
1186 - | credentials: TestContextCreds,
|
1187 - | expiration_in_seconds: u64,
|
1188 - | normalize: bool,
|
1189 - | region: String,
|
1190 - | service: String,
|
1191 - | timestamp: String,
|
1192 - | #[serde(default)]
|
1193 - | omit_session_token: bool,
|
1194 - | #[serde(default = "return_true")]
|
1195 - | sign_body: bool,
|
1196 - | }
|
1197 - |
|
1198 - | impl TestContextBuilder {
|
1199 - | pub(crate) fn build(self) -> TestContext {
|
1200 - | let identity = Identity::new(
|
1201 - | Credentials::from_keys(
|
1202 - | &self.credentials.access_key_id,
|
1203 - | &self.credentials.secret_access_key,
|
1204 - | self.credentials.token.clone(),
|
1205 - | ),
|
1206 - | Some(SystemTime::UNIX_EPOCH + Duration::from_secs(self.expiration_in_seconds)),
|
1207 - | );
|
1208 - |
|
1209 - | TestContext {
|
1210 - | identity,
|
1211 - | expiration_in_seconds: self.expiration_in_seconds,
|
1212 - | normalize: self.normalize,
|
1213 - | region: self.region,
|
1214 - | service: self.service,
|
1215 - | timestamp: self.timestamp,
|
1216 - | omit_session_token: self.omit_session_token,
|
1217 - | sign_body: self.sign_body,
|
1218 - | }
|
1219 - | }
|
1220 - | }
|
1221 - |
|
1222 - | #[derive(Deserialize)]
|
1223 - | pub(crate) struct TestContextCreds {
|
1224 - | access_key_id: String,
|
1225 - | secret_access_key: String,
|
1226 - | token: Option<String>,
|
1227 - | }
|
1228 - |
|
1229 1612 | #[test]
|
1230 1613 | fn test_parse() {
|
1231 - | let req = test_request("post-header-key-case");
|
1614 + | let req = SigningSuiteTest::v4a("post-header-key-case").request();
|
1232 1615 | assert_eq!(req.method, "POST");
|
1233 1616 | assert_eq!(req.uri, "https://example.amazonaws.com/");
|
1234 1617 | assert!(req.headers.is_empty());
|
1235 1618 | }
|
1236 1619 |
|
1237 1620 | #[test]
|
1238 1621 | fn test_read_query_params() {
|
1239 - | let req = test_request("get-header-value-trim");
|
1622 + | let req = SigningSuiteTest::v4a("get-header-value-trim").request();
|
1240 1623 | assert_eq!(req.method, "GET");
|
1241 1624 | assert_eq!(req.uri, "https://example.amazonaws.com/");
|
1242 1625 | assert!(!req.headers.is_empty());
|
1243 1626 | }
|
1244 1627 | }
|
1245 1628 |
|
1246 1629 | fn read(path: &str) -> String {
|
1247 1630 | println!("Loading `{}` for test case...", path);
|
1248 1631 | let v = {
|
1249 1632 | match std::fs::read_to_string(path) {
|
1250 1633 | // This replacement is necessary for tests to pass on Windows, as reading the
|
1251 1634 | // test snapshots from the file system results in CRLF line endings being inserted.
|
1252 1635 | Ok(value) => value.replace("\r\n", "\n"),
|
1253 1636 | Err(err) => {
|
1254 1637 | panic!("failed to load test case `{}`: {}", path, err);
|
1255 1638 | }
|
1256 1639 | }
|
1257 1640 | };
|
1258 1641 |
|
1259 1642 | v.trim().to_string()
|
1260 1643 | }
|
1261 1644 |
|
1262 1645 | pub(crate) struct TestRequest {
|
1263 1646 | pub(crate) uri: String,
|
1264 1647 | pub(crate) method: String,
|
1265 1648 | pub(crate) headers: Vec<(String, String)>,
|
1266 1649 | pub(crate) body: TestSignedBody,
|
1267 1650 | }
|
1268 1651 |
|
1269 1652 | pub(crate) enum TestSignedBody {
|
1270 1653 | @@ -290,79 +501,87 @@ impl<B: AsRef<[u8]>> From<http0::Request<B>> for TestRequest {
|
1271 1654 | String::from_utf8(v.as_bytes().to_vec()).unwrap(),
|
1272 1655 | )
|
1273 1656 | })
|
1274 1657 | .collect::<Vec<_>>(),
|
1275 1658 | body: TestSignedBody::Bytes(value.body().as_ref().to_vec()),
|
1276 1659 | }
|
1277 1660 | }
|
1278 1661 | }
|
1279 1662 |
|
1280 1663 | impl<'a> From<&'a TestRequest> for SignableRequest<'a> {
|
1281 1664 | fn from(request: &'a TestRequest) -> SignableRequest<'a> {
|
1282 1665 | SignableRequest::new(
|
1283 1666 | &request.method,
|
1284 1667 | &request.uri,
|
1285 1668 | request
|
1286 1669 | .headers
|
1287 1670 | .iter()
|
1288 1671 | .map(|(k, v)| (k.as_str(), v.as_str())),
|
1289 1672 | request.body.as_signable_body(),
|
1290 1673 | )
|
1291 1674 | .expect("URI MUST be valid")
|
1292 1675 | }
|
1293 1676 | }
|
1294 1677 |
|
1295 1678 | fn parse_request(s: &[u8]) -> Result<TestRequest, Box<dyn StdError + Send + Sync + 'static>> {
|
1296 1679 | let mut headers = [httparse::EMPTY_HEADER; 64];
|
1297 1680 | // httparse 1.5 requires two trailing newlines to head the header section.
|
1298 1681 | let mut with_newline = Vec::from(s);
|
1299 1682 | with_newline.push(b'\n');
|
1300 1683 | let mut req = httparse::Request::new(&mut headers);
|
1301 - | let _ = req.parse(&with_newline).unwrap();
|
1684 + | let status = req.parse(&with_newline).unwrap();
|
1685 + |
|
1686 + | let body = if status.is_complete() {
|
1687 + | let body_offset = status.unwrap();
|
1688 + | // ignore the newline we added, take from original
|
1689 + | &s[body_offset..]
|
1690 + | } else {
|
1691 + | &[]
|
1692 + | };
|
1302 1693 |
|
1303 1694 | let mut uri_builder = Uri::builder().scheme("https");
|
1304 1695 | if let Some(path) = req.path {
|
1305 1696 | uri_builder = uri_builder.path_and_query(path);
|
1306 1697 | }
|
1307 1698 |
|
1308 1699 | let mut headers = vec![];
|
1309 1700 | for header in req.headers {
|
1310 1701 | let name = header.name.to_lowercase();
|
1311 1702 | if name == "host" {
|
1312 1703 | uri_builder = uri_builder.authority(header.value);
|
1313 1704 | } else if !name.is_empty() {
|
1314 1705 | headers.push((
|
1315 1706 | header.name.to_string(),
|
1316 1707 | std::str::from_utf8(header.value)?.to_string(),
|
1317 1708 | ));
|
1318 1709 | }
|
1319 1710 | }
|
1320 1711 |
|
1321 1712 | Ok(TestRequest {
|
1322 1713 | uri: uri_builder.build()?.to_string(),
|
1323 1714 | method: req.method.unwrap().to_string(),
|
1324 1715 | headers,
|
1325 - | body: TestSignedBody::Bytes(vec![]),
|
1716 + | body: TestSignedBody::Bytes(Vec::from(body)),
|
1326 1717 | })
|
1327 1718 | }
|
1328 1719 |
|
1329 1720 | #[test]
|
1330 1721 | fn test_parse_headers() {
|
1331 1722 | let buf = b"Host:example.amazonaws.com\nX-Amz-Date:20150830T123600Z\n\nblah blah";
|
1332 1723 | let mut headers = [httparse::EMPTY_HEADER; 4];
|
1333 1724 | assert_eq!(
|
1334 1725 | httparse::parse_headers(buf, &mut headers),
|
1335 1726 | Ok(httparse::Status::Complete((
|
1336 1727 | 56,
|
1337 1728 | &[
|
1338 1729 | httparse::Header {
|
1339 1730 | name: "Host",
|
1340 1731 | value: b"example.amazonaws.com",
|
1341 1732 | },
|
1342 1733 | httparse::Header {
|
1343 1734 | name: "X-Amz-Date",
|
1344 1735 | value: b"20150830T123600Z",
|
1345 1736 | }
|
1346 1737 | ][..]
|
1347 1738 | )))
|
1348 1739 | );
|
1349 1740 | }
|
1350 1741 | diff --git a/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/src/sign/v4.rs b/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/src/sign/v4.rs
|
1351 1742 | index a208453..fc00249 100644
|
1352 - | -- a/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/src/sign/v4.rs
|
1743 + | ++ b/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/src/sign/v4.rs
|
1353 1744 | @@ -168,52 +168,54 @@ pub mod signing_params {
|
1354 1745 | );
|
1355 1746 |
|
1356 1747 | /// Builds an instance of [`SigningParams`]. Will yield a [`BuildError`] if
|
1357 1748 | /// a required argument was not given.
|
1358 1749 | pub fn build(self) -> Result<SigningParams<'a, S>, BuildError> {
|
1359 1750 | Ok(SigningParams {
|
1360 1751 | identity: self
|
1361 1752 | .identity
|
1362 1753 | .ok_or_else(|| BuildError::new("identity is required"))?,
|
1363 1754 | region: self
|
1364 1755 | .region
|
1365 1756 | .ok_or_else(|| BuildError::new("region is required"))?,
|
1366 1757 | name: self
|
1367 1758 | .name
|
1368 1759 | .ok_or_else(|| BuildError::new("name is required"))?,
|
1369 1760 | time: self
|
1370 1761 | .time
|
1371 1762 | .ok_or_else(|| BuildError::new("time is required"))?,
|
1372 1763 | settings: self
|
1373 1764 | .settings
|
1374 1765 | .ok_or_else(|| BuildError::new("settings are required"))?,
|
1375 1766 | })
|
1376 1767 | }
|
1377 1768 | }
|
1378 1769 | }
|
1379 1770 |
|
1380 1771 | #[cfg(test)]
|
1381 1772 | mod tests {
|
1382 1773 | use super::{calculate_signature, generate_signing_key, sha256_hex_string};
|
1383 1774 | use crate::date_time::test_parsers::parse_date_time;
|
1384 - | use crate::http_request::test;
|
1385 1775 |
|
1386 1776 | #[test]
|
1387 1777 | fn test_signature_calculation() {
|
1388 1778 | let secret = "wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY";
|
1389 - | let creq = test::v4::test_canonical_request("iam");
|
1779 + | let creq = r#"AWS4-HMAC-SHA256
|
1780 + | 20150830T123600Z
|
1781 + | 20150830/us-east-1/iam/aws4_request
|
1782 + | f536975d06c0309214f805bb90ccff089219ecd68b2577efef23edd43b7e1a59"#;
|
1390 1783 | let time = parse_date_time("20150830T123600Z").unwrap();
|
1391 1784 |
|
1392 1785 | let derived_key = generate_signing_key(secret, time, "us-east-1", "iam");
|
1393 1786 | let signature = calculate_signature(derived_key, creq.as_bytes());
|
1394 1787 |
|
1395 1788 | let expected = "5d672d79c15b13162d9279b0855cfba6789a8edb4c82c400e06b5924a6f2b5d7";
|
1396 1789 | assert_eq!(expected, &signature);
|
1397 1790 | }
|
1398 1791 |
|
1399 1792 | #[test]
|
1400 1793 | fn sign_payload_empty_string() {
|
1401 1794 | let expected = "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";
|
1402 1795 | let actual = sha256_hex_string([]);
|
1403 1796 | assert_eq!(expected, actual);
|
1404 1797 | }
|
1405 1798 | }
|
1406 1799 | diff --git a/tmp-codegen-diff/aws-sdk/sdk/aws-smithy-checksums/Cargo.toml b/tmp-codegen-diff/aws-sdk/sdk/aws-smithy-checksums/Cargo.toml
|
1407 1800 | index ce78c38..8c2f591 100644
|
1408 - | -- a/tmp-codegen-diff/aws-sdk/sdk/aws-smithy-checksums/Cargo.toml
|
1801 + | ++ b/tmp-codegen-diff/aws-sdk/sdk/aws-smithy-checksums/Cargo.toml
|
1409 1802 | @@ -1,43 +1,43 @@
|
1410 1803 | # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
1411 1804 | [package]
|
1412 1805 | name = "aws-smithy-checksums"
|
1413 1806 | version = "0.63.5"
|
1414 1807 | authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Zelda Hessler <zhessler@amazon.com>"]
|
1415 1808 | description = "Checksum calculation and verification callbacks"
|
1416 1809 | edition = "2021"
|
1417 1810 | license = "Apache-2.0"
|
1418 1811 | repository = "https://github.com/smithy-lang/smithy-rs"
|
1419 1812 | [package.metadata.docs.rs]
|
1420 1813 | all-features = true
|
1421 1814 | targets = ["x86_64-unknown-linux-gnu"]
|
1422 1815 | cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
|
1423 1816 | rustdoc-args = ["--cfg", "docsrs"]
|
1424 1817 |
|
1425 1818 | [dependencies]
|
1426 1819 | bytes = "1.10.0"
|
1427 1820 | crc-fast = "1.3.0"
|
1428 1821 | hex = "0.4.3"
|
1429 1822 | http = "0.2.9"
|
1430 1823 | http-body = "0.4.5"
|
1431 1824 | md-5 = "0.10"
|
1432 1825 | pin-project-lite = "0.2.14"
|
1433 1826 | sha1 = "0.10"
|
1434 1827 | sha2 = "0.10"
|
1435 1828 | tracing = "0.1.40"
|
1436 1829 |
|
1437 1830 | [dependencies.aws-smithy-http]
|
1438 1831 | path = "../aws-smithy-http"
|
1439 - | version = "0.62.2"
|
1832 + | version = "0.62.3"
|
1440 1833 |
|
1441 1834 | [dependencies.aws-smithy-types]
|
1442 1835 | path = "../aws-smithy-types"
|
1443 1836 | version = "1.3.2"
|
1444 1837 |
|
1445 1838 | [dev-dependencies]
|
1446 1839 | bytes-utils = "0.1.2"
|
1447 1840 | pretty_assertions = "1.3"
|
1448 1841 | tracing-test = "0.2.1"
|
1449 1842 |
|
1450 1843 | [dev-dependencies.tokio]
|
1451 1844 | version = "1.23.1"
|
1452 1845 | features = ["macros", "rt"]
|
1453 1846 | diff --git a/tmp-codegen-diff/aws-sdk/sdk/aws-smithy-http/Cargo.toml b/tmp-codegen-diff/aws-sdk/sdk/aws-smithy-http/Cargo.toml
|
1454 1847 | index 970c99e..d3c7a49 100644
|
1455 - | -- a/tmp-codegen-diff/aws-sdk/sdk/aws-smithy-http/Cargo.toml
|
1848 + | ++ b/tmp-codegen-diff/aws-sdk/sdk/aws-smithy-http/Cargo.toml
|
1456 1849 | @@ -1,34 +1,34 @@
|
1457 1850 | # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
1458 1851 | [package]
|
1459 1852 | name = "aws-smithy-http"
|
1460 - | version = "0.62.2"
|
1853 + | version = "0.62.3"
|
1461 1854 | authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"]
|
1462 1855 | description = "Smithy HTTP logic for smithy-rs."
|
1463 1856 | edition = "2021"
|
1464 1857 | license = "Apache-2.0"
|
1465 1858 | repository = "https://github.com/smithy-lang/smithy-rs"
|
1466 1859 | [package.metadata.docs.rs]
|
1467 1860 | all-features = true
|
1468 1861 | targets = ["x86_64-unknown-linux-gnu"]
|
1469 1862 | cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
|
1470 1863 | rustdoc-args = ["--cfg", "docsrs"]
|
1471 1864 |
|
1472 1865 | [features]
|
1473 1866 | event-stream = ["aws-smithy-eventstream"]
|
1474 1867 | rt-tokio = ["aws-smithy-types/rt-tokio"]
|
1475 1868 |
|
1476 1869 | [dependencies]
|
1477 1870 | bytes = "1.10.0"
|
1478 1871 | bytes-utils = "0.1"
|
1479 1872 | percent-encoding = "2.3.1"
|
1480 1873 | pin-project-lite = "0.2.14"
|
1481 1874 | pin-utils = "0.1.0"
|
1482 1875 | tracing = "0.1.40"
|
1483 1876 | futures-core = "0.3.31"
|
1484 1877 |
|
1485 1878 | [dependencies.aws-smithy-eventstream]
|
1486 1879 | path = "../aws-smithy-eventstream"
|
1487 1880 | optional = true
|
1488 1881 | version = "0.60.10"
|
1489 1882 |
|
1490 1883 | [dependencies.aws-smithy-runtime-api]
|
1491 1884 | diff --git a/tmp-codegen-diff/aws-sdk/sdk/aws-smithy-http/fuzz/Cargo.toml b/tmp-codegen-diff/aws-sdk/sdk/aws-smithy-http/fuzz/Cargo.toml
|
1492 1885 | index 508f7a2..361545e 100644
|
1493 - | -- a/tmp-codegen-diff/aws-sdk/sdk/aws-smithy-http/fuzz/Cargo.toml
|
1886 + | ++ b/tmp-codegen-diff/aws-sdk/sdk/aws-smithy-http/fuzz/Cargo.toml
|
1494 1887 | @@ -1,27 +1,27 @@
|
1495 1888 | # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
1496 1889 | [[bin]]
|
1497 1890 | name = "read_many_from_str"
|
1498 1891 | path = "fuzz_targets/read_many_from_str.rs"
|
1499 1892 | test = false
|
1500 1893 | doc = false
|
1501 1894 |
|
1502 1895 | [package]
|
1503 1896 | name = "aws-smithy-http-fuzz"
|
1504 1897 | version = "0.0.0"
|
1505 1898 | authors = ["Automatically generated"]
|
1506 1899 | publish = false
|
1507 1900 | edition = "2021"
|
1508 1901 |
|
1509 1902 | [package.metadata]
|
1510 1903 | cargo-fuzz = true
|
1511 1904 |
|
1512 1905 | [dependencies]
|
1513 1906 | libfuzzer-sys = "=0.4.7"
|
1514 1907 | http = "0.2.3"
|
1515 1908 |
|
1516 1909 | [dependencies.aws-smithy-http]
|
1517 1910 | path = ".."
|
1518 - | version = "0.62.2"
|
1911 + | version = "0.62.3"
|
1519 1912 |
|
1520 1913 | [workspace]
|
1521 1914 | members = ["."]
|
1522 1915 | diff --git a/tmp-codegen-diff/aws-sdk/sdk/aws-smithy-http/src/query_writer.rs b/tmp-codegen-diff/aws-sdk/sdk/aws-smithy-http/src/query_writer.rs
|
1523 1916 | index fef41d0..7694da6 100644
|
1524 - | -- a/tmp-codegen-diff/aws-sdk/sdk/aws-smithy-http/src/query_writer.rs
|
1917 + | ++ b/tmp-codegen-diff/aws-sdk/sdk/aws-smithy-http/src/query_writer.rs
|
1525 1918 | @@ -25,68 +25,73 @@ impl QueryWriter {
|
1526 1919 | pub fn new(uri: &Uri) -> Self {
|
1527 1920 | let new_path_and_query = uri
|
1528 1921 | .path_and_query()
|
1529 1922 | .map(|pq| pq.to_string())
|
1530 1923 | .unwrap_or_default();
|
1531 1924 | let prefix = if uri.query().is_none() {
|
1532 1925 | Some('?')
|
1533 1926 | } else if !uri.query().unwrap_or_default().is_empty() {
|
1534 1927 | Some('&')
|
1535 1928 | } else {
|
1536 1929 | None
|
1537 1930 | };
|
1538 1931 | QueryWriter {
|
1539 1932 | base_uri: uri.clone(),
|
1540 1933 | new_path_and_query,
|
1541 1934 | prefix,
|
1542 1935 | }
|
1543 1936 | }
|
1544 1937 |
|
1545 1938 | /// Clears all query parameters.
|
1546 1939 | pub fn clear_params(&mut self) {
|
1547 1940 | if let Some(index) = self.new_path_and_query.find('?') {
|
1548 1941 | self.new_path_and_query.truncate(index);
|
1549 1942 | self.prefix = Some('?');
|
1550 1943 | }
|
1551 1944 | }
|
1552 1945 |
|
1553 1946 | /// Inserts a new query parameter. The key and value are percent encoded
|
1554 1947 | /// by `QueryWriter`. Passing in percent encoded values will result in double encoding.
|
1555 1948 | pub fn insert(&mut self, k: &str, v: &str) {
|
1949 + | self.insert_encoded(&percent_encode_query(k), &percent_encode_query(v));
|
1950 + | }
|
1951 + |
|
1952 + | /// Inserts a new already encoded query parameter. The key and value will be inserted
|
1953 + | /// as is.
|
1954 + | pub fn insert_encoded(&mut self, encoded_k: &str, encoded_v: &str) {
|
1556 1955 | if let Some(prefix) = self.prefix {
|
1557 1956 | self.new_path_and_query.push(prefix);
|
1558 1957 | }
|
1559 1958 | self.prefix = Some('&');
|
1560 - | self.new_path_and_query.push_str(&percent_encode_query(k));
|
1959 + | self.new_path_and_query.push_str(encoded_k);
|
1561 1960 | self.new_path_and_query.push('=');
|
1562 - |
|
1563 - | self.new_path_and_query.push_str(&percent_encode_query(v));
|
1961 + | self.new_path_and_query.push_str(encoded_v)
|
1564 1962 | }
|
1565 1963 |
|
1566 1964 | /// Returns just the built query string.
|
1567 1965 | pub fn build_query(self) -> String {
|
1568 1966 | self.build_uri().query().unwrap_or_default().to_string()
|
1569 1967 | }
|
1570 1968 |
|
1571 1969 | /// Returns a full [`Uri`] with the query string updated.
|
1572 1970 | pub fn build_uri(self) -> Uri {
|
1573 1971 | let mut parts = self.base_uri.into_parts();
|
1574 1972 | parts.path_and_query = Some(
|
1575 1973 | self.new_path_and_query
|
1576 1974 | .parse()
|
1577 1975 | .expect("adding query should not invalidate URI"),
|
1578 1976 | );
|
1579 1977 | Uri::from_parts(parts).expect("a valid URL in should always produce a valid URL out")
|
1580 1978 | }
|
1581 1979 | }
|
1582 1980 |
|
1583 1981 | #[cfg(test)]
|
1584 1982 | mod test {
|
1585 1983 | use super::QueryWriter;
|
1586 1984 | use http_02x::Uri;
|
1587 1985 |
|
1588 1986 | #[test]
|
1589 1987 | fn empty_uri() {
|
1590 1988 | let uri = Uri::from_static("http://www.example.com");
|
1591 1989 | let mut query_writer = QueryWriter::new(&uri);
|
1592 1990 | query_writer.insert("key", "val%ue");
|
1593 1991 | query_writer.insert("another", "value");
|
1594 1992 | diff --git a/tmp-codegen-diff/aws-sdk/sdk/aws-smithy-runtime/Cargo.toml b/tmp-codegen-diff/aws-sdk/sdk/aws-smithy-runtime/Cargo.toml
|
1595 1993 | index f108978..df7a9fe 100644
|
1596 - | -- a/tmp-codegen-diff/aws-sdk/sdk/aws-smithy-runtime/Cargo.toml
|
1994 + | ++ b/tmp-codegen-diff/aws-sdk/sdk/aws-smithy-runtime/Cargo.toml
|
1597 1995 | @@ -15,61 +15,61 @@ rustdoc-args = ["--cfg", "docsrs"]
|
1598 1996 |
|
1599 1997 | [package.metadata.smithy-rs-release-tooling]
|
1600 1998 | stable = true
|
1601 1999 | [package.metadata.cargo-udeps.ignore]
|
1602 2000 | normal = ["aws-smithy-http"]
|
1603 2001 |
|
1604 2002 | [features]
|
1605 2003 | client = ["aws-smithy-runtime-api/client", "aws-smithy-types/http-body-1-x"]
|
1606 2004 | http-auth = ["aws-smithy-runtime-api/http-auth"]
|
1607 2005 | connector-hyper-0-14-x = ["dep:aws-smithy-http-client", "aws-smithy-http-client?/hyper-014"]
|
1608 2006 | tls-rustls = ["dep:aws-smithy-http-client", "aws-smithy-http-client?/legacy-rustls-ring", "connector-hyper-0-14-x"]
|
1609 2007 | default-https-client = ["dep:aws-smithy-http-client", "aws-smithy-http-client?/rustls-aws-lc"]
|
1610 2008 | rt-tokio = ["tokio/rt"]
|
1611 2009 | test-util = ["aws-smithy-runtime-api/test-util", "dep:tracing-subscriber", "aws-smithy-http-client/test-util", "legacy-test-util"]
|
1612 2010 | legacy-test-util = ["aws-smithy-runtime-api/test-util", "dep:tracing-subscriber", "aws-smithy-http-client/test-util", "connector-hyper-0-14-x", "aws-smithy-http-client/legacy-test-util"]
|
1613 2011 | wire-mock = ["legacy-test-util", "aws-smithy-http-client/wire-mock"]
|
1614 2012 |
|
1615 2013 | [dependencies]
|
1616 2014 | bytes = "1.10.0"
|
1617 2015 | fastrand = "2.3.0"
|
1618 2016 | pin-project-lite = "0.2.14"
|
1619 2017 | pin-utils = "0.1.0"
|
1620 2018 | tracing = "0.1.40"
|
1621 2019 |
|
1622 2020 | [dependencies.aws-smithy-async]
|
1623 2021 | path = "../aws-smithy-async"
|
1624 2022 | version = "1.2.5"
|
1625 2023 |
|
1626 2024 | [dependencies.aws-smithy-http]
|
1627 2025 | path = "../aws-smithy-http"
|
1628 - | version = "0.62.2"
|
2026 + | version = "0.62.3"
|
1629 2027 |
|
1630 2028 | [dependencies.aws-smithy-observability]
|
1631 2029 | path = "../aws-smithy-observability"
|
1632 2030 | version = "0.1.3"
|
1633 2031 |
|
1634 2032 | [dependencies.aws-smithy-runtime-api]
|
1635 2033 | path = "../aws-smithy-runtime-api"
|
1636 2034 | version = "1.8.5"
|
1637 2035 |
|
1638 2036 | [dependencies.aws-smithy-types]
|
1639 2037 | path = "../aws-smithy-types"
|
1640 2038 | features = ["http-body-0-4-x"]
|
1641 2039 | version = "1.3.2"
|
1642 2040 |
|
1643 2041 | [dependencies.aws-smithy-http-client]
|
1644 2042 | path = "../aws-smithy-http-client"
|
1645 2043 | optional = true
|
1646 2044 | version = "1.0.6"
|
1647 2045 |
|
1648 2046 | [dependencies.http-02x]
|
1649 2047 | package = "http"
|
1650 2048 | version = "0.2.9"
|
1651 2049 |
|
1652 2050 | [dependencies.http-1x]
|
1653 2051 | package = "http"
|
1654 2052 | version = "1"
|
1655 2053 |
|
1656 2054 | [dependencies.http-body-04x]
|
1657 2055 | package = "http-body"
|
1658 2056 | version = "0.4.5"
|
1659 2057 | diff --git a/tmp-codegen-diff/aws-sdk/sdk/aws-smithy-wasm/Cargo.toml b/tmp-codegen-diff/aws-sdk/sdk/aws-smithy-wasm/Cargo.toml
|
1660 2058 | index 4e050c6..f58eb1c 100644
|
1661 - | -- a/tmp-codegen-diff/aws-sdk/sdk/aws-smithy-wasm/Cargo.toml
|
2059 + | ++ b/tmp-codegen-diff/aws-sdk/sdk/aws-smithy-wasm/Cargo.toml
|
1662 2060 | @@ -1,33 +1,33 @@
|
1663 2061 | # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
1664 2062 | [package]
|
1665 2063 | name = "aws-smithy-wasm"
|
1666 2064 | version = "0.1.4"
|
1667 2065 | authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Eduardo Rodrigues <16357187+eduardomourar@users.noreply.github.com>"]
|
1668 2066 | description = "Smithy WebAssembly configuration for smithy-rs."
|
1669 2067 | edition = "2021"
|
1670 2068 | license = "Apache-2.0"
|
1671 2069 | repository = "https://github.com/awslabs/smithy-rs"
|
1672 2070 | [package.metadata.docs.rs]
|
1673 2071 | all-features = true
|
1674 2072 | targets = ["x86_64-unknown-linux-gnu"]
|
1675 2073 | cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
|
1676 2074 | rustdoc-args = ["--cfg", "docsrs"]
|
1677 2075 |
|
1678 2076 | [dependencies]
|
1679 2077 | bytes = "1.10.0"
|
1680 2078 | http = "1.0.0"
|
1681 2079 | tracing = "0.1.40"
|
1682 2080 | wasi = "0.12.1"
|
1683 2081 |
|
1684 2082 | [dependencies.aws-smithy-runtime-api]
|
1685 2083 | path = "../aws-smithy-runtime-api"
|
1686 2084 | features = ["http-1x"]
|
1687 2085 | version = "1.8.5"
|
1688 2086 |
|
1689 2087 | [dependencies.aws-smithy-http]
|
1690 2088 | path = "../aws-smithy-http"
|
1691 - | version = "0.62.2"
|
2089 + | version = "0.62.3"
|
1692 2090 |
|
1693 2091 | [dependencies.aws-smithy-types]
|
1694 2092 | path = "../aws-smithy-types"
|
1695 2093 | version = "1.3.2"
|
1696 2094 | diff --git a/tmp-codegen-diff/aws-sdk/sdk/bedrockruntime/Cargo.toml b/tmp-codegen-diff/aws-sdk/sdk/bedrockruntime/Cargo.toml
|
1697 2095 | index a880648..139e808 100644
|
1698 - | -- a/tmp-codegen-diff/aws-sdk/sdk/bedrockruntime/Cargo.toml
|
2096 + | ++ b/tmp-codegen-diff/aws-sdk/sdk/bedrockruntime/Cargo.toml
|
1699 2097 | @@ -7,61 +7,61 @@ description = "AWS SDK for Amazon Bedrock Runtime"
|
1700 2098 | edition = "2021"
|
1701 2099 | license = "Apache-2.0"
|
1702 2100 | repository = "https://github.com/awslabs/aws-sdk-rust"
|
1703 2101 | rust-version = "1.86.0"
|
1704 2102 | readme = "README.md"
|
1705 2103 | [package.metadata.smithy]
|
1706 2104 | codegen-version = "ci"
|
1707 2105 | [package.metadata.docs.rs]
|
1708 2106 | all-features = true
|
1709 2107 | targets = ["x86_64-unknown-linux-gnu"]
|
1710 2108 | [dependencies.aws-credential-types]
|
1711 2109 | path = "../aws-credential-types"
|
1712 2110 | version = "1.2.4"
|
1713 2111 |
|
1714 2112 | [dependencies.aws-runtime]
|
1715 2113 | path = "../aws-runtime"
|
1716 2114 | features = ["event-stream"]
|
1717 2115 | version = "1.5.9"
|
1718 2116 |
|
1719 2117 | [dependencies.aws-smithy-async]
|
1720 2118 | path = "../aws-smithy-async"
|
1721 2119 | version = "1.2.5"
|
1722 2120 |
|
1723 2121 | [dependencies.aws-smithy-eventstream]
|
1724 2122 | path = "../aws-smithy-eventstream"
|
1725 2123 | version = "0.60.10"
|
1726 2124 |
|
1727 2125 | [dependencies.aws-smithy-http]
|
1728 2126 | path = "../aws-smithy-http"
|
1729 2127 | features = ["event-stream"]
|
1730 - | version = "0.62.2"
|
2128 + | version = "0.62.3"
|
1731 2129 |
|
1732 2130 | [dependencies.aws-smithy-json]
|
1733 2131 | path = "../aws-smithy-json"
|
1734 2132 | version = "0.61.4"
|
1735 2133 |
|
1736 2134 | [dependencies.aws-smithy-runtime]
|
1737 2135 | path = "../aws-smithy-runtime"
|
1738 2136 | features = ["client"]
|
1739 2137 | version = "1.8.5"
|
1740 2138 |
|
1741 2139 | [dependencies.aws-smithy-runtime-api]
|
1742 2140 | path = "../aws-smithy-runtime-api"
|
1743 2141 | features = ["client", "http-02x"]
|
1744 2142 | version = "1.8.5"
|
1745 2143 |
|
1746 2144 | [dependencies.aws-smithy-types]
|
1747 2145 | path = "../aws-smithy-types"
|
1748 2146 | version = "1.3.2"
|
1749 2147 |
|
1750 2148 | [dependencies.aws-types]
|
1751 2149 | path = "../aws-types"
|
1752 2150 | version = "1.3.8"
|
1753 2151 |
|
1754 2152 | [dependencies.bytes]
|
1755 2153 | version = "1.4.0"
|
1756 2154 |
|
1757 2155 | [dependencies.fastrand]
|
1758 2156 | version = "2.0.0"
|
1759 2157 |
|
1760 2158 | [dependencies.http]
|
1761 2159 | diff --git a/tmp-codegen-diff/aws-sdk/sdk/cloudwatchlogs/Cargo.toml b/tmp-codegen-diff/aws-sdk/sdk/cloudwatchlogs/Cargo.toml
|
1762 2160 | index 415ecc9..667d12b 100644
|
1763 - | -- a/tmp-codegen-diff/aws-sdk/sdk/cloudwatchlogs/Cargo.toml
|
2161 + | ++ b/tmp-codegen-diff/aws-sdk/sdk/cloudwatchlogs/Cargo.toml
|
1764 2162 | @@ -7,61 +7,61 @@ description = "AWS SDK for Amazon CloudWatch Logs"
|
1765 2163 | edition = "2021"
|
1766 2164 | license = "Apache-2.0"
|
1767 2165 | repository = "https://github.com/awslabs/aws-sdk-rust"
|
1768 2166 | rust-version = "1.86.0"
|
1769 2167 | readme = "README.md"
|
1770 2168 | [package.metadata.smithy]
|
1771 2169 | codegen-version = "ci"
|
1772 2170 | [package.metadata.docs.rs]
|
1773 2171 | all-features = true
|
1774 2172 | targets = ["x86_64-unknown-linux-gnu"]
|
1775 2173 | [dependencies.aws-credential-types]
|
1776 2174 | path = "../aws-credential-types"
|
1777 2175 | version = "1.2.4"
|
1778 2176 |
|
1779 2177 | [dependencies.aws-runtime]
|
1780 2178 | path = "../aws-runtime"
|
1781 2179 | features = ["event-stream"]
|
1782 2180 | version = "1.5.9"
|
1783 2181 |
|
1784 2182 | [dependencies.aws-smithy-async]
|
1785 2183 | path = "../aws-smithy-async"
|
1786 2184 | version = "1.2.5"
|
1787 2185 |
|
1788 2186 | [dependencies.aws-smithy-eventstream]
|
1789 2187 | path = "../aws-smithy-eventstream"
|
1790 2188 | version = "0.60.10"
|
1791 2189 |
|
1792 2190 | [dependencies.aws-smithy-http]
|
1793 2191 | path = "../aws-smithy-http"
|
1794 2192 | features = ["event-stream"]
|
1795 - | version = "0.62.2"
|
2193 + | version = "0.62.3"
|
1796 2194 |
|
1797 2195 | [dependencies.aws-smithy-json]
|
1798 2196 | path = "../aws-smithy-json"
|
1799 2197 | version = "0.61.4"
|
1800 2198 |
|
1801 2199 | [dependencies.aws-smithy-runtime]
|
1802 2200 | path = "../aws-smithy-runtime"
|
1803 2201 | features = ["client"]
|
1804 2202 | version = "1.8.5"
|
1805 2203 |
|
1806 2204 | [dependencies.aws-smithy-runtime-api]
|
1807 2205 | path = "../aws-smithy-runtime-api"
|
1808 2206 | features = ["client", "http-02x"]
|
1809 2207 | version = "1.8.5"
|
1810 2208 |
|
1811 2209 | [dependencies.aws-smithy-types]
|
1812 2210 | path = "../aws-smithy-types"
|
1813 2211 | version = "1.3.2"
|
1814 2212 |
|
1815 2213 | [dependencies.aws-types]
|
1816 2214 | path = "../aws-types"
|
1817 2215 | version = "1.3.8"
|
1818 2216 |
|
1819 2217 | [dependencies.bytes]
|
1820 2218 | version = "1.4.0"
|
1821 2219 |
|
1822 2220 | [dependencies.fastrand]
|
1823 2221 | version = "2.0.0"
|
1824 2222 |
|
1825 2223 | [dependencies.http]
|
1826 2224 | diff --git a/tmp-codegen-diff/aws-sdk/sdk/codecatalyst/Cargo.toml b/tmp-codegen-diff/aws-sdk/sdk/codecatalyst/Cargo.toml
|
1827 2225 | index 8871cab..ed88de6 100644
|
1828 - | -- a/tmp-codegen-diff/aws-sdk/sdk/codecatalyst/Cargo.toml
|
2226 + | ++ b/tmp-codegen-diff/aws-sdk/sdk/codecatalyst/Cargo.toml
|
1829 2227 | @@ -1,61 +1,61 @@
|
1830 2228 | # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
1831 2229 | [package]
|
1832 2230 | name = "aws-sdk-codecatalyst"
|
1833 2231 | version = "0.0.0-local"
|
1834 2232 | authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"]
|
1835 2233 | description = "AWS SDK for Amazon CodeCatalyst"
|
1836 2234 | edition = "2021"
|
1837 2235 | license = "Apache-2.0"
|
1838 2236 | repository = "https://github.com/awslabs/aws-sdk-rust"
|
1839 2237 | rust-version = "1.86.0"
|
1840 2238 | readme = "README.md"
|
1841 2239 | [package.metadata.smithy]
|
1842 2240 | codegen-version = "ci"
|
1843 2241 | [package.metadata.docs.rs]
|
1844 2242 | all-features = true
|
1845 2243 | targets = ["x86_64-unknown-linux-gnu"]
|
1846 2244 | [dependencies.aws-credential-types]
|
1847 2245 | path = "../aws-credential-types"
|
1848 2246 | version = "1.2.4"
|
1849 2247 |
|
1850 2248 | [dependencies.aws-runtime]
|
1851 2249 | path = "../aws-runtime"
|
1852 2250 | version = "1.5.9"
|
1853 2251 |
|
1854 2252 | [dependencies.aws-smithy-async]
|
1855 2253 | path = "../aws-smithy-async"
|
1856 2254 | version = "1.2.5"
|
1857 2255 |
|
1858 2256 | [dependencies.aws-smithy-http]
|
1859 2257 | path = "../aws-smithy-http"
|
1860 - | version = "0.62.2"
|
2258 + | version = "0.62.3"
|
1861 2259 |
|
1862 2260 | [dependencies.aws-smithy-json]
|
1863 2261 | path = "../aws-smithy-json"
|
1864 2262 | version = "0.61.4"
|
1865 2263 |
|
1866 2264 | [dependencies.aws-smithy-runtime]
|
1867 2265 | path = "../aws-smithy-runtime"
|
1868 2266 | features = ["client", "http-auth"]
|
1869 2267 | version = "1.8.5"
|
1870 2268 |
|
1871 2269 | [dependencies.aws-smithy-runtime-api]
|
1872 2270 | path = "../aws-smithy-runtime-api"
|
1873 2271 | features = ["client", "http-02x", "http-auth"]
|
1874 2272 | version = "1.8.5"
|
1875 2273 |
|
1876 2274 | [dependencies.aws-smithy-types]
|
1877 2275 | path = "../aws-smithy-types"
|
1878 2276 | version = "1.3.2"
|
1879 2277 |
|
1880 2278 | [dependencies.aws-types]
|
1881 2279 | path = "../aws-types"
|
1882 2280 | version = "1.3.8"
|
1883 2281 |
|
1884 2282 | [dependencies.bytes]
|
1885 2283 | version = "1.4.0"
|
1886 2284 |
|
1887 2285 | [dependencies.fastrand]
|
1888 2286 | version = "2.0.0"
|
1889 2287 |
|
1890 2288 | [dependencies.http]
|
1891 2289 | diff --git a/tmp-codegen-diff/aws-sdk/sdk/config/Cargo.toml b/tmp-codegen-diff/aws-sdk/sdk/config/Cargo.toml
|
1892 2290 | index 89573ff..05238af 100644
|
1893 - | -- a/tmp-codegen-diff/aws-sdk/sdk/config/Cargo.toml
|
2291 + | ++ b/tmp-codegen-diff/aws-sdk/sdk/config/Cargo.toml
|
1894 2292 | @@ -1,61 +1,61 @@
|
1895 2293 | # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
1896 2294 | [package]
|
1897 2295 | name = "aws-sdk-config"
|
1898 2296 | version = "0.0.0-local"
|
1899 2297 | authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"]
|
1900 2298 | description = "AWS SDK for AWS Config"
|
1901 2299 | edition = "2021"
|
1902 2300 | license = "Apache-2.0"
|
1903 2301 | repository = "https://github.com/awslabs/aws-sdk-rust"
|
1904 2302 | rust-version = "1.86.0"
|
1905 2303 | readme = "README.md"
|
1906 2304 | [package.metadata.smithy]
|
1907 2305 | codegen-version = "ci"
|
1908 2306 | [package.metadata.docs.rs]
|
1909 2307 | all-features = true
|
1910 2308 | targets = ["x86_64-unknown-linux-gnu"]
|
1911 2309 | [dependencies.aws-credential-types]
|
1912 2310 | path = "../aws-credential-types"
|
1913 2311 | version = "1.2.4"
|
1914 2312 |
|
1915 2313 | [dependencies.aws-runtime]
|
1916 2314 | path = "../aws-runtime"
|
1917 2315 | version = "1.5.9"
|
1918 2316 |
|
1919 2317 | [dependencies.aws-smithy-async]
|
1920 2318 | path = "../aws-smithy-async"
|
1921 2319 | version = "1.2.5"
|
1922 2320 |
|
1923 2321 | [dependencies.aws-smithy-http]
|
1924 2322 | path = "../aws-smithy-http"
|
1925 - | version = "0.62.2"
|
2323 + | version = "0.62.3"
|
1926 2324 |
|
1927 2325 | [dependencies.aws-smithy-json]
|
1928 2326 | path = "../aws-smithy-json"
|
1929 2327 | version = "0.61.4"
|
1930 2328 |
|
1931 2329 | [dependencies.aws-smithy-runtime]
|
1932 2330 | path = "../aws-smithy-runtime"
|
1933 2331 | features = ["client"]
|
1934 2332 | version = "1.8.5"
|
1935 2333 |
|
1936 2334 | [dependencies.aws-smithy-runtime-api]
|
1937 2335 | path = "../aws-smithy-runtime-api"
|
1938 2336 | features = ["client", "http-02x"]
|
1939 2337 | version = "1.8.5"
|
1940 2338 |
|
1941 2339 | [dependencies.aws-smithy-types]
|
1942 2340 | path = "../aws-smithy-types"
|
1943 2341 | version = "1.3.2"
|
1944 2342 |
|
1945 2343 | [dependencies.aws-types]
|
1946 2344 | path = "../aws-types"
|
1947 2345 | version = "1.3.8"
|
1948 2346 |
|
1949 2347 | [dependencies.bytes]
|
1950 2348 | version = "1.4.0"
|
1951 2349 |
|
1952 2350 | [dependencies.fastrand]
|
1953 2351 | version = "2.0.0"
|
1954 2352 |
|
1955 2353 | [dependencies.http]
|
1956 2354 | diff --git a/tmp-codegen-diff/aws-sdk/sdk/dynamodb/Cargo.toml b/tmp-codegen-diff/aws-sdk/sdk/dynamodb/Cargo.toml
|
1957 2355 | index d397c58..2c1062b 100644
|
1958 - | -- a/tmp-codegen-diff/aws-sdk/sdk/dynamodb/Cargo.toml
|
2356 + | ++ b/tmp-codegen-diff/aws-sdk/sdk/dynamodb/Cargo.toml
|
1959 2357 | @@ -1,61 +1,61 @@
|
1960 2358 | # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
1961 2359 | [package]
|
1962 2360 | name = "aws-sdk-dynamodb"
|
1963 2361 | version = "0.0.0-local"
|
1964 2362 | authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"]
|
1965 2363 | description = "AWS SDK for Amazon DynamoDB"
|
1966 2364 | edition = "2021"
|
1967 2365 | license = "Apache-2.0"
|
1968 2366 | repository = "https://github.com/awslabs/aws-sdk-rust"
|
1969 2367 | rust-version = "1.86.0"
|
1970 2368 | readme = "README.md"
|
1971 2369 | [package.metadata.smithy]
|
1972 2370 | codegen-version = "ci"
|
1973 2371 | [package.metadata.docs.rs]
|
1974 2372 | all-features = true
|
1975 2373 | targets = ["x86_64-unknown-linux-gnu"]
|
1976 2374 | [dependencies.aws-credential-types]
|
1977 2375 | path = "../aws-credential-types"
|
1978 2376 | version = "1.2.4"
|
1979 2377 |
|
1980 2378 | [dependencies.aws-runtime]
|
1981 2379 | path = "../aws-runtime"
|
1982 2380 | version = "1.5.9"
|
1983 2381 |
|
1984 2382 | [dependencies.aws-smithy-async]
|
1985 2383 | path = "../aws-smithy-async"
|
1986 2384 | version = "1.2.5"
|
1987 2385 |
|
1988 2386 | [dependencies.aws-smithy-http]
|
1989 2387 | path = "../aws-smithy-http"
|
1990 - | version = "0.62.2"
|
2388 + | version = "0.62.3"
|
1991 2389 |
|
1992 2390 | [dependencies.aws-smithy-json]
|
1993 2391 | path = "../aws-smithy-json"
|
1994 2392 | version = "0.61.4"
|
1995 2393 |
|
1996 2394 | [dependencies.aws-smithy-runtime]
|
1997 2395 | path = "../aws-smithy-runtime"
|
1998 2396 | features = ["client"]
|
1999 2397 | version = "1.8.5"
|
2000 2398 |
|
2001 2399 | [dependencies.aws-smithy-runtime-api]
|
2002 2400 | path = "../aws-smithy-runtime-api"
|
2003 2401 | features = ["client", "http-02x"]
|
2004 2402 | version = "1.8.5"
|
2005 2403 |
|
2006 2404 | [dependencies.aws-smithy-types]
|
2007 2405 | path = "../aws-smithy-types"
|
2008 2406 | version = "1.3.2"
|
2009 2407 |
|
2010 2408 | [dependencies.aws-types]
|
2011 2409 | path = "../aws-types"
|
2012 2410 | version = "1.3.8"
|
2013 2411 |
|
2014 2412 | [dependencies.bytes]
|
2015 2413 | version = "1.4.0"
|
2016 2414 |
|
2017 2415 | [dependencies.fastrand]
|
2018 2416 | version = "2.0.0"
|
2019 2417 |
|
2020 2418 | [dependencies.http]
|
2021 2419 | diff --git a/tmp-codegen-diff/aws-sdk/sdk/ec2/Cargo.toml b/tmp-codegen-diff/aws-sdk/sdk/ec2/Cargo.toml
|
2022 2420 | index c0ba315..46168af 100644
|
2023 - | -- a/tmp-codegen-diff/aws-sdk/sdk/ec2/Cargo.toml
|
2421 + | ++ b/tmp-codegen-diff/aws-sdk/sdk/ec2/Cargo.toml
|
2024 2422 | @@ -1,61 +1,61 @@
|
2025 2423 | # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2026 2424 | [package]
|
2027 2425 | name = "aws-sdk-ec2"
|
2028 2426 | version = "0.0.0-local"
|
2029 2427 | authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"]
|
2030 2428 | description = "AWS SDK for Amazon Elastic Compute Cloud"
|
2031 2429 | edition = "2021"
|
2032 2430 | license = "Apache-2.0"
|
2033 2431 | repository = "https://github.com/awslabs/aws-sdk-rust"
|
2034 2432 | rust-version = "1.86.0"
|
2035 2433 | readme = "README.md"
|
2036 2434 | [package.metadata.smithy]
|
2037 2435 | codegen-version = "ci"
|
2038 2436 | [package.metadata.docs.rs]
|
2039 2437 | all-features = true
|
2040 2438 | targets = ["x86_64-unknown-linux-gnu"]
|
2041 2439 | [dependencies.aws-credential-types]
|
2042 2440 | path = "../aws-credential-types"
|
2043 2441 | version = "1.2.4"
|
2044 2442 |
|
2045 2443 | [dependencies.aws-runtime]
|
2046 2444 | path = "../aws-runtime"
|
2047 2445 | version = "1.5.9"
|
2048 2446 |
|
2049 2447 | [dependencies.aws-smithy-async]
|
2050 2448 | path = "../aws-smithy-async"
|
2051 2449 | version = "1.2.5"
|
2052 2450 |
|
2053 2451 | [dependencies.aws-smithy-http]
|
2054 2452 | path = "../aws-smithy-http"
|
2055 - | version = "0.62.2"
|
2453 + | version = "0.62.3"
|
2056 2454 |
|
2057 2455 | [dependencies.aws-smithy-json]
|
2058 2456 | path = "../aws-smithy-json"
|
2059 2457 | version = "0.61.4"
|
2060 2458 |
|
2061 2459 | [dependencies.aws-smithy-query]
|
2062 2460 | path = "../aws-smithy-query"
|
2063 2461 | version = "0.60.7"
|
2064 2462 |
|
2065 2463 | [dependencies.aws-smithy-runtime]
|
2066 2464 | path = "../aws-smithy-runtime"
|
2067 2465 | features = ["client"]
|
2068 2466 | version = "1.8.5"
|
2069 2467 |
|
2070 2468 | [dependencies.aws-smithy-runtime-api]
|
2071 2469 | path = "../aws-smithy-runtime-api"
|
2072 2470 | features = ["client", "http-02x"]
|
2073 2471 | version = "1.8.5"
|
2074 2472 |
|
2075 2473 | [dependencies.aws-smithy-types]
|
2076 2474 | path = "../aws-smithy-types"
|
2077 2475 | version = "1.3.2"
|
2078 2476 |
|
2079 2477 | [dependencies.aws-smithy-xml]
|
2080 2478 | path = "../aws-smithy-xml"
|
2081 2479 | version = "0.60.10"
|
2082 2480 |
|
2083 2481 | [dependencies.aws-types]
|
2084 2482 | path = "../aws-types"
|
2085 2483 | version = "1.3.8"
|
2086 2484 | diff --git a/tmp-codegen-diff/aws-sdk/sdk/ecs/Cargo.toml b/tmp-codegen-diff/aws-sdk/sdk/ecs/Cargo.toml
|
2087 2485 | index 4474d17..095d40e 100644
|
2088 - | -- a/tmp-codegen-diff/aws-sdk/sdk/ecs/Cargo.toml
|
2486 + | ++ b/tmp-codegen-diff/aws-sdk/sdk/ecs/Cargo.toml
|
2089 2487 | @@ -1,61 +1,61 @@
|
2090 2488 | # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2091 2489 | [package]
|
2092 2490 | name = "aws-sdk-ecs"
|
2093 2491 | version = "0.0.0-local"
|
2094 2492 | authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"]
|
2095 2493 | description = "AWS SDK for Amazon EC2 Container Service"
|
2096 2494 | edition = "2021"
|
2097 2495 | license = "Apache-2.0"
|
2098 2496 | repository = "https://github.com/awslabs/aws-sdk-rust"
|
2099 2497 | rust-version = "1.86.0"
|
2100 2498 | readme = "README.md"
|
2101 2499 | [package.metadata.smithy]
|
2102 2500 | codegen-version = "ci"
|
2103 2501 | [package.metadata.docs.rs]
|
2104 2502 | all-features = true
|
2105 2503 | targets = ["x86_64-unknown-linux-gnu"]
|
2106 2504 | [dependencies.aws-credential-types]
|
2107 2505 | path = "../aws-credential-types"
|
2108 2506 | version = "1.2.4"
|
2109 2507 |
|
2110 2508 | [dependencies.aws-runtime]
|
2111 2509 | path = "../aws-runtime"
|
2112 2510 | version = "1.5.9"
|
2113 2511 |
|
2114 2512 | [dependencies.aws-smithy-async]
|
2115 2513 | path = "../aws-smithy-async"
|
2116 2514 | version = "1.2.5"
|
2117 2515 |
|
2118 2516 | [dependencies.aws-smithy-http]
|
2119 2517 | path = "../aws-smithy-http"
|
2120 - | version = "0.62.2"
|
2518 + | version = "0.62.3"
|
2121 2519 |
|
2122 2520 | [dependencies.aws-smithy-json]
|
2123 2521 | path = "../aws-smithy-json"
|
2124 2522 | version = "0.61.4"
|
2125 2523 |
|
2126 2524 | [dependencies.aws-smithy-runtime]
|
2127 2525 | path = "../aws-smithy-runtime"
|
2128 2526 | features = ["client"]
|
2129 2527 | version = "1.8.5"
|
2130 2528 |
|
2131 2529 | [dependencies.aws-smithy-runtime-api]
|
2132 2530 | path = "../aws-smithy-runtime-api"
|
2133 2531 | features = ["client", "http-02x"]
|
2134 2532 | version = "1.8.5"
|
2135 2533 |
|
2136 2534 | [dependencies.aws-smithy-types]
|
2137 2535 | path = "../aws-smithy-types"
|
2138 2536 | version = "1.3.2"
|
2139 2537 |
|
2140 2538 | [dependencies.aws-types]
|
2141 2539 | path = "../aws-types"
|
2142 2540 | version = "1.3.8"
|
2143 2541 |
|
2144 2542 | [dependencies.bytes]
|
2145 2543 | version = "1.4.0"
|
2146 2544 |
|
2147 2545 | [dependencies.fastrand]
|
2148 2546 | version = "2.0.0"
|
2149 2547 |
|
2150 2548 | [dependencies.http]
|
2151 2549 | diff --git a/tmp-codegen-diff/aws-sdk/sdk/glacier/Cargo.toml b/tmp-codegen-diff/aws-sdk/sdk/glacier/Cargo.toml
|
2152 2550 | index 15b1d77..16d7d89 100644
|
2153 - | -- a/tmp-codegen-diff/aws-sdk/sdk/glacier/Cargo.toml
|
2551 + | ++ b/tmp-codegen-diff/aws-sdk/sdk/glacier/Cargo.toml
|
2154 2552 | @@ -1,65 +1,65 @@
|
2155 2553 | # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2156 2554 | [package]
|
2157 2555 | name = "aws-sdk-glacier"
|
2158 2556 | version = "0.0.0-local"
|
2159 2557 | authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"]
|
2160 2558 | description = "AWS SDK for Amazon Glacier"
|
2161 2559 | edition = "2021"
|
2162 2560 | license = "Apache-2.0"
|
2163 2561 | repository = "https://github.com/awslabs/aws-sdk-rust"
|
2164 2562 | rust-version = "1.86.0"
|
2165 2563 | readme = "README.md"
|
2166 2564 | [package.metadata.smithy]
|
2167 2565 | codegen-version = "ci"
|
2168 2566 | [package.metadata.docs.rs]
|
2169 2567 | all-features = true
|
2170 2568 | targets = ["x86_64-unknown-linux-gnu"]
|
2171 2569 | [dependencies.aws-credential-types]
|
2172 2570 | path = "../aws-credential-types"
|
2173 2571 | version = "1.2.4"
|
2174 2572 |
|
2175 2573 | [dependencies.aws-runtime]
|
2176 2574 | path = "../aws-runtime"
|
2177 2575 | version = "1.5.9"
|
2178 2576 |
|
2179 2577 | [dependencies.aws-sigv4]
|
2180 2578 | path = "../aws-sigv4"
|
2181 - | version = "1.3.3"
|
2579 + | version = "1.3.4"
|
2182 2580 |
|
2183 2581 | [dependencies.aws-smithy-async]
|
2184 2582 | path = "../aws-smithy-async"
|
2185 2583 | version = "1.2.5"
|
2186 2584 |
|
2187 2585 | [dependencies.aws-smithy-http]
|
2188 2586 | path = "../aws-smithy-http"
|
2189 - | version = "0.62.2"
|
2587 + | version = "0.62.3"
|
2190 2588 |
|
2191 2589 | [dependencies.aws-smithy-json]
|
2192 2590 | path = "../aws-smithy-json"
|
2193 2591 | version = "0.61.4"
|
2194 2592 |
|
2195 2593 | [dependencies.aws-smithy-runtime]
|
2196 2594 | path = "../aws-smithy-runtime"
|
2197 2595 | features = ["client"]
|
2198 2596 | version = "1.8.5"
|
2199 2597 |
|
2200 2598 | [dependencies.aws-smithy-runtime-api]
|
2201 2599 | path = "../aws-smithy-runtime-api"
|
2202 2600 | features = ["client", "http-02x"]
|
2203 2601 | version = "1.8.5"
|
2204 2602 |
|
2205 2603 | [dependencies.aws-smithy-types]
|
2206 2604 | path = "../aws-smithy-types"
|
2207 2605 | version = "1.3.2"
|
2208 2606 |
|
2209 2607 | [dependencies.aws-types]
|
2210 2608 | path = "../aws-types"
|
2211 2609 | version = "1.3.8"
|
2212 2610 |
|
2213 2611 | [dependencies.bytes]
|
2214 2612 | version = "1.4.0"
|
2215 2613 |
|
2216 2614 | [dependencies.fastrand]
|
2217 2615 | version = "2.0.0"
|
2218 2616 |
|
2219 2617 | [dependencies.hex]
|
2220 2618 | diff --git a/tmp-codegen-diff/aws-sdk/sdk/iam/Cargo.toml b/tmp-codegen-diff/aws-sdk/sdk/iam/Cargo.toml
|
2221 2619 | index d718a3a..65e6f24 100644
|
2222 - | -- a/tmp-codegen-diff/aws-sdk/sdk/iam/Cargo.toml
|
2620 + | ++ b/tmp-codegen-diff/aws-sdk/sdk/iam/Cargo.toml
|
2223 2621 | @@ -1,61 +1,61 @@
|
2224 2622 | # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2225 2623 | [package]
|
2226 2624 | name = "aws-sdk-iam"
|
2227 2625 | version = "0.0.0-local"
|
2228 2626 | authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"]
|
2229 2627 | description = "AWS SDK for AWS Identity and Access Management"
|
2230 2628 | edition = "2021"
|
2231 2629 | license = "Apache-2.0"
|
2232 2630 | repository = "https://github.com/awslabs/aws-sdk-rust"
|
2233 2631 | rust-version = "1.86.0"
|
2234 2632 | readme = "README.md"
|
2235 2633 | [package.metadata.smithy]
|
2236 2634 | codegen-version = "ci"
|
2237 2635 | [package.metadata.docs.rs]
|
2238 2636 | all-features = true
|
2239 2637 | targets = ["x86_64-unknown-linux-gnu"]
|
2240 2638 | [dependencies.aws-credential-types]
|
2241 2639 | path = "../aws-credential-types"
|
2242 2640 | version = "1.2.4"
|
2243 2641 |
|
2244 2642 | [dependencies.aws-runtime]
|
2245 2643 | path = "../aws-runtime"
|
2246 2644 | version = "1.5.9"
|
2247 2645 |
|
2248 2646 | [dependencies.aws-smithy-async]
|
2249 2647 | path = "../aws-smithy-async"
|
2250 2648 | version = "1.2.5"
|
2251 2649 |
|
2252 2650 | [dependencies.aws-smithy-http]
|
2253 2651 | path = "../aws-smithy-http"
|
2254 - | version = "0.62.2"
|
2652 + | version = "0.62.3"
|
2255 2653 |
|
2256 2654 | [dependencies.aws-smithy-json]
|
2257 2655 | path = "../aws-smithy-json"
|
2258 2656 | version = "0.61.4"
|
2259 2657 |
|
2260 2658 | [dependencies.aws-smithy-query]
|
2261 2659 | path = "../aws-smithy-query"
|
2262 2660 | version = "0.60.7"
|
2263 2661 |
|
2264 2662 | [dependencies.aws-smithy-runtime]
|
2265 2663 | path = "../aws-smithy-runtime"
|
2266 2664 | features = ["client"]
|
2267 2665 | version = "1.8.5"
|
2268 2666 |
|
2269 2667 | [dependencies.aws-smithy-runtime-api]
|
2270 2668 | path = "../aws-smithy-runtime-api"
|
2271 2669 | features = ["client", "http-02x"]
|
2272 2670 | version = "1.8.5"
|
2273 2671 |
|
2274 2672 | [dependencies.aws-smithy-types]
|
2275 2673 | path = "../aws-smithy-types"
|
2276 2674 | version = "1.3.2"
|
2277 2675 |
|
2278 2676 | [dependencies.aws-smithy-xml]
|
2279 2677 | path = "../aws-smithy-xml"
|
2280 2678 | version = "0.60.10"
|
2281 2679 |
|
2282 2680 | [dependencies.aws-types]
|
2283 2681 | path = "../aws-types"
|
2284 2682 | version = "1.3.8"
|
2285 2683 | diff --git a/tmp-codegen-diff/aws-sdk/sdk/kms/Cargo.toml b/tmp-codegen-diff/aws-sdk/sdk/kms/Cargo.toml
|
2286 2684 | index 0ed4302..3d828a5 100644
|
2287 - | -- a/tmp-codegen-diff/aws-sdk/sdk/kms/Cargo.toml
|
2685 + | ++ b/tmp-codegen-diff/aws-sdk/sdk/kms/Cargo.toml
|
2288 2686 | @@ -1,61 +1,61 @@
|
2289 2687 | # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2290 2688 | [package]
|
2291 2689 | name = "aws-sdk-kms"
|
2292 2690 | version = "0.0.0-local"
|
2293 2691 | authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"]
|
2294 2692 | description = "AWS SDK for AWS Key Management Service"
|
2295 2693 | edition = "2021"
|
2296 2694 | license = "Apache-2.0"
|
2297 2695 | repository = "https://github.com/awslabs/aws-sdk-rust"
|
2298 2696 | rust-version = "1.86.0"
|
2299 2697 | readme = "README.md"
|
2300 2698 | [package.metadata.smithy]
|
2301 2699 | codegen-version = "ci"
|
2302 2700 | [package.metadata.docs.rs]
|
2303 2701 | all-features = true
|
2304 2702 | targets = ["x86_64-unknown-linux-gnu"]
|
2305 2703 | [dependencies.aws-credential-types]
|
2306 2704 | path = "../aws-credential-types"
|
2307 2705 | version = "1.2.4"
|
2308 2706 |
|
2309 2707 | [dependencies.aws-runtime]
|
2310 2708 | path = "../aws-runtime"
|
2311 2709 | version = "1.5.9"
|
2312 2710 |
|
2313 2711 | [dependencies.aws-smithy-async]
|
2314 2712 | path = "../aws-smithy-async"
|
2315 2713 | version = "1.2.5"
|
2316 2714 |
|
2317 2715 | [dependencies.aws-smithy-http]
|
2318 2716 | path = "../aws-smithy-http"
|
2319 - | version = "0.62.2"
|
2717 + | version = "0.62.3"
|
2320 2718 |
|
2321 2719 | [dependencies.aws-smithy-json]
|
2322 2720 | path = "../aws-smithy-json"
|
2323 2721 | version = "0.61.4"
|
2324 2722 |
|
2325 2723 | [dependencies.aws-smithy-runtime]
|
2326 2724 | path = "../aws-smithy-runtime"
|
2327 2725 | features = ["client"]
|
2328 2726 | version = "1.8.5"
|
2329 2727 |
|
2330 2728 | [dependencies.aws-smithy-runtime-api]
|
2331 2729 | path = "../aws-smithy-runtime-api"
|
2332 2730 | features = ["client", "http-02x"]
|
2333 2731 | version = "1.8.5"
|
2334 2732 |
|
2335 2733 | [dependencies.aws-smithy-types]
|
2336 2734 | path = "../aws-smithy-types"
|
2337 2735 | version = "1.3.2"
|
2338 2736 |
|
2339 2737 | [dependencies.aws-types]
|
2340 2738 | path = "../aws-types"
|
2341 2739 | version = "1.3.8"
|
2342 2740 |
|
2343 2741 | [dependencies.bytes]
|
2344 2742 | version = "1.4.0"
|
2345 2743 |
|
2346 2744 | [dependencies.fastrand]
|
2347 2745 | version = "2.0.0"
|
2348 2746 |
|
2349 2747 | [dependencies.http]
|
2350 2748 | diff --git a/tmp-codegen-diff/aws-sdk/sdk/lambda/Cargo.toml b/tmp-codegen-diff/aws-sdk/sdk/lambda/Cargo.toml
|
2351 2749 | index 6518dfc..6b94752 100644
|
2352 - | -- a/tmp-codegen-diff/aws-sdk/sdk/lambda/Cargo.toml
|
2750 + | ++ b/tmp-codegen-diff/aws-sdk/sdk/lambda/Cargo.toml
|
2353 2751 | @@ -7,61 +7,61 @@ description = "AWS SDK for AWS Lambda"
|
2354 2752 | edition = "2021"
|
2355 2753 | license = "Apache-2.0"
|
2356 2754 | repository = "https://github.com/awslabs/aws-sdk-rust"
|
2357 2755 | rust-version = "1.86.0"
|
2358 2756 | readme = "README.md"
|
2359 2757 | [package.metadata.smithy]
|
2360 2758 | codegen-version = "ci"
|
2361 2759 | [package.metadata.docs.rs]
|
2362 2760 | all-features = true
|
2363 2761 | targets = ["x86_64-unknown-linux-gnu"]
|
2364 2762 | [dependencies.aws-credential-types]
|
2365 2763 | path = "../aws-credential-types"
|
2366 2764 | version = "1.2.4"
|
2367 2765 |
|
2368 2766 | [dependencies.aws-runtime]
|
2369 2767 | path = "../aws-runtime"
|
2370 2768 | features = ["event-stream"]
|
2371 2769 | version = "1.5.9"
|
2372 2770 |
|
2373 2771 | [dependencies.aws-smithy-async]
|
2374 2772 | path = "../aws-smithy-async"
|
2375 2773 | version = "1.2.5"
|
2376 2774 |
|
2377 2775 | [dependencies.aws-smithy-eventstream]
|
2378 2776 | path = "../aws-smithy-eventstream"
|
2379 2777 | version = "0.60.10"
|
2380 2778 |
|
2381 2779 | [dependencies.aws-smithy-http]
|
2382 2780 | path = "../aws-smithy-http"
|
2383 2781 | features = ["event-stream"]
|
2384 - | version = "0.62.2"
|
2782 + | version = "0.62.3"
|
2385 2783 |
|
2386 2784 | [dependencies.aws-smithy-json]
|
2387 2785 | path = "../aws-smithy-json"
|
2388 2786 | version = "0.61.4"
|
2389 2787 |
|
2390 2788 | [dependencies.aws-smithy-runtime]
|
2391 2789 | path = "../aws-smithy-runtime"
|
2392 2790 | features = ["client"]
|
2393 2791 | version = "1.8.5"
|
2394 2792 |
|
2395 2793 | [dependencies.aws-smithy-runtime-api]
|
2396 2794 | path = "../aws-smithy-runtime-api"
|
2397 2795 | features = ["client", "http-02x"]
|
2398 2796 | version = "1.8.5"
|
2399 2797 |
|
2400 2798 | [dependencies.aws-smithy-types]
|
2401 2799 | path = "../aws-smithy-types"
|
2402 2800 | version = "1.3.2"
|
2403 2801 |
|
2404 2802 | [dependencies.aws-types]
|
2405 2803 | path = "../aws-types"
|
2406 2804 | version = "1.3.8"
|
2407 2805 |
|
2408 2806 | [dependencies.bytes]
|
2409 2807 | version = "1.4.0"
|
2410 2808 |
|
2411 2809 | [dependencies.fastrand]
|
2412 2810 | version = "2.0.0"
|
2413 2811 |
|
2414 2812 | [dependencies.http]
|
2415 2813 | diff --git a/tmp-codegen-diff/aws-sdk/sdk/polly/Cargo.toml b/tmp-codegen-diff/aws-sdk/sdk/polly/Cargo.toml
|
2416 2814 | index dabb0e0..34cbc15 100644
|
2417 - | -- a/tmp-codegen-diff/aws-sdk/sdk/polly/Cargo.toml
|
2815 + | ++ b/tmp-codegen-diff/aws-sdk/sdk/polly/Cargo.toml
|
2418 2816 | @@ -1,65 +1,65 @@
|
2419 2817 | # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2420 2818 | [package]
|
2421 2819 | name = "aws-sdk-polly"
|
2422 2820 | version = "0.0.0-local"
|
2423 2821 | authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"]
|
2424 2822 | description = "AWS SDK for Amazon Polly"
|
2425 2823 | edition = "2021"
|
2426 2824 | license = "Apache-2.0"
|
2427 2825 | repository = "https://github.com/awslabs/aws-sdk-rust"
|
2428 2826 | rust-version = "1.86.0"
|
2429 2827 | readme = "README.md"
|
2430 2828 | [package.metadata.smithy]
|
2431 2829 | codegen-version = "ci"
|
2432 2830 | [package.metadata.docs.rs]
|
2433 2831 | all-features = true
|
2434 2832 | targets = ["x86_64-unknown-linux-gnu"]
|
2435 2833 | [dependencies.aws-credential-types]
|
2436 2834 | path = "../aws-credential-types"
|
2437 2835 | version = "1.2.4"
|
2438 2836 |
|
2439 2837 | [dependencies.aws-runtime]
|
2440 2838 | path = "../aws-runtime"
|
2441 2839 | version = "1.5.9"
|
2442 2840 |
|
2443 2841 | [dependencies.aws-sigv4]
|
2444 2842 | path = "../aws-sigv4"
|
2445 - | version = "1.3.3"
|
2843 + | version = "1.3.4"
|
2446 2844 |
|
2447 2845 | [dependencies.aws-smithy-async]
|
2448 2846 | path = "../aws-smithy-async"
|
2449 2847 | version = "1.2.5"
|
2450 2848 |
|
2451 2849 | [dependencies.aws-smithy-http]
|
2452 2850 | path = "../aws-smithy-http"
|
2453 - | version = "0.62.2"
|
2851 + | version = "0.62.3"
|
2454 2852 |
|
2455 2853 | [dependencies.aws-smithy-json]
|
2456 2854 | path = "../aws-smithy-json"
|
2457 2855 | version = "0.61.4"
|
2458 2856 |
|
2459 2857 | [dependencies.aws-smithy-runtime]
|
2460 2858 | path = "../aws-smithy-runtime"
|
2461 2859 | features = ["client"]
|
2462 2860 | version = "1.8.5"
|
2463 2861 |
|
2464 2862 | [dependencies.aws-smithy-runtime-api]
|
2465 2863 | path = "../aws-smithy-runtime-api"
|
2466 2864 | features = ["client", "http-02x"]
|
2467 2865 | version = "1.8.5"
|
2468 2866 |
|
2469 2867 | [dependencies.aws-smithy-types]
|
2470 2868 | path = "../aws-smithy-types"
|
2471 2869 | version = "1.3.2"
|
2472 2870 |
|
2473 2871 | [dependencies.aws-types]
|
2474 2872 | path = "../aws-types"
|
2475 2873 | version = "1.3.8"
|
2476 2874 |
|
2477 2875 | [dependencies.bytes]
|
2478 2876 | version = "1.4.0"
|
2479 2877 |
|
2480 2878 | [dependencies.fastrand]
|
2481 2879 | version = "2.0.0"
|
2482 2880 |
|
2483 2881 | [dependencies.http]
|
2484 2882 | diff --git a/tmp-codegen-diff/aws-sdk/sdk/qldbsession/Cargo.toml b/tmp-codegen-diff/aws-sdk/sdk/qldbsession/Cargo.toml
|
2485 2883 | index a884716..f3d8713 100644
|
2486 - | -- a/tmp-codegen-diff/aws-sdk/sdk/qldbsession/Cargo.toml
|
2884 + | ++ b/tmp-codegen-diff/aws-sdk/sdk/qldbsession/Cargo.toml
|
2487 2885 | @@ -1,61 +1,61 @@
|
2488 2886 | # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2489 2887 | [package]
|
2490 2888 | name = "aws-sdk-qldbsession"
|
2491 2889 | version = "0.0.0-local"
|
2492 2890 | authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"]
|
2493 2891 | description = "AWS SDK for Amazon QLDB Session"
|
2494 2892 | edition = "2021"
|
2495 2893 | license = "Apache-2.0"
|
2496 2894 | repository = "https://github.com/awslabs/aws-sdk-rust"
|
2497 2895 | rust-version = "1.86.0"
|
2498 2896 | readme = "README.md"
|
2499 2897 | [package.metadata.smithy]
|
2500 2898 | codegen-version = "ci"
|
2501 2899 | [package.metadata.docs.rs]
|
2502 2900 | all-features = true
|
2503 2901 | targets = ["x86_64-unknown-linux-gnu"]
|
2504 2902 | [dependencies.aws-credential-types]
|
2505 2903 | path = "../aws-credential-types"
|
2506 2904 | version = "1.2.4"
|
2507 2905 |
|
2508 2906 | [dependencies.aws-runtime]
|
2509 2907 | path = "../aws-runtime"
|
2510 2908 | version = "1.5.9"
|
2511 2909 |
|
2512 2910 | [dependencies.aws-smithy-async]
|
2513 2911 | path = "../aws-smithy-async"
|
2514 2912 | version = "1.2.5"
|
2515 2913 |
|
2516 2914 | [dependencies.aws-smithy-http]
|
2517 2915 | path = "../aws-smithy-http"
|
2518 - | version = "0.62.2"
|
2916 + | version = "0.62.3"
|
2519 2917 |
|
2520 2918 | [dependencies.aws-smithy-json]
|
2521 2919 | path = "../aws-smithy-json"
|
2522 2920 | version = "0.61.4"
|
2523 2921 |
|
2524 2922 | [dependencies.aws-smithy-runtime]
|
2525 2923 | path = "../aws-smithy-runtime"
|
2526 2924 | features = ["client"]
|
2527 2925 | version = "1.8.5"
|
2528 2926 |
|
2529 2927 | [dependencies.aws-smithy-runtime-api]
|
2530 2928 | path = "../aws-smithy-runtime-api"
|
2531 2929 | features = ["client", "http-02x"]
|
2532 2930 | version = "1.8.5"
|
2533 2931 |
|
2534 2932 | [dependencies.aws-smithy-types]
|
2535 2933 | path = "../aws-smithy-types"
|
2536 2934 | version = "1.3.2"
|
2537 2935 |
|
2538 2936 | [dependencies.aws-types]
|
2539 2937 | path = "../aws-types"
|
2540 2938 | version = "1.3.8"
|
2541 2939 |
|
2542 2940 | [dependencies.bytes]
|
2543 2941 | version = "1.4.0"
|
2544 2942 |
|
2545 2943 | [dependencies.fastrand]
|
2546 2944 | version = "2.0.0"
|
2547 2945 |
|
2548 2946 | [dependencies.http]
|
2549 2947 | diff --git a/tmp-codegen-diff/aws-sdk/sdk/route53/Cargo.toml b/tmp-codegen-diff/aws-sdk/sdk/route53/Cargo.toml
|
2550 2948 | index 32a7dc9..a2c752d 100644
|
2551 - | -- a/tmp-codegen-diff/aws-sdk/sdk/route53/Cargo.toml
|
2949 + | ++ b/tmp-codegen-diff/aws-sdk/sdk/route53/Cargo.toml
|
2552 2950 | @@ -1,61 +1,61 @@
|
2553 2951 | # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2554 2952 | [package]
|
2555 2953 | name = "aws-sdk-route53"
|
2556 2954 | version = "0.0.0-local"
|
2557 2955 | authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"]
|
2558 2956 | description = "AWS SDK for Amazon Route 53"
|
2559 2957 | edition = "2021"
|
2560 2958 | license = "Apache-2.0"
|
2561 2959 | repository = "https://github.com/awslabs/aws-sdk-rust"
|
2562 2960 | rust-version = "1.86.0"
|
2563 2961 | readme = "README.md"
|
2564 2962 | [package.metadata.smithy]
|
2565 2963 | codegen-version = "ci"
|
2566 2964 | [package.metadata.docs.rs]
|
2567 2965 | all-features = true
|
2568 2966 | targets = ["x86_64-unknown-linux-gnu"]
|
2569 2967 | [dependencies.aws-credential-types]
|
2570 2968 | path = "../aws-credential-types"
|
2571 2969 | version = "1.2.4"
|
2572 2970 |
|
2573 2971 | [dependencies.aws-runtime]
|
2574 2972 | path = "../aws-runtime"
|
2575 2973 | version = "1.5.9"
|
2576 2974 |
|
2577 2975 | [dependencies.aws-smithy-async]
|
2578 2976 | path = "../aws-smithy-async"
|
2579 2977 | version = "1.2.5"
|
2580 2978 |
|
2581 2979 | [dependencies.aws-smithy-http]
|
2582 2980 | path = "../aws-smithy-http"
|
2583 - | version = "0.62.2"
|
2981 + | version = "0.62.3"
|
2584 2982 |
|
2585 2983 | [dependencies.aws-smithy-json]
|
2586 2984 | path = "../aws-smithy-json"
|
2587 2985 | version = "0.61.4"
|
2588 2986 |
|
2589 2987 | [dependencies.aws-smithy-runtime]
|
2590 2988 | path = "../aws-smithy-runtime"
|
2591 2989 | features = ["client"]
|
2592 2990 | version = "1.8.5"
|
2593 2991 |
|
2594 2992 | [dependencies.aws-smithy-runtime-api]
|
2595 2993 | path = "../aws-smithy-runtime-api"
|
2596 2994 | features = ["client", "http-02x"]
|
2597 2995 | version = "1.8.5"
|
2598 2996 |
|
2599 2997 | [dependencies.aws-smithy-types]
|
2600 2998 | path = "../aws-smithy-types"
|
2601 2999 | version = "1.3.2"
|
2602 3000 |
|
2603 3001 | [dependencies.aws-smithy-xml]
|
2604 3002 | path = "../aws-smithy-xml"
|
2605 3003 | version = "0.60.10"
|
2606 3004 |
|
2607 3005 | [dependencies.aws-types]
|
2608 3006 | path = "../aws-types"
|
2609 3007 | version = "1.3.8"
|
2610 3008 |
|
2611 3009 | [dependencies.fastrand]
|
2612 3010 | version = "2.0.0"
|
2613 3011 |
|
2614 3012 | diff --git a/tmp-codegen-diff/aws-sdk/sdk/s3/Cargo.toml b/tmp-codegen-diff/aws-sdk/sdk/s3/Cargo.toml
|
2615 3013 | index f65e261..2f6bec0 100644
|
2616 - | -- a/tmp-codegen-diff/aws-sdk/sdk/s3/Cargo.toml
|
3014 + | ++ b/tmp-codegen-diff/aws-sdk/sdk/s3/Cargo.toml
|
2617 3015 | @@ -1,75 +1,75 @@
|
2618 3016 | # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2619 3017 | [package]
|
2620 3018 | name = "aws-sdk-s3"
|
2621 3019 | version = "0.0.0-local"
|
2622 3020 | authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"]
|
2623 3021 | description = "AWS SDK for Amazon Simple Storage Service"
|
2624 3022 | edition = "2021"
|
2625 3023 | license = "Apache-2.0"
|
2626 3024 | repository = "https://github.com/awslabs/aws-sdk-rust"
|
2627 3025 | rust-version = "1.86.0"
|
2628 3026 | readme = "README.md"
|
2629 3027 | [package.metadata.smithy]
|
2630 3028 | codegen-version = "ci"
|
2631 3029 | [package.metadata.docs.rs]
|
2632 3030 | all-features = true
|
2633 3031 | targets = ["x86_64-unknown-linux-gnu"]
|
2634 3032 | [dependencies.aws-credential-types]
|
2635 3033 | path = "../aws-credential-types"
|
2636 3034 | version = "1.2.4"
|
2637 3035 |
|
2638 3036 | [dependencies.aws-runtime]
|
2639 3037 | path = "../aws-runtime"
|
2640 3038 | features = ["event-stream", "http-02x"]
|
2641 3039 | version = "1.5.9"
|
2642 3040 |
|
2643 3041 | [dependencies.aws-sigv4]
|
2644 3042 | path = "../aws-sigv4"
|
2645 - | version = "1.3.3"
|
3043 + | version = "1.3.4"
|
2646 3044 |
|
2647 3045 | [dependencies.aws-smithy-async]
|
2648 3046 | path = "../aws-smithy-async"
|
2649 3047 | version = "1.2.5"
|
2650 3048 |
|
2651 3049 | [dependencies.aws-smithy-checksums]
|
2652 3050 | path = "../aws-smithy-checksums"
|
2653 3051 | version = "0.63.5"
|
2654 3052 |
|
2655 3053 | [dependencies.aws-smithy-eventstream]
|
2656 3054 | path = "../aws-smithy-eventstream"
|
2657 3055 | version = "0.60.10"
|
2658 3056 |
|
2659 3057 | [dependencies.aws-smithy-http]
|
2660 3058 | path = "../aws-smithy-http"
|
2661 3059 | features = ["event-stream"]
|
2662 - | version = "0.62.2"
|
3060 + | version = "0.62.3"
|
2663 3061 |
|
2664 3062 | [dependencies.aws-smithy-json]
|
2665 3063 | path = "../aws-smithy-json"
|
2666 3064 | version = "0.61.4"
|
2667 3065 |
|
2668 3066 | [dependencies.aws-smithy-runtime]
|
2669 3067 | path = "../aws-smithy-runtime"
|
2670 3068 | features = ["client"]
|
2671 3069 | version = "1.8.5"
|
2672 3070 |
|
2673 3071 | [dependencies.aws-smithy-runtime-api]
|
2674 3072 | path = "../aws-smithy-runtime-api"
|
2675 3073 | features = ["client", "http-02x"]
|
2676 3074 | version = "1.8.5"
|
2677 3075 |
|
2678 3076 | [dependencies.aws-smithy-types]
|
2679 3077 | path = "../aws-smithy-types"
|
2680 3078 | version = "1.3.2"
|
2681 3079 |
|
2682 3080 | [dependencies.aws-smithy-xml]
|
2683 3081 | path = "../aws-smithy-xml"
|
2684 3082 | version = "0.60.10"
|
2685 3083 |
|
2686 3084 | [dependencies.aws-types]
|
2687 3085 | path = "../aws-types"
|
2688 3086 | version = "1.3.8"
|
2689 3087 |
|
2690 3088 | [dependencies.bytes]
|
2691 3089 | version = "1.4.0"
|
2692 3090 |
|
2693 3091 | diff --git a/tmp-codegen-diff/aws-sdk/sdk/s3control/Cargo.toml b/tmp-codegen-diff/aws-sdk/sdk/s3control/Cargo.toml
|
2694 3092 | index b4d1cdd..861c0cc 100644
|
2695 - | -- a/tmp-codegen-diff/aws-sdk/sdk/s3control/Cargo.toml
|
3093 + | ++ b/tmp-codegen-diff/aws-sdk/sdk/s3control/Cargo.toml
|
2696 3094 | @@ -1,61 +1,61 @@
|
2697 3095 | # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2698 3096 | [package]
|
2699 3097 | name = "aws-sdk-s3control"
|
2700 3098 | version = "0.0.0-local"
|
2701 3099 | authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"]
|
2702 3100 | description = "AWS SDK for AWS S3 Control"
|
2703 3101 | edition = "2021"
|
2704 3102 | license = "Apache-2.0"
|
2705 3103 | repository = "https://github.com/awslabs/aws-sdk-rust"
|
2706 3104 | rust-version = "1.86.0"
|
2707 3105 | readme = "README.md"
|
2708 3106 | [package.metadata.smithy]
|
2709 3107 | codegen-version = "ci"
|
2710 3108 | [package.metadata.docs.rs]
|
2711 3109 | all-features = true
|
2712 3110 | targets = ["x86_64-unknown-linux-gnu"]
|
2713 3111 | [dependencies.aws-credential-types]
|
2714 3112 | path = "../aws-credential-types"
|
2715 3113 | version = "1.2.4"
|
2716 3114 |
|
2717 3115 | [dependencies.aws-runtime]
|
2718 3116 | path = "../aws-runtime"
|
2719 3117 | version = "1.5.9"
|
2720 3118 |
|
2721 3119 | [dependencies.aws-smithy-async]
|
2722 3120 | path = "../aws-smithy-async"
|
2723 3121 | version = "1.2.5"
|
2724 3122 |
|
2725 3123 | [dependencies.aws-smithy-http]
|
2726 3124 | path = "../aws-smithy-http"
|
2727 - | version = "0.62.2"
|
3125 + | version = "0.62.3"
|
2728 3126 |
|
2729 3127 | [dependencies.aws-smithy-json]
|
2730 3128 | path = "../aws-smithy-json"
|
2731 3129 | version = "0.61.4"
|
2732 3130 |
|
2733 3131 | [dependencies.aws-smithy-runtime]
|
2734 3132 | path = "../aws-smithy-runtime"
|
2735 3133 | features = ["client"]
|
2736 3134 | version = "1.8.5"
|
2737 3135 |
|
2738 3136 | [dependencies.aws-smithy-runtime-api]
|
2739 3137 | path = "../aws-smithy-runtime-api"
|
2740 3138 | features = ["client", "http-02x"]
|
2741 3139 | version = "1.8.5"
|
2742 3140 |
|
2743 3141 | [dependencies.aws-smithy-types]
|
2744 3142 | path = "../aws-smithy-types"
|
2745 3143 | version = "1.3.2"
|
2746 3144 |
|
2747 3145 | [dependencies.aws-smithy-xml]
|
2748 3146 | path = "../aws-smithy-xml"
|
2749 3147 | version = "0.60.10"
|
2750 3148 |
|
2751 3149 | [dependencies.aws-types]
|
2752 3150 | path = "../aws-types"
|
2753 3151 | version = "1.3.8"
|
2754 3152 |
|
2755 3153 | [dependencies.fastrand]
|
2756 3154 | version = "2.0.0"
|
2757 3155 |
|
2758 3156 | diff --git a/tmp-codegen-diff/aws-sdk/sdk/sso/Cargo.toml b/tmp-codegen-diff/aws-sdk/sdk/sso/Cargo.toml
|
2759 3157 | index 2cde182..fc367f4 100644
|
2760 - | -- a/tmp-codegen-diff/aws-sdk/sdk/sso/Cargo.toml
|
3158 + | ++ b/tmp-codegen-diff/aws-sdk/sdk/sso/Cargo.toml
|
2761 3159 | @@ -1,61 +1,61 @@
|
2762 3160 | # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2763 3161 | [package]
|
2764 3162 | name = "aws-sdk-sso"
|
2765 3163 | version = "0.0.0-local"
|
2766 3164 | authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"]
|
2767 3165 | description = "AWS SDK for AWS Single Sign-On"
|
2768 3166 | edition = "2021"
|
2769 3167 | license = "Apache-2.0"
|
2770 3168 | repository = "https://github.com/awslabs/aws-sdk-rust"
|
2771 3169 | rust-version = "1.86.0"
|
2772 3170 | readme = "README.md"
|
2773 3171 | [package.metadata.smithy]
|
2774 3172 | codegen-version = "ci"
|
2775 3173 | [package.metadata.docs.rs]
|
2776 3174 | all-features = true
|
2777 3175 | targets = ["x86_64-unknown-linux-gnu"]
|
2778 3176 | [dependencies.aws-credential-types]
|
2779 3177 | path = "../aws-credential-types"
|
2780 3178 | version = "1.2.4"
|
2781 3179 |
|
2782 3180 | [dependencies.aws-runtime]
|
2783 3181 | path = "../aws-runtime"
|
2784 3182 | version = "1.5.9"
|
2785 3183 |
|
2786 3184 | [dependencies.aws-smithy-async]
|
2787 3185 | path = "../aws-smithy-async"
|
2788 3186 | version = "1.2.5"
|
2789 3187 |
|
2790 3188 | [dependencies.aws-smithy-http]
|
2791 3189 | path = "../aws-smithy-http"
|
2792 - | version = "0.62.2"
|
3190 + | version = "0.62.3"
|
2793 3191 |
|
2794 3192 | [dependencies.aws-smithy-json]
|
2795 3193 | path = "../aws-smithy-json"
|
2796 3194 | version = "0.61.4"
|
2797 3195 |
|
2798 3196 | [dependencies.aws-smithy-runtime]
|
2799 3197 | path = "../aws-smithy-runtime"
|
2800 3198 | features = ["client"]
|
2801 3199 | version = "1.8.5"
|
2802 3200 |
|
2803 3201 | [dependencies.aws-smithy-runtime-api]
|
2804 3202 | path = "../aws-smithy-runtime-api"
|
2805 3203 | features = ["client", "http-02x"]
|
2806 3204 | version = "1.8.5"
|
2807 3205 |
|
2808 3206 | [dependencies.aws-smithy-types]
|
2809 3207 | path = "../aws-smithy-types"
|
2810 3208 | version = "1.3.2"
|
2811 3209 |
|
2812 3210 | [dependencies.aws-types]
|
2813 3211 | path = "../aws-types"
|
2814 3212 | version = "1.3.8"
|
2815 3213 |
|
2816 3214 | [dependencies.bytes]
|
2817 3215 | version = "1.4.0"
|
2818 3216 |
|
2819 3217 | [dependencies.fastrand]
|
2820 3218 | version = "2.0.0"
|
2821 3219 |
|
2822 3220 | [dependencies.http]
|
2823 3221 | diff --git a/tmp-codegen-diff/aws-sdk/sdk/ssooidc/Cargo.toml b/tmp-codegen-diff/aws-sdk/sdk/ssooidc/Cargo.toml
|
2824 3222 | index 7a34c16..588d0bd 100644
|
2825 - | -- a/tmp-codegen-diff/aws-sdk/sdk/ssooidc/Cargo.toml
|
3223 + | ++ b/tmp-codegen-diff/aws-sdk/sdk/ssooidc/Cargo.toml
|
2826 3224 | @@ -1,61 +1,61 @@
|
2827 3225 | # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2828 3226 | [package]
|
2829 3227 | name = "aws-sdk-ssooidc"
|
2830 3228 | version = "0.0.0-local"
|
2831 3229 | authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"]
|
2832 3230 | description = "AWS SDK for AWS SSO OIDC"
|
2833 3231 | edition = "2021"
|
2834 3232 | license = "Apache-2.0"
|
2835 3233 | repository = "https://github.com/awslabs/aws-sdk-rust"
|
2836 3234 | rust-version = "1.86.0"
|
2837 3235 | readme = "README.md"
|
2838 3236 | [package.metadata.smithy]
|
2839 3237 | codegen-version = "ci"
|
2840 3238 | [package.metadata.docs.rs]
|
2841 3239 | all-features = true
|
2842 3240 | targets = ["x86_64-unknown-linux-gnu"]
|
2843 3241 | [dependencies.aws-credential-types]
|
2844 3242 | path = "../aws-credential-types"
|
2845 3243 | version = "1.2.4"
|
2846 3244 |
|
2847 3245 | [dependencies.aws-runtime]
|
2848 3246 | path = "../aws-runtime"
|
2849 3247 | version = "1.5.9"
|
2850 3248 |
|
2851 3249 | [dependencies.aws-smithy-async]
|
2852 3250 | path = "../aws-smithy-async"
|
2853 3251 | version = "1.2.5"
|
2854 3252 |
|
2855 3253 | [dependencies.aws-smithy-http]
|
2856 3254 | path = "../aws-smithy-http"
|
2857 - | version = "0.62.2"
|
3255 + | version = "0.62.3"
|
2858 3256 |
|
2859 3257 | [dependencies.aws-smithy-json]
|
2860 3258 | path = "../aws-smithy-json"
|
2861 3259 | version = "0.61.4"
|
2862 3260 |
|
2863 3261 | [dependencies.aws-smithy-runtime]
|
2864 3262 | path = "../aws-smithy-runtime"
|
2865 3263 | features = ["client"]
|
2866 3264 | version = "1.8.5"
|
2867 3265 |
|
2868 3266 | [dependencies.aws-smithy-runtime-api]
|
2869 3267 | path = "../aws-smithy-runtime-api"
|
2870 3268 | features = ["client", "http-02x"]
|
2871 3269 | version = "1.8.5"
|
2872 3270 |
|
2873 3271 | [dependencies.aws-smithy-types]
|
2874 3272 | path = "../aws-smithy-types"
|
2875 3273 | version = "1.3.2"
|
2876 3274 |
|
2877 3275 | [dependencies.aws-types]
|
2878 3276 | path = "../aws-types"
|
2879 3277 | version = "1.3.8"
|
2880 3278 |
|
2881 3279 | [dependencies.bytes]
|
2882 3280 | version = "1.4.0"
|
2883 3281 |
|
2884 3282 | [dependencies.fastrand]
|
2885 3283 | version = "2.0.0"
|
2886 3284 |
|
2887 3285 | [dependencies.http]
|
2888 3286 | diff --git a/tmp-codegen-diff/aws-sdk/sdk/sts/Cargo.toml b/tmp-codegen-diff/aws-sdk/sdk/sts/Cargo.toml
|
2889 3287 | index 895dfb3..f2ce34e 100644
|
2890 - | -- a/tmp-codegen-diff/aws-sdk/sdk/sts/Cargo.toml
|
3288 + | ++ b/tmp-codegen-diff/aws-sdk/sdk/sts/Cargo.toml
|
2891 3289 | @@ -1,61 +1,61 @@
|
2892 3290 | # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2893 3291 | [package]
|
2894 3292 | name = "aws-sdk-sts"
|
2895 3293 | version = "0.0.0-local"
|
2896 3294 | authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"]
|
2897 3295 | description = "AWS SDK for AWS Security Token Service"
|
2898 3296 | edition = "2021"
|
2899 3297 | license = "Apache-2.0"
|
2900 3298 | repository = "https://github.com/awslabs/aws-sdk-rust"
|
2901 3299 | rust-version = "1.86.0"
|
2902 3300 | readme = "README.md"
|
2903 3301 | [package.metadata.smithy]
|
2904 3302 | codegen-version = "ci"
|
2905 3303 | [package.metadata.docs.rs]
|
2906 3304 | all-features = true
|
2907 3305 | targets = ["x86_64-unknown-linux-gnu"]
|
2908 3306 | [dependencies.aws-credential-types]
|
2909 3307 | path = "../aws-credential-types"
|
2910 3308 | version = "1.2.4"
|
2911 3309 |
|
2912 3310 | [dependencies.aws-runtime]
|
2913 3311 | path = "../aws-runtime"
|
2914 3312 | version = "1.5.9"
|
2915 3313 |
|
2916 3314 | [dependencies.aws-smithy-async]
|
2917 3315 | path = "../aws-smithy-async"
|
2918 3316 | version = "1.2.5"
|
2919 3317 |
|
2920 3318 | [dependencies.aws-smithy-http]
|
2921 3319 | path = "../aws-smithy-http"
|
2922 - | version = "0.62.2"
|
3320 + | version = "0.62.3"
|
2923 3321 |
|
2924 3322 | [dependencies.aws-smithy-json]
|
2925 3323 | path = "../aws-smithy-json"
|
2926 3324 | version = "0.61.4"
|
2927 3325 |
|
2928 3326 | [dependencies.aws-smithy-query]
|
2929 3327 | path = "../aws-smithy-query"
|
2930 3328 | version = "0.60.7"
|
2931 3329 |
|
2932 3330 | [dependencies.aws-smithy-runtime]
|
2933 3331 | path = "../aws-smithy-runtime"
|
2934 3332 | features = ["client"]
|
2935 3333 | version = "1.8.5"
|
2936 3334 |
|
2937 3335 | [dependencies.aws-smithy-runtime-api]
|
2938 3336 | path = "../aws-smithy-runtime-api"
|
2939 3337 | features = ["client", "http-02x"]
|
2940 3338 | version = "1.8.5"
|
2941 3339 |
|
2942 3340 | [dependencies.aws-smithy-types]
|
2943 3341 | path = "../aws-smithy-types"
|
2944 3342 | version = "1.3.2"
|
2945 3343 |
|
2946 3344 | [dependencies.aws-smithy-xml]
|
2947 3345 | path = "../aws-smithy-xml"
|
2948 3346 | version = "0.60.10"
|
2949 3347 |
|
2950 3348 | [dependencies.aws-types]
|
2951 3349 | path = "../aws-types"
|
2952 3350 | version = "1.3.8"
|
2953 3351 | diff --git a/tmp-codegen-diff/aws-sdk/sdk/timestreamquery/Cargo.toml b/tmp-codegen-diff/aws-sdk/sdk/timestreamquery/Cargo.toml
|
2954 3352 | index d556561..91178b6 100644
|
2955 - | -- a/tmp-codegen-diff/aws-sdk/sdk/timestreamquery/Cargo.toml
|
3353 + | ++ b/tmp-codegen-diff/aws-sdk/sdk/timestreamquery/Cargo.toml
|
2956 3354 | @@ -1,61 +1,61 @@
|
2957 3355 | # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2958 3356 | [package]
|
2959 3357 | name = "aws-sdk-timestreamquery"
|
2960 3358 | version = "0.0.0-local"
|
2961 3359 | authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"]
|
2962 3360 | description = "AWS SDK for Amazon Timestream Query"
|
2963 3361 | edition = "2021"
|
2964 3362 | license = "Apache-2.0"
|
2965 3363 | repository = "https://github.com/awslabs/aws-sdk-rust"
|
2966 3364 | rust-version = "1.86.0"
|
2967 3365 | readme = "README.md"
|
2968 3366 | [package.metadata.smithy]
|
2969 3367 | codegen-version = "ci"
|
2970 3368 | [package.metadata.docs.rs]
|
2971 3369 | all-features = true
|
2972 3370 | targets = ["x86_64-unknown-linux-gnu"]
|
2973 3371 | [dependencies.aws-credential-types]
|
2974 3372 | path = "../aws-credential-types"
|
2975 3373 | version = "1.2.4"
|
2976 3374 |
|
2977 3375 | [dependencies.aws-runtime]
|
2978 3376 | path = "../aws-runtime"
|
2979 3377 | version = "1.5.9"
|
2980 3378 |
|
2981 3379 | [dependencies.aws-smithy-async]
|
2982 3380 | path = "../aws-smithy-async"
|
2983 3381 | version = "1.2.5"
|
2984 3382 |
|
2985 3383 | [dependencies.aws-smithy-http]
|
2986 3384 | path = "../aws-smithy-http"
|
2987 - | version = "0.62.2"
|
3385 + | version = "0.62.3"
|
2988 3386 |
|
2989 3387 | [dependencies.aws-smithy-json]
|
2990 3388 | path = "../aws-smithy-json"
|
2991 3389 | version = "0.61.4"
|
2992 3390 |
|
2993 3391 | [dependencies.aws-smithy-runtime]
|
2994 3392 | path = "../aws-smithy-runtime"
|
2995 3393 | features = ["client"]
|
2996 3394 | version = "1.8.5"
|
2997 3395 |
|
2998 3396 | [dependencies.aws-smithy-runtime-api]
|
2999 3397 | path = "../aws-smithy-runtime-api"
|
3000 3398 | features = ["client", "http-02x"]
|
3001 3399 | version = "1.8.5"
|
3002 3400 |
|
3003 3401 | [dependencies.aws-smithy-types]
|
3004 3402 | path = "../aws-smithy-types"
|
3005 3403 | version = "1.3.2"
|
3006 3404 |
|
3007 3405 | [dependencies.aws-types]
|
3008 3406 | path = "../aws-types"
|
3009 3407 | version = "1.3.8"
|
3010 3408 |
|
3011 3409 | [dependencies.bytes]
|
3012 3410 | version = "1.4.0"
|
3013 3411 |
|
3014 3412 | [dependencies.fastrand]
|
3015 3413 | version = "2.0.0"
|
3016 3414 |
|
3017 3415 | [dependencies.http]
|
3018 3416 | diff --git a/tmp-codegen-diff/aws-sdk/sdk/timestreamwrite/Cargo.toml b/tmp-codegen-diff/aws-sdk/sdk/timestreamwrite/Cargo.toml
|
3019 3417 | index 0c56e4c..95731e3 100644
|
3020 - | -- a/tmp-codegen-diff/aws-sdk/sdk/timestreamwrite/Cargo.toml
|
3418 + | ++ b/tmp-codegen-diff/aws-sdk/sdk/timestreamwrite/Cargo.toml
|
3021 3419 | @@ -1,61 +1,61 @@
|
3022 3420 | # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
3023 3421 | [package]
|
3024 3422 | name = "aws-sdk-timestreamwrite"
|
3025 3423 | version = "0.0.0-local"
|
3026 3424 | authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"]
|
3027 3425 | description = "AWS SDK for Amazon Timestream Write"
|
3028 3426 | edition = "2021"
|
3029 3427 | license = "Apache-2.0"
|
3030 3428 | repository = "https://github.com/awslabs/aws-sdk-rust"
|
3031 3429 | rust-version = "1.86.0"
|
3032 3430 | readme = "README.md"
|
3033 3431 | [package.metadata.smithy]
|
3034 3432 | codegen-version = "ci"
|
3035 3433 | [package.metadata.docs.rs]
|
3036 3434 | all-features = true
|
3037 3435 | targets = ["x86_64-unknown-linux-gnu"]
|
3038 3436 | [dependencies.aws-credential-types]
|
3039 3437 | path = "../aws-credential-types"
|
3040 3438 | version = "1.2.4"
|
3041 3439 |
|
3042 3440 | [dependencies.aws-runtime]
|
3043 3441 | path = "../aws-runtime"
|
3044 3442 | version = "1.5.9"
|
3045 3443 |
|
3046 3444 | [dependencies.aws-smithy-async]
|
3047 3445 | path = "../aws-smithy-async"
|
3048 3446 | version = "1.2.5"
|
3049 3447 |
|
3050 3448 | [dependencies.aws-smithy-http]
|
3051 3449 | path = "../aws-smithy-http"
|
3052 - | version = "0.62.2"
|
3450 + | version = "0.62.3"
|
3053 3451 |
|
3054 3452 | [dependencies.aws-smithy-json]
|
3055 3453 | path = "../aws-smithy-json"
|
3056 3454 | version = "0.61.4"
|
3057 3455 |
|
3058 3456 | [dependencies.aws-smithy-runtime]
|
3059 3457 | path = "../aws-smithy-runtime"
|
3060 3458 | features = ["client"]
|
3061 3459 | version = "1.8.5"
|
3062 3460 |
|
3063 3461 | [dependencies.aws-smithy-runtime-api]
|
3064 3462 | path = "../aws-smithy-runtime-api"
|
3065 3463 | features = ["client", "http-02x"]
|
3066 3464 | version = "1.8.5"
|
3067 3465 |
|
3068 3466 | [dependencies.aws-smithy-types]
|
3069 3467 | path = "../aws-smithy-types"
|
3070 3468 | version = "1.3.2"
|
3071 3469 |
|
3072 3470 | [dependencies.aws-types]
|
3073 3471 | path = "../aws-types"
|
3074 3472 | version = "1.3.8"
|
3075 3473 |
|
3076 3474 | [dependencies.bytes]
|
3077 3475 | version = "1.4.0"
|
3078 3476 |
|
3079 3477 | [dependencies.fastrand]
|
3080 3478 | version = "2.0.0"
|
3081 3479 |
|
3082 3480 | [dependencies.http]
|
3083 3481 | diff --git a/tmp-codegen-diff/aws-sdk/sdk/transcribestreaming/Cargo.toml b/tmp-codegen-diff/aws-sdk/sdk/transcribestreaming/Cargo.toml
|
3084 3482 | index 5b35037..9fb220a 100644
|
3085 - | -- a/tmp-codegen-diff/aws-sdk/sdk/transcribestreaming/Cargo.toml
|
3483 + | ++ b/tmp-codegen-diff/aws-sdk/sdk/transcribestreaming/Cargo.toml
|
3086 3484 | @@ -1,71 +1,71 @@
|
3087 3485 | # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
3088 3486 | [package]
|
3089 3487 | name = "aws-sdk-transcribestreaming"
|
3090 3488 | version = "0.0.0-local"
|
3091 3489 | authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"]
|
3092 3490 | description = "AWS SDK for Amazon Transcribe Streaming Service"
|
3093 3491 | edition = "2021"
|
3094 3492 | license = "Apache-2.0"
|
3095 3493 | repository = "https://github.com/awslabs/aws-sdk-rust"
|
3096 3494 | rust-version = "1.86.0"
|
3097 3495 | readme = "README.md"
|
3098 3496 | [package.metadata.smithy]
|
3099 3497 | codegen-version = "ci"
|
3100 3498 | [package.metadata.docs.rs]
|
3101 3499 | all-features = true
|
3102 3500 | targets = ["x86_64-unknown-linux-gnu"]
|
3103 3501 | [dependencies.aws-credential-types]
|
3104 3502 | path = "../aws-credential-types"
|
3105 3503 | version = "1.2.4"
|
3106 3504 |
|
3107 3505 | [dependencies.aws-runtime]
|
3108 3506 | path = "../aws-runtime"
|
3109 3507 | features = ["event-stream"]
|
3110 3508 | version = "1.5.9"
|
3111 3509 |
|
3112 3510 | [dependencies.aws-sigv4]
|
3113 3511 | path = "../aws-sigv4"
|
3114 - | version = "1.3.3"
|
3512 + | version = "1.3.4"
|
3115 3513 |
|
3116 3514 | [dependencies.aws-smithy-async]
|
3117 3515 | path = "../aws-smithy-async"
|
3118 3516 | version = "1.2.5"
|
3119 3517 |
|
3120 3518 | [dependencies.aws-smithy-eventstream]
|
3121 3519 | path = "../aws-smithy-eventstream"
|
3122 3520 | version = "0.60.10"
|
3123 3521 |
|
3124 3522 | [dependencies.aws-smithy-http]
|
3125 3523 | path = "../aws-smithy-http"
|
3126 3524 | features = ["event-stream"]
|
3127 - | version = "0.62.2"
|
3525 + | version = "0.62.3"
|
3128 3526 |
|
3129 3527 | [dependencies.aws-smithy-json]
|
3130 3528 | path = "../aws-smithy-json"
|
3131 3529 | version = "0.61.4"
|
3132 3530 |
|
3133 3531 | [dependencies.aws-smithy-runtime]
|
3134 3532 | path = "../aws-smithy-runtime"
|
3135 3533 | features = ["client"]
|
3136 3534 | version = "1.8.5"
|
3137 3535 |
|