mirror of
https://github.com/langgenius/dify-cloud-kit.git
synced 2026-07-19 13:35:54 -04:00
[PR #4] [MERGED] The s3 signingMethod parameter supports customization. #10
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/langgenius/dify-cloud-kit/pull/4
Author: @Jint-Tian
Created: 7/12/2025
Status: ✅ Merged
Merged: 7/29/2025
Merged by: @41tair
Base:
main← Head:main📝 Commits (2)
daa4c94The s3 signingMethod parameter supports customization.9f0f256default v4📊 Changes
2 files changed (+35 additions, -7 deletions)
View changed files
📝
oss/oss.go(+1 -0)📝
oss/s3/s3.go(+34 -7)📄 Description
Enhancements to S3 Storage Configuration
This update improves the S3 storage configuration in the
oss/oss.goandoss/s3/s3.gofiles by introducing support for theSignatureVersionparameter. The changes include:SignatureVersion stringto thes3struct inoss/oss.goto allow specification of the signature version.NewS3Storageinoss/s3/s3.goto accept and pass theSignatureVersionfrom the input arguments.SignatureVersion:'unsigned', usesaws.AnonymousCredentials.aws.NewStaticCredentialsProviderwith the provided credentials.normalizeSignatureVersionfunction to standardize input values, mapping'unsigned'to""and defaulting to"v4"for other cases.SignatureVersionandSigningMethodfor customized S3 operations.These modifications provide greater flexibility and control over S3 storage configurations, supporting both unsigned access and standard signed requests.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.