diff --git a/bridge/Cargo.lock b/bridge/Cargo.lock index 3afbf8927..1bc8a60fa 100644 --- a/bridge/Cargo.lock +++ b/bridge/Cargo.lock @@ -5265,6 +5265,17 @@ dependencies = [ "thiserror", ] +[[package]] +name = "serde_repr" +version = "0.1.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3081f5ffbb02284dda55132aa26daecedd7372a42417bbbab6f14ab7d6bb9145" +dependencies = [ + "proc-macro2 1.0.66", + "quote 1.0.32", + "syn 2.0.32", +] + [[package]] name = "serde_urlencoded" version = "0.7.1" @@ -5619,9 +5630,9 @@ checksum = "81cdd64d312baedb58e21336b31bc043b77e01cc99033ce76ef539f78e965ebc" [[package]] name = "svix" -version = "0.85.1" +version = "1.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c45973542067ffeb8fa7d89b24ee920a9e36ad96ef2873a7e60fe4b09cec4f8" +checksum = "47ca1e53956ea8fa121372664b70bd97ba79a72d58f8da61443b57f8e208d5f9" dependencies = [ "base64 0.13.1", "hmac-sha256", @@ -5630,6 +5641,7 @@ dependencies = [ "serde", "serde_derive", "serde_json", + "serde_repr", "thiserror", "time", "url", diff --git a/bridge/svix-bridge-types/Cargo.toml b/bridge/svix-bridge-types/Cargo.toml index 7faaf2fb4..7f6b360b3 100644 --- a/bridge/svix-bridge-types/Cargo.toml +++ b/bridge/svix-bridge-types/Cargo.toml @@ -10,4 +10,4 @@ async-trait = "0.1" tokio = { version = "1", features = ["full"] } serde_json = "1" serde = { version = "1", features = ["derive"] } -svix = "0.85.1" \ No newline at end of file +svix = "1.17.0" diff --git a/server/Cargo.lock b/server/Cargo.lock index 65df86e3d..0dc8f513c 100644 --- a/server/Cargo.lock +++ b/server/Cargo.lock @@ -3790,6 +3790,17 @@ dependencies = [ "thiserror", ] +[[package]] +name = "serde_repr" +version = "0.1.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3081f5ffbb02284dda55132aa26daecedd7372a42417bbbab6f14ab7d6bb9145" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.39", +] + [[package]] name = "serde_spanned" version = "0.6.4" @@ -4199,9 +4210,9 @@ checksum = "6bdef32e8150c2a081110b42772ffe7d7c9032b606bc226c8260fd97e0976601" [[package]] name = "svix" -version = "0.60.0" +version = "1.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e4a0071892c06482d6585e7b15146b088f777d4da18aa924d9f960d59b7e4f4" +checksum = "47ca1e53956ea8fa121372664b70bd97ba79a72d58f8da61443b57f8e208d5f9" dependencies = [ "base64 0.13.1", "hmac-sha256", @@ -4210,6 +4221,7 @@ dependencies = [ "serde", "serde_derive", "serde_json", + "serde_repr", "thiserror", "time", "url", diff --git a/server/svix-server/Cargo.toml b/server/svix-server/Cargo.toml index 1e8ba3197..e5ce98f38 100644 --- a/server/svix-server/Cargo.toml +++ b/server/svix-server/Cargo.toml @@ -14,7 +14,7 @@ publish = false [dependencies] svix-server_derive = { path = "../svix-server_derive" } -svix = "0.60" +svix = "1.17.0" svix-ksuid = "^0.5.1" dotenv = "0.15.0" hmac-sha256 = "1" diff --git a/server/svix-server/tests/e2e_endpoint.rs b/server/svix-server/tests/e2e_endpoint.rs index 63bfe1d1c..bf28d8c75 100644 --- a/server/svix-server/tests/e2e_endpoint.rs +++ b/server/svix-server/tests/e2e_endpoint.rs @@ -1159,7 +1159,7 @@ async fn test_endpoint_rotate_signing_e2e() { for sec in [secret1, secret2, secret3] { if let EndpointSecret::Symmetric(key) = &sec.key { let sec = base64::encode(key); - let wh = Webhook::new(sec).unwrap(); + let wh = Webhook::new(&sec).unwrap(); wh.verify(last_body.as_bytes(), &last_headers).unwrap(); } else { panic!("Shouldn't get here"); @@ -1227,7 +1227,7 @@ async fn test_endpoint_rotate_signing_symmetric_and_asymmetric() { match sec { EndpointSecret::Symmetric(key) => { let sec = base64::encode(key); - let wh = Webhook::new(sec).unwrap(); + let wh = Webhook::new(&sec).unwrap(); wh.verify(last_body.as_bytes(), &last_headers).unwrap(); } EndpointSecret::Asymmetric(key) => {