From 67c6f937c9d140eb4e27ae5f426c41423b7a2f47 Mon Sep 17 00:00:00 2001 From: Aaron Liu Date: Sat, 15 Nov 2025 11:59:09 +0800 Subject: [PATCH] fix(oss): disable RSA min key size check for OSS callback (#3038) --- assets | 2 +- main.go | 2 ++ pkg/filemanager/driver/oss/callback.go | 5 +++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/assets b/assets index 8c73fb85..1b1f9f4c 160000 --- a/assets +++ b/assets @@ -1 +1 @@ -Subproject commit 8c73fb8551cf79dfd4f73885987593c0fb695b10 +Subproject commit 1b1f9f4c8e35d72ac60216af611c81355bd4f7ce diff --git a/main.go b/main.go index 931c5053..d9385366 100644 --- a/main.go +++ b/main.go @@ -1,8 +1,10 @@ +//go:debug rsa1024min=0 package main import ( _ "embed" "flag" + "github.com/cloudreve/Cloudreve/v4/cmd" "github.com/cloudreve/Cloudreve/v4/pkg/util" ) diff --git a/pkg/filemanager/driver/oss/callback.go b/pkg/filemanager/driver/oss/callback.go index 36a70bb2..7d4f8514 100644 --- a/pkg/filemanager/driver/oss/callback.go +++ b/pkg/filemanager/driver/oss/callback.go @@ -10,12 +10,13 @@ import ( "encoding/pem" "errors" "fmt" - "github.com/cloudreve/Cloudreve/v4/pkg/cache" - "github.com/cloudreve/Cloudreve/v4/pkg/request" "io" "net/http" "net/url" "strings" + + "github.com/cloudreve/Cloudreve/v4/pkg/cache" + "github.com/cloudreve/Cloudreve/v4/pkg/request" ) const (