AWS SDK

AWS SDK

rev. 3964b40d6806bc3f52bd311e2c791030c3325f2c

Files changed:

tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/src/sign/v4.rs

@@ -168,168 +219,221 @@
  188    188   
                    .ok_or_else(|| BuildError::new("settings are required"))?,
  189    189   
            })
  190    190   
        }
  191    191   
    }
  192    192   
}
  193    193   
  194    194   
#[cfg(test)]
  195    195   
mod tests {
  196    196   
    use super::{calculate_signature, generate_signing_key, sha256_hex_string};
  197    197   
    use crate::date_time::test_parsers::parse_date_time;
  198         -
    use crate::http_request::test;
  199    198   
  200    199   
    #[test]
  201    200   
    fn test_signature_calculation() {
  202    201   
        let secret = "wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY";
  203         -
        let creq = test::v4::test_canonical_request("iam");
         202  +
        let creq = r#"AWS4-HMAC-SHA256
         203  +
20150830T123600Z
         204  +
20150830/us-east-1/iam/aws4_request
         205  +
f536975d06c0309214f805bb90ccff089219ecd68b2577efef23edd43b7e1a59"#;
  204    206   
        let time = parse_date_time("20150830T123600Z").unwrap();
  205    207   
  206    208   
        let derived_key = generate_signing_key(secret, time, "us-east-1", "iam");
  207    209   
        let signature = calculate_signature(derived_key, creq.as_bytes());
  208    210   
  209    211   
        let expected = "5d672d79c15b13162d9279b0855cfba6789a8edb4c82c400e06b5924a6f2b5d7";
  210    212   
        assert_eq!(expected, &signature);
  211    213   
    }
  212    214   
  213    215   
    #[test]

tmp-codegen-diff/aws-sdk/sdk/aws-smithy-checksums/Cargo.toml

@@ -1,1 +43,43 @@
   20     20   
http = "0.2.9"
   21     21   
http-body = "0.4.5"
   22     22   
md-5 = "0.10"
   23     23   
pin-project-lite = "0.2.14"
   24     24   
sha1 = "0.10"
   25     25   
sha2 = "0.10"
   26     26   
tracing = "0.1.40"
   27     27   
   28     28   
[dependencies.aws-smithy-http]
   29     29   
path = "../aws-smithy-http"
   30         -
version = "0.62.2"
          30  +
version = "0.62.3"
   31     31   
   32     32   
[dependencies.aws-smithy-types]
   33     33   
path = "../aws-smithy-types"
   34     34   
version = "1.3.2"
   35     35   
   36     36   
[dev-dependencies]
   37     37   
bytes-utils = "0.1.2"
   38     38   
pretty_assertions = "1.3"
   39     39   
tracing-test = "0.2.1"
   40     40   

tmp-codegen-diff/aws-sdk/sdk/aws-smithy-http/Cargo.toml

@@ -1,1 +34,34 @@
    1      1   
# Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
[package]
    3      3   
name = "aws-smithy-http"
    4         -
version = "0.62.2"
           4  +
version = "0.62.3"
    5      5   
authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"]
    6      6   
description = "Smithy HTTP logic for smithy-rs."
    7      7   
edition = "2021"
    8      8   
license = "Apache-2.0"
    9      9   
repository = "https://github.com/smithy-lang/smithy-rs"
   10     10   
[package.metadata.docs.rs]
   11     11   
all-features = true
   12     12   
targets = ["x86_64-unknown-linux-gnu"]
   13     13   
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
   14     14   
rustdoc-args = ["--cfg", "docsrs"]

tmp-codegen-diff/aws-sdk/sdk/aws-smithy-http/fuzz/Cargo.toml

@@ -1,1 +27,27 @@
   14     14   
   15     15   
[package.metadata]
   16     16   
cargo-fuzz = true
   17     17   
   18     18   
[dependencies]
   19     19   
libfuzzer-sys = "=0.4.7"
   20     20   
http = "0.2.3"
   21     21   
   22     22   
[dependencies.aws-smithy-http]
   23     23   
path = ".."
   24         -
version = "0.62.2"
          24  +
version = "0.62.3"
   25     25   
   26     26   
[workspace]
   27     27   
members = ["."]

tmp-codegen-diff/aws-sdk/sdk/aws-smithy-http/src/query_writer.rs

@@ -25,25 +92,98 @@
   45     45   
    pub fn clear_params(&mut self) {
   46     46   
        if let Some(index) = self.new_path_and_query.find('?') {
   47     47   
            self.new_path_and_query.truncate(index);
   48     48   
            self.prefix = Some('?');
   49     49   
        }
   50     50   
    }
   51     51   
   52     52   
    /// Inserts a new query parameter. The key and value are percent encoded
   53     53   
    /// by `QueryWriter`. Passing in percent encoded values will result in double encoding.
   54     54   
    pub fn insert(&mut self, k: &str, v: &str) {
          55  +
        self.insert_encoded(&percent_encode_query(k), &percent_encode_query(v));
          56  +
    }
          57  +
    
