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