Skip to content

The s3 signature_version supports transparent passing of environment#397

Open
Jint-Tian wants to merge 2 commits intolanggenius:mainfrom
Jint-Tian:main
Open

The s3 signature_version supports transparent passing of environment#397
Jint-Tian wants to merge 2 commits intolanggenius:mainfrom
Jint-Tian:main

Conversation

@Jint-Tian
Copy link
Copy Markdown

Enhanced S3 Configuration Support

This update enhances the S3 storage configuration in the internal/server/server.go and internal/types/app/config.go files by introducing support for the S3SignatureVersion parameter. The changes include:

  • Added S3SignatureVersion to the initOSS function in internal/server/server.go to pass the signature version configuration to the OSS setup.
  • Extended the Config struct in internal/types/app/config.go with a new field S3SignatureVersion string, defaulting to "v4", allowing flexible specification of the S3 signature version.

These modifications enable better customization of S3 storage operations, providing support for different signature versions to enhance compatibility and flexibility.

S3UseAWS bool `envconfig:"S3_USE_AWS" default:"true"`
S3Endpoint string `envconfig:"S3_ENDPOINT"`
S3UsePathStyle bool `envconfig:"S3_USE_PATH_STYLE" default:"true"`
S3SignatureVersion string `envconfig:"S3_SIGNATURE_VERSION" default:"v4"`
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

default value should be s3v4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants