From f382c799ad6cabb471d7e570a5f4a917c10c6d92 Mon Sep 17 00:00:00 2001 From: weisd Date: Tue, 14 Jan 2025 13:48:57 +0800 Subject: [PATCH] sync s3s --- Cargo.lock | 4 ++-- Cargo.toml | 4 ++-- rustfs/src/admin/router.rs | 4 ---- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b9050a570..12c3b0aad 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2509,7 +2509,7 @@ checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f" [[package]] name = "s3s" version = "0.11.0-dev" -source = "git+https://github.com/Nugine/s3s.git?rev=05efc3f87e9f5d1a6c9760c79cf1f70dcdd100c8#05efc3f87e9f5d1a6c9760c79cf1f70dcdd100c8" +source = "git+https://github.com/Nugine/s3s.git?rev=529c8933a11528c506d5fbf7c4c2ab155db37dfe#529c8933a11528c506d5fbf7c4c2ab155db37dfe" dependencies = [ "arrayvec", "async-trait", @@ -2556,7 +2556,7 @@ dependencies = [ [[package]] name = "s3s-policy" version = "0.11.0-dev" -source = "git+https://github.com/Nugine/s3s.git?rev=05efc3f87e9f5d1a6c9760c79cf1f70dcdd100c8#05efc3f87e9f5d1a6c9760c79cf1f70dcdd100c8" +source = "git+https://github.com/Nugine/s3s.git?rev=529c8933a11528c506d5fbf7c4c2ab155db37dfe#529c8933a11528c506d5fbf7c4c2ab155db37dfe" dependencies = [ "indexmap 2.6.0", "serde", diff --git a/Cargo.toml b/Cargo.toml index 6777770a1..9cee71d25 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -65,10 +65,10 @@ protos = { path = "./common/protos" } rand = "0.8.5" rmp = "0.8.14" rmp-serde = "1.3.0" -s3s = { git = "https://github.com/Nugine/s3s.git", rev = "05efc3f87e9f5d1a6c9760c79cf1f70dcdd100c8", default-features = true, features = [ +s3s = { git = "https://github.com/Nugine/s3s.git", rev = "529c8933a11528c506d5fbf7c4c2ab155db37dfe", default-features = true, features = [ "tower", ] } -s3s-policy = { git = "https://github.com/Nugine/s3s.git", rev = "05efc3f87e9f5d1a6c9760c79cf1f70dcdd100c8" } +s3s-policy = { git = "https://github.com/Nugine/s3s.git", rev = "529c8933a11528c506d5fbf7c4c2ab155db37dfe" } serde = { version = "1.0.217", features = ["derive"] } serde_json = "1.0.134" tempfile = "3.13.0" diff --git a/rustfs/src/admin/router.rs b/rustfs/src/admin/router.rs index c9f5e939e..18193d096 100644 --- a/rustfs/src/admin/router.rs +++ b/rustfs/src/admin/router.rs @@ -71,10 +71,6 @@ where // warn!("get uri {}", &uri); - if req.credentials.is_none() { - return Err(s3_error!(AccessDenied, "Signature is required")); - } - if let Ok(mat) = self.router.at(&uri) { let op: &T = mat.value; return op.call(req, mat.params).await;