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