From cde49f4f8ac313625c45626ac68d4669bf7b477e Mon Sep 17 00:00:00 2001 From: Vaughn Dice Date: Wed, 15 Jan 2025 16:46:07 -0700 Subject: [PATCH] fix(oci): update oci-distribution crate to get jwt fix Signed-off-by: Vaughn Dice --- Cargo.lock | 20 +++++++++++++++++--- crates/oci/Cargo.toml | 2 +- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b38a767f58..318106c7eb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4354,6 +4354,20 @@ dependencies = [ "sha2", ] +[[package]] +name = "jwt" +version = "0.16.0" +source = "git+https://github.com/vdice/rust-jwt?rev=c5b596d28a39dd428350b445d5c5829ba6352f02#c5b596d28a39dd428350b445d5c5829ba6352f02" +dependencies = [ + "base64 0.13.1", + "crypto-common", + "digest", + "hmac", + "serde", + "serde_json", + "sha2", +] + [[package]] name = "keyed_priority_queue" version = "0.4.2" @@ -5322,7 +5336,7 @@ dependencies = [ "futures-util", "http 1.1.0", "http-auth", - "jwt", + "jwt 0.16.0 (registry+https://github.com/rust-lang/crates.io-index)", "lazy_static 1.5.0", "oci-spec", "olpc-cjson", @@ -5340,14 +5354,14 @@ dependencies = [ [[package]] name = "oci-distribution" version = "0.11.0" -source = "git+https://github.com/fermyon/oci-distribution?rev=7e4ce9be9bcd22e78a28f06204931f10c44402ba#7e4ce9be9bcd22e78a28f06204931f10c44402ba" +source = "git+https://github.com/fermyon/oci-distribution?rev=7b291a39f74d1a3c9499d934a56cae6580fc8e37#7b291a39f74d1a3c9499d934a56cae6580fc8e37" dependencies = [ "bytes", "chrono", "futures-util", "http 1.1.0", "http-auth", - "jwt", + "jwt 0.16.0 (git+https://github.com/vdice/rust-jwt?rev=c5b596d28a39dd428350b445d5c5829ba6352f02)", "lazy_static 1.5.0", "olpc-cjson", "regex", diff --git a/crates/oci/Cargo.toml b/crates/oci/Cargo.toml index 2ca72e6f9c..8e17099af7 100644 --- a/crates/oci/Cargo.toml +++ b/crates/oci/Cargo.toml @@ -17,7 +17,7 @@ dkregistry = { git = "https://github.com/fermyon/dkregistry-rs", rev = "161cf2b6 docker_credential = "1" futures-util = "0.3" itertools = { workspace = true } -oci-distribution = { git = "https://github.com/fermyon/oci-distribution", rev = "7e4ce9be9bcd22e78a28f06204931f10c44402ba" } +oci-distribution = { git = "https://github.com/fermyon/oci-distribution", rev = "7b291a39f74d1a3c9499d934a56cae6580fc8e37" } reqwest = "0.12" serde = { workspace = true } serde_json = { workspace = true }