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