diff --git a/Cargo.lock b/Cargo.lock index 317d07819..5aef5a561 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -233,9 +233,9 @@ checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53" [[package]] name = "aws-config" -version = "1.8.17" +version = "1.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "517aa062d8bd9015ee23d6daa5e1c1372328412fdae4e6c4c1be9b69c6ad37a2" +checksum = "b8d7b388a9fc3a6db15a5ec778c38b354eff1364882c94d08e0252f7a47dcaa4" dependencies = [ "aws-credential-types", "aws-runtime", @@ -264,9 +264,8 @@ dependencies = [ [[package]] name = "aws-credential-types" -version = "1.2.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f20799b373a1be121fe3005fba0c2090af9411573878f224df44b42727fcaf7" +version = "1.3.0" +source = "git+https://github.com/pgdogdev/smithy-rs?branch=jk-sigv4-fips#b68fb7b956e385be52fdc0c970dd3d764b0264a3" dependencies = [ "aws-smithy-async", "aws-smithy-runtime-api", @@ -315,9 +314,9 @@ dependencies = [ [[package]] name = "aws-runtime" -version = "1.7.4" +version = "1.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77ed8e8c52d2dc2390ad9f15647fe663f71e9780b4262c190fbb823a32721566" +checksum = "25b43ad47adc2517efe3d706559d94b97e50e80e0321b3cadbc9f77cee88adcd" dependencies = [ "aws-credential-types", "aws-sigv4", @@ -331,7 +330,7 @@ dependencies = [ "bytes-utils", "fastrand", "http 1.4.1", - "http-body 1.0.1", + "http-body", "percent-encoding", "pin-project-lite", "tracing", @@ -340,10 +339,11 @@ dependencies = [ [[package]] name = "aws-sdk-rds" -version = "1.133.0" +version = "1.150.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "771b66b9bb389122e755ade08ea15fa490ce0813a92b43fe828dc65b6284cdec" +checksum = "3d560235a691d142244d311323053d45d2f989e2d3a91d46f1339318199a9392" dependencies = [ + "arc-swap", "aws-credential-types", "aws-runtime", "aws-sigv4", @@ -354,6 +354,7 @@ dependencies = [ "aws-smithy-query", "aws-smithy-runtime", "aws-smithy-runtime-api", + "aws-smithy-schema", "aws-smithy-types", "aws-smithy-xml", "aws-types", @@ -367,10 +368,11 @@ dependencies = [ [[package]] name = "aws-sdk-sso" -version = "1.99.0" +version = "1.111.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f4055e6099b2ec264abdc0d9bbfffce306c1601809275c861594779a0b04b45" +checksum = "65700d75f6da78c89a61a49f1539979400a4609d3329376b1dc2133d7a1b2b90" dependencies = [ + "arc-swap", "aws-credential-types", "aws-runtime", "aws-smithy-async", @@ -379,6 +381,7 @@ dependencies = [ "aws-smithy-observability", "aws-smithy-runtime", "aws-smithy-runtime-api", + "aws-smithy-schema", "aws-smithy-types", "aws-types", "bytes", @@ -391,10 +394,11 @@ dependencies = [ [[package]] name = "aws-sdk-ssooidc" -version = "1.101.0" +version = "1.113.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "02f009ba0284c5d696425fd7b4dcc5b189f5726f4041b7a5794daecb3a68d598" +checksum = "eb1147c254af7b6cee3ace90ae7da6f21366ce9a9b899035fa8a0fdf586eb75a" dependencies = [ + "arc-swap", "aws-credential-types", "aws-runtime", "aws-smithy-async", @@ -403,6 +407,7 @@ dependencies = [ "aws-smithy-observability", "aws-smithy-runtime", "aws-smithy-runtime-api", + "aws-smithy-schema", "aws-smithy-types", "aws-types", "bytes", @@ -415,10 +420,11 @@ dependencies = [ [[package]] name = "aws-sdk-sts" -version = "1.104.0" +version = "1.116.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6aa6622798e19e6a76b690562085dd4771c736cd48343464a53ab4ae2f2c9f84" +checksum = "035c7392e751d20bf1060d625d023587eb14099646110a9cff7c697bfe4b253a" dependencies = [ + "arc-swap", "aws-credential-types", "aws-runtime", "aws-smithy-async", @@ -428,6 +434,7 @@ dependencies = [ "aws-smithy-query", "aws-smithy-runtime", "aws-smithy-runtime-api", + "aws-smithy-schema", "aws-smithy-types", "aws-smithy-xml", "aws-types", @@ -440,11 +447,11 @@ dependencies = [ [[package]] name = "aws-sigv4" -version = "1.4.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b7083fb918b38474ac65ffbf8a69fc8792d36879f4ac5f1667b43aec61efe9a5" +version = "1.6.0" +source = "git+https://github.com/pgdogdev/smithy-rs?branch=jk-sigv4-fips#b68fb7b956e385be52fdc0c970dd3d764b0264a3" dependencies = [ "aws-credential-types", + "aws-lc-rs", "aws-smithy-http", "aws-smithy-runtime-api", "aws-smithy-types", @@ -462,9 +469,8 @@ dependencies = [ [[package]] name = "aws-smithy-async" -version = "1.2.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2ffcaf626bdda484571968400c326a244598634dc75fd451325a54ad1a59acfc" +version = "1.3.0" +source = "git+https://github.com/pgdogdev/smithy-rs?branch=jk-sigv4-fips#b68fb7b956e385be52fdc0c970dd3d764b0264a3" dependencies = [ "futures-util", "pin-project-lite", @@ -473,9 +479,8 @@ dependencies = [ [[package]] name = "aws-smithy-http" -version = "0.63.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba1ab2dc1c2c3749ead27180d333c42f11be8b0e934058fb4b2258ee8dbe5231" +version = "0.64.0" +source = "git+https://github.com/pgdogdev/smithy-rs?branch=jk-sigv4-fips#b68fb7b956e385be52fdc0c970dd3d764b0264a3" dependencies = [ "aws-smithy-runtime-api", "aws-smithy-types", @@ -484,7 +489,7 @@ dependencies = [ "futures-core", "futures-util", "http 1.4.1", - "http-body 1.0.1", + "http-body", "http-body-util", "percent-encoding", "pin-project-lite", @@ -494,9 +499,9 @@ dependencies = [ [[package]] name = "aws-smithy-http-client" -version = "1.1.12" +version = "1.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a2f165a7feee6f263028b899d0a181987f4fa7179a6411a32a439fba7c5f769" +checksum = "7bd25384a4e437aa8d8f339afad4b69e786b936a7cb10db668a7aaf66717b1a8" dependencies = [ "aws-smithy-async", "aws-smithy-runtime-api", @@ -518,9 +523,9 @@ dependencies = [ [[package]] name = "aws-smithy-json" -version = "0.62.6" +version = "0.63.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "517089205f18ab4adc5a3e02888cb139bbbbb2e168eac9f396216925d1fbeaf5" +checksum = "3385d469edbe8b60cc72002784652b5efca39178192aa9cc4b44c9875c6bdc18" dependencies = [ "aws-smithy-runtime-api", "aws-smithy-schema", @@ -529,28 +534,31 @@ dependencies = [ [[package]] name = "aws-smithy-observability" -version = "0.2.6" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a06c2315d173edbf1920da8ba3a7189695827002e4c0fc961973ab1c54abca9c" +checksum = "8e86338c869539a581bf161247762a6e87f92c5c075060057b5ed6d06632ed0c" dependencies = [ "aws-smithy-runtime-api", ] [[package]] name = "aws-smithy-query" -version = "0.60.15" +version = "0.62.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a56d79744fb3edb5d722ef79d86081e121d3b9422cb209eb03aea6aa4f21ebd" +checksum = "f1d1d71f6562be974caa85442ecd90194c40fdb5df045f182a6c2e872ce95056" dependencies = [ + "aws-smithy-runtime-api", + "aws-smithy-schema", "aws-smithy-types", + "aws-smithy-xml", "urlencoding", ] [[package]] name = "aws-smithy-runtime" -version = "1.11.3" +version = "1.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b8e6f5caf6fea86f8c2206541ab5857cfcda9013426cdbe8fa0098b9e2d32182" +checksum = "591e0024cdf2a8de8711860f7e1d5cfbca26b800ce13793a9aa2f4f5918e6d95" dependencies = [ "aws-smithy-async", "aws-smithy-http", @@ -561,10 +569,8 @@ dependencies = [ "aws-smithy-types", "bytes", "fastrand", - "http 0.2.12", "http 1.4.1", - "http-body 0.4.6", - "http-body 1.0.1", + "http-body", "http-body-util", "pin-project-lite", "pin-utils", @@ -574,15 +580,13 @@ dependencies = [ [[package]] name = "aws-smithy-runtime-api" -version = "1.12.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc117c179ecf39a62a0a3f49f600e9ac26a7ad7dd172177999f83933af776c32" +version = "1.17.0" +source = "git+https://github.com/pgdogdev/smithy-rs?branch=jk-sigv4-fips#b68fb7b956e385be52fdc0c970dd3d764b0264a3" dependencies = [ "aws-smithy-async", "aws-smithy-runtime-api-macros", "aws-smithy-types", "bytes", - "http 0.2.12", "http 1.4.1", "pin-project-lite", "tokio", @@ -592,9 +596,8 @@ dependencies = [ [[package]] name = "aws-smithy-runtime-api-macros" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d7396fd9500589e62e460e987ecb671bad374934e55ec3b5f498cc7a8a8a7b7" +version = "1.1.0" +source = "git+https://github.com/pgdogdev/smithy-rs?branch=jk-sigv4-fips#b68fb7b956e385be52fdc0c970dd3d764b0264a3" dependencies = [ "proc-macro2", "quote", @@ -603,9 +606,9 @@ dependencies = [ [[package]] name = "aws-smithy-schema" -version = "0.1.0" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7442cb268338f0eb8278140a107c046756aa01093d8ef5e99628d34ae09c94f5" +checksum = "e8f395d93304280b64b7632fea798d177e74897fe7f063416ce627cd6fa24829" dependencies = [ "aws-smithy-runtime-api", "aws-smithy-types", @@ -614,17 +617,14 @@ dependencies = [ [[package]] name = "aws-smithy-types" -version = "1.4.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "056b66dbce2f81cc0c1e2b05bb402eb58f8a3530479d650efadd5bbae9a4050b" +version = "1.8.0" +source = "git+https://github.com/pgdogdev/smithy-rs?branch=jk-sigv4-fips#b68fb7b956e385be52fdc0c970dd3d764b0264a3" dependencies = [ "base64-simd", "bytes", "bytes-utils", - "http 0.2.12", "http 1.4.1", - "http-body 0.4.6", - "http-body 1.0.1", + "http-body", "http-body-util", "itoa", "num-integer", @@ -637,18 +637,21 @@ dependencies = [ [[package]] name = "aws-smithy-xml" -version = "0.60.15" +version = "0.62.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ce02add1aa3677d022f8adf81dcbe3046a95f17a1b1e8979c145cd21d3d22b3" +checksum = "0b932c8d6dc127fc980eecd78f8694ae9b9551b69a93a7def2a199c1c0033daf" dependencies = [ + "aws-smithy-runtime-api", + "aws-smithy-schema", + "aws-smithy-types", "xmlparser", ] [[package]] name = "aws-types" -version = "1.3.16" +version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d16bf10b03a3c01e6b3b7d47cd964e873ffe9e7d4e80fad16bd4c077cb068531" +checksum = "209f3a6d82a6e9e5f94abbed94c7a26e1c052341002bf57a5fb5481f625896fc" dependencies = [ "aws-credential-types", "aws-smithy-async", @@ -1106,7 +1109,7 @@ version = "3.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "faf9468729b8cbcea668e36183cb69d317348c2e08e994829fb56ebfdfbaac34" dependencies = [ - "windows-sys 0.61.2", + "windows-sys 0.48.0", ] [[package]] @@ -2160,17 +2163,6 @@ dependencies = [ "itoa", ] -[[package]] -name = "http-body" -version = "0.4.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ceab25649e9960c0311ea418d17bee82c0dcec1bd053b5f9a66e265a693bed2" -dependencies = [ - "bytes", - "http 0.2.12", - "pin-project-lite", -] - [[package]] name = "http-body" version = "1.0.1" @@ -2190,7 +2182,7 @@ dependencies = [ "bytes", "futures-core", "http 1.4.1", - "http-body 1.0.1", + "http-body", "pin-project-lite", ] @@ -2227,7 +2219,7 @@ dependencies = [ "futures-core", "h2", "http 1.4.1", - "http-body 1.0.1", + "http-body", "httparse", "httpdate", "itoa", @@ -2264,7 +2256,7 @@ dependencies = [ "futures-channel", "futures-util", "http 1.4.1", - "http-body 1.0.1", + "http-body", "hyper", "ipnet", "libc", @@ -3117,6 +3109,7 @@ dependencies = [ "aws-config", "aws-lc-rs", "aws-sdk-rds", + "aws-sigv4", "azure_core", "azure_identity", "base64 0.22.1", @@ -3798,7 +3791,7 @@ dependencies = [ "futures-util", "h2", "http 1.4.1", - "http-body 1.0.1", + "http-body", "http-body-util", "hyper", "hyper-rustls", @@ -5124,7 +5117,7 @@ dependencies = [ "futures-core", "futures-util", "http 1.4.1", - "http-body 1.0.1", + "http-body", "http-body-util", "pin-project-lite", "tokio", @@ -5667,7 +5660,7 @@ version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" dependencies = [ - "windows-sys 0.61.2", + "windows-sys 0.48.0", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index c4d70ad10..88e93d332 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -35,6 +35,15 @@ uuid = { version = "1", features = ["v4", "v7", "serde"] } parking_lot = "0.12" futures-util = "0.3.32" +# This ensures that our fork of smithy-rs is used for all of the AWS SDK. +[patch.crates-io] +aws-sigv4 = { git = "https://github.com/pgdogdev/smithy-rs", branch = "jk-sigv4-fips" } +aws-credential-types = { git = "https://github.com/pgdogdev/smithy-rs", branch = "jk-sigv4-fips" } +aws-smithy-async = { git = "https://github.com/pgdogdev/smithy-rs", branch = "jk-sigv4-fips" } +aws-smithy-http = { git = "https://github.com/pgdogdev/smithy-rs", branch = "jk-sigv4-fips" } +aws-smithy-runtime-api = { git = "https://github.com/pgdogdev/smithy-rs", branch = "jk-sigv4-fips" } +aws-smithy-types = { git = "https://github.com/pgdogdev/smithy-rs", branch = "jk-sigv4-fips" } + # [patch.crates-io] # tokio = { path = "../tokio/tokio" } diff --git a/pgdog/Cargo.toml b/pgdog/Cargo.toml index 24ec5054e..fefa1e075 100644 --- a/pgdog/Cargo.toml +++ b/pgdog/Cargo.toml @@ -11,7 +11,7 @@ readme = "README.md" default-run = "pgdog" [features] -fips = ["tokio-rustls/fips"] +fips = ["tokio-rustls/fips", "aws-sigv4/fips"] [dependencies] bon.workspace = true @@ -69,6 +69,8 @@ moka = { version = "0.12", features = ["sync"] } derive_builder = "0.20.2" aws-config = { version = "1", features = ["behavior-version-latest"] } aws-sdk-rds = { version = "1", default-features = false } +aws-sigv4 = "1" + pgdog-config = { path = "../pgdog-config" } pgdog-vector = { path = "../pgdog-vector" } pgdog-stats = { path = "../pgdog-stats" }