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