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