fix(storage): disable chunked encoding for Aliyun OSS compatibility#376
Merged
fix(storage): disable chunked encoding for Aliyun OSS compatibility#376
Conversation
Adds skillhub.storage.s3.disable-chunked-encoding (env: SKILLHUB_STORAGE_S3_DISABLE_CHUNKED_ENCODING, default false) so operators can turn off aws-chunked encoding when the S3 backend is Aliyun OSS, which rejects it with 'InvalidArgument: aws-chunked encoding is not supported'. Closes #365
805387d to
e3a0dcb
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题
当 S3 存储 provider 指向阿里云 OSS 时,上传 skill.md 失败:
阿里云 OSS 对 AWS SDK 的 兼容说明 中要求禁用 chunked encoding。
改动
新增配置项
skillhub.storage.s3.disable-chunked-encoding(环境变量SKILLHUB_STORAGE_S3_DISABLE_CHUNKED_ENCODING,默认false),通过S3Configuration.chunkedEncodingEnabled透传到 AWS SDK v2。false,保持标准 AWS S3 / MinIO 行为不变.env.release.example里默认true(该 example 本身面向阿里云 OSS 场景)使用
接入阿里云 OSS 时加一行环境变量:
Closes #365