feat: Migrate to MinIO SDK and enhance S3 client with TLS and context#12207
feat: Migrate to MinIO SDK and enhance S3 client with TLS and context#12207HynoR wants to merge 2 commits into1Panel-dev:dev-v2from
Conversation
- Removed AWS SDK dependency and replaced S3 client implementation with MinIO SDK. - Updated various dependencies in go.mod and go.sum, including version upgrades for `klauspost/compress`, `minio/minio-go`, and `rs/xid`. - Adjusted S3 client methods to utilize MinIO's API for bucket listing, object existence checks, uploads, downloads, and deletions.
- Introduced context management with timeouts for S3 client operations to improve reliability. - Added TLS configuration to support secure connections based on the endpoint scheme. - Updated S3 client methods to utilize the new context and transport settings for enhanced performance and security.
|
Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
等你们 claw 那边没需求了再来合并 :) |





What this PR does / why we need it?
#11698
Summary of your change
彻底移除 aws-go-sdk 这个 v1 大史山。用 minio-go 替代
minio-go 已经实现了兼容 aws s3的细节,可以直接用于 s3 服务,无论是三方和官方都支持,除了部分高级功能(1panel 目前版本也没实现这接口)不兼容以外。
已经测了 部分 s3 上游(包括亚马逊 S3 官方)使用 minio 的可行性 全部测试无误后转正式 pr
Please indicate you've done the following: