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