          58  +
    /// Inserts a new already encoded query parameter. The key and value will be inserted
          59  +
    /// as is.
          60  +
    pub fn insert_encoded(&mut self, encoded_k: &str, encoded_v: &str) {
   55     61   
        if let Some(prefix) = self.prefix {
   56     62   
            self.new_path_and_query.push(prefix);
   57     63   
        }
   58     64   
        self.prefix = Some('&');
   59         -
        self.new_path_and_query.push_str(&percent_encode_query(k));
          65  +
        self.new_path_and_query.push_str(encoded_k);
   60     66   
        self.new_path_and_query.push('=');
   61         -
   62         -
        self.new_path_and_query.push_str(&percent_encode_query(v));
          67  +
        self.new_path_and_query.push_str(encoded_v)
          68  +
        
   63     69   
    }
   64     70   
   65     71   
    /// Returns just the built query string.
   66     72   
    pub fn build_query(self) -> String {
   67     73   
        self.build_uri().query().unwrap_or_default().to_string()
   68     74   
    }
   69     75   
   70     76   
    /// Returns a full [`Uri`] with the query string updated.
   71     77   
    pub fn build_uri(self) -> Uri {
   72     78   
        let mut parts = self.base_uri.into_parts();

tmp-codegen-diff/aws-sdk/sdk/aws-smithy-runtime/Cargo.toml

@@ -15,15 +75,75 @@
   35     35   
pin-project-lite = "0.2.14"
   36     36   
pin-utils = "0.1.0"
   37     37   
tracing = "0.1.40"
   38     38   
   39     39   
[dependencies.aws-smithy-async]
   40     40   
path = "../aws-smithy-async"
   41     41   
version = "1.2.5"
   42     42   
   43     43   
[dependencies.aws-smithy-http]
   44     44   
path = "../aws-smithy-http"
   45         -
version = "0.62.2"
          45  +
version = "0.62.3"
   46     46   
   47     47   
[dependencies.aws-smithy-observability]
   48     48   
path = "../aws-smithy-observability"
   49     49   
version = "0.1.3"
   50     50   
   51     51   
[dependencies.aws-smithy-runtime-api]
   52     52   
path = "../aws-smithy-runtime-api"
   53     53   
version = "1.8.5"
   54     54   
   55     55   
[dependencies.aws-smithy-types]

tmp-codegen-diff/aws-sdk/sdk/aws-smithy-wasm/Cargo.toml

@@ -1,1 +33,33 @@
   19     19   
tracing = "0.1.40"
   20     20   
wasi = "0.12.1"
   21     21   
   22     22   
[dependencies.aws-smithy-runtime-api]
   23     23   
path = "../aws-smithy-runtime-api"
   24     24   
features = ["http-1x"]
   25     25   
version = "1.8.5"
   26     26   
   27     27   
[dependencies.aws-smithy-http]
   28     28   
path = "../aws-smithy-http"
   29         -
version = "0.62.2"
          29  +
version = "0.62.3"
   30     30   
   31     31   
[dependencies.aws-smithy-types]
   32     32   
path = "../aws-smithy-types"
   33     33   
version = "1.3.2"

tmp-codegen-diff/aws-sdk/sdk/bedrockruntime/Cargo.toml

@@ -7,7 +67,67 @@
   27     27   
path = "../aws-smithy-async"
   28     28   
version = "1.2.5"
   29     29   
   30     30   
[dependencies.aws-smithy-eventstream]
   31     31   
path = "../aws-smithy-eventstream"
   32     32   
version = "0.60.10"
   33     33   
   34     34   
[dependencies.aws-smithy-http]
   35     35   
path = "../aws-smithy-http"
   36     36   
features = ["event-stream"]
   37         -
version = "0.62.2"
          37  +
version = "0.62.3"
   38     38   
   39     39   
[dependencies.aws-smithy-json]
   40     40   
path = "../aws-smithy-json"
   41     41   
version = "0.61.4"
   42     42   
   43     43   
[dependencies.aws-smithy-runtime]
   44     44   
path = "../aws-smithy-runtime"
   45     45   
features = ["client"]
   46     46   
version = "1.8.5"
   47     47   

tmp-codegen-diff/aws-sdk/sdk/cloudwatchlogs/Cargo.toml

@@ -7,7 +67,67 @@
   27     27   
path = "../aws-smithy-async"
   28     28   
version = "1.2.5"
   29     29   
   30     30   
[dependencies.aws-smithy-eventstream]
   31     31   
path = "../aws-smithy-eventstream"
   32     32   
version = "0.60.10"
   33     33   
   34     34   
[dependencies.aws-smithy-http]
   35     35   
path = "../aws-smithy-http"
   36     36   
features = ["event-stream"]
   37         -
version = "0.62.2"
          37  +
version = "0.62.3"
   38     38   
   39     39   
[dependencies.aws-smithy-json]
   40     40   
path = "../aws-smithy-json"
   41     41   
version = "0.61.4"
   42     42   
   43     43   
[dependencies.aws-smithy-runtime]
   44     44   
path = "../aws-smithy-runtime"
   45     45   
features = ["client"]
   46     46   
version = "1.8.5"
   47     47   

tmp-codegen-diff/aws-sdk/sdk/codecatalyst/Cargo.toml

@@ -1,1 +61,61 @@
   21     21   
[dependencies.aws-runtime]
   22     22   
path = "../aws-runtime"
   23     23   
version = "1.5.9"
   24     24   
   25     25   
[dependencies.aws-smithy-async]
   26     26   
path = "../aws-smithy-async"
   27     27   
version = "1.2.5"
   28     28   
   29     29   
[dependencies.aws-smithy-http]
   30     30   
path = "../aws-smithy-http"
   31         -
version = "0.62.2"
          31  +
version = "0.62.3"
   32     32   
   33     33   
[dependencies.aws-smithy-json]
   34     34   
path = "../aws-smithy-json"
   35     35   
version = "0.61.4"
   36     36   
   37     37   
[dependencies.aws-smithy-runtime]
   38     38   
path = "../aws-smithy-runtime"
   39     39   
features = ["client", "http-auth"]
   40     40   
version = "1.8.5"
   41     41   

tmp-codegen-diff/aws-sdk/sdk/config/Cargo.toml

@@ -1,1 +61,61 @@
   21     21   
[dependencies.aws-runtime]
   22     22   
path = "../aws-runtime"
   23     23   
version = "1.5.9"
   24     24   
   25     25   
[dependencies.aws-smithy-async]
   26     26   
path = "../aws-smithy-async"
   27     27   
version = "1.2.5"
   28     28   
   29     29   
[dependencies.aws-smithy-http]
   30     30   
path = "../aws-smithy-http"
   31         -
version = "0.62.2"
          31  +
version = "0.62.3"
   32     32   
   33     33   
[dependencies.aws-smithy-json]
   34     34   
path = "../aws-smithy-json"
   35     35   
version = "0.61.4"
   36     36   
   37     37   
[dependencies.aws-smithy-runtime]
   38     38   
path = "../aws-smithy-runtime"
   39     39   
features = ["client"]
   40     40   
version = "1.8.5"
   41     41   

tmp-codegen-diff/aws-sdk/sdk/dynamodb/Cargo.toml

@@ -1,1 +61,61 @@
   21     21   
[dependencies.aws-runtime]
   22     22   
path = "../aws-runtime"
   23     23   
version = "1.5.9"
   24     24   
   25     25   
[dependencies.aws-smithy-async]
   26     26   
path = "../aws-smithy-async"
   27     27   
version = "1.2.5"
   28     28   
   29     29   
[dependencies.aws-smithy-http]
   30     30   
path = "../aws-smithy-http"
   31         -
version = "0.62.2"
          31  +
version = "0.62.3"
   32     32   
   33     33   
[dependencies.aws-smithy-json]
   34     34   
path = "../aws-smithy-json"
   35     35   
version = "0.61.4"
   36     36   
   37     37   
[dependencies.aws-smithy-runtime]
   38     38   
path = "../aws-smithy-runtime"
   39     39   
features = ["client"]
   40     40   
version = "1.8.5"
   41     41   

tmp-codegen-diff/aws-sdk/sdk/ec2/Cargo.toml

@@ -1,1 +61,61 @@
   21     21   
[dependencies.aws-runtime]
   22     22   
path = "../aws-runtime"
   23     23   
version = "1.5.9"
   24     24   
   25     25   
[dependencies.aws-smithy-async]
   26     26   
path = "../aws-smithy-async"
   27     27   
version = "1.2.5"
   28     28   
   29     29   
[dependencies.aws-smithy-http]
   30     30   
path = "../aws-smithy-http"
   31         -
version = "0.62.2"
          31  +
version = "0.62.3"
   32     32   
   33     33   
[dependencies.aws-smithy-json]
   34     34   
path = "../aws-smithy-json"
   35     35   
version = "0.61.4"
   36     36   
   37     37   
[dependencies.aws-smithy-query]
   38     38   
path = "../aws-smithy-query"
   39     39   
version = "0.60.7"
   40     40   
   41     41   
[dependencies.aws-smithy-runtime]

tmp-codegen-diff/aws-sdk/sdk/ecs/Cargo.toml

@@ -1,1 +61,61 @@
   21     21   
[dependencies.aws-runtime]
   22     22   
path = "../aws-runtime"
   23     23   
version = "1.5.9"
   24     24   
   25     25   
[dependencies.aws-smithy-async]
   26     26   
path = "../aws-smithy-async"
   27     27   
version = "1.2.5"
   28     28   
   29     29   
[dependencies.aws-smithy-http]
   30     30   
path = "../aws-smithy-http"
   31         -
version = "0.62.2"
          31  +
version = "0.62.3"
   32     32   
   33     33   
[dependencies.aws-smithy-json]
   34     34   
path = "../aws-smithy-json"
   35     35   
version = "0.61.4"
   36     36   
   37     37   
[dependencies.aws-smithy-runtime]
   38     38   
path = "../aws-smithy-runtime"
   39     39   
features = ["client"]
   40     40   
version = "1.8.5"
   41     41   

tmp-codegen-diff/aws-sdk/sdk/glacier/Cargo.toml

@@ -1,1 +65,65 @@
   17     17   
[dependencies.aws-credential-types]
   18     18   
path = "../aws-credential-types"
   19     19   
version = "1.2.4"
   20     20   
   21     21   
[dependencies.aws-runtime]
   22     22   
path = "../aws-runtime"
   23     23   
version = "1.5.9"
   24     24   
   25     25   
[dependencies.aws-sigv4]
   26     26   
path = "../aws-sigv4"
   27         -
version = "1.3.3"
          27  +
version = "1.3.4"
   28     28   
   29     29   
[dependencies.aws-smithy-async]
   30     30   
path = "../aws-smithy-async"
   31     31   
version = "1.2.5"
   32     32   
   33     33   
[dependencies.aws-smithy-http]
   34     34   
path = "../aws-smithy-http"
   35         -
version = "0.62.2"
          35  +
version = "0.62.3"
   36     36   
   37     37   
[dependencies.aws-smithy-json]
   38     38   
path = "../aws-smithy-json"
   39     39   
version = "0.61.4"
   40     40   
   41     41   
[dependencies.aws-smithy-runtime]
   42     42   
path = "../aws-smithy-runtime"
   43     43   
features = ["client"]
   44     44   
version = "1.8.5"
   45     45   

tmp-codegen-diff/aws-sdk/sdk/iam/Cargo.toml

@@ -1,1 +61,61 @@
   21     21   
[dependencies.aws-runtime]
   22     22   
path = "../aws-runtime"
   23     23   
version = "1.5.9"
   24     24   
   25     25   
[dependencies.aws-smithy-async]
   26     26   
path = "../aws-smithy-async"
   27     27   
version = "1.2.5"
   28     28   
   29     29   
[dependencies.aws-smithy-http]
   30     30   
path = "../aws-smithy-http"
   31         -
version = "0.62.2"
          31  +
version = "0.62.3"
   32     32   
   33     33   
[dependencies.aws-smithy-json]
   34     34   
path = "../aws-smithy-json"
   35     35   
version = "0.61.4"
   36     36   
   37     37   
[dependencies.aws-smithy-query]
   38     38   
path = "../aws-smithy-query"
   39     39   
version = "0.60.7"
   40     40   
   41     41   
[dependencies.aws-smithy-runtime]