Skip to content

feat(s3): S3プロバイダにSigV4署名を追加#93

Draft
tishin-endou wants to merge 3 commits into
RCOSDP:developfrom
tishin-endou:feature/s3-sigv4
Draft

feat(s3): S3プロバイダにSigV4署名を追加#93
tishin-endou wants to merge 3 commits into
RCOSDP:developfrom
tishin-endou:feature/s3-sigv4

Conversation

@tishin-endou

@tishin-endou tishin-endou commented Jun 5, 2026

Copy link
Copy Markdown

概要

S3プロバイダをレガシーSignature V2からSignature V4認証に移行し、SigV4が必要なAWSリージョンとの互換性を実現します。

変更内容

プロバイダ (waterbutler/providers/s3/provider.py)

  • S3クライアント初期化をSigV4署名設定に対応
  • アップロード、ダウンロード、削除、コピー、移動をSigV4互換にリファクタ
  • アップロード時の Content-MD5 整合性チェックを追加
  • MinIO互換ストレージからの VersionId='null' レスポンスを処理
  • バージョン管理なしストレージ向けに ListObjectsV2 フォールバックを _delete_folder に追加
  • リネーム・移動時の孤立フォルダプレフィックスオブジェクトをクリーンアップ
  • ListObjectVersions レスポンスのキーをURLデコード

メタデータ (waterbutler/providers/s3/metadata.py)

  • SigV4レスポンス形式に対応したメタデータ解析の更新

コア (waterbutler/core/metadata.py)

  • 共通メタデータユーティリティを追加

依存関係 (requirements.txt)

  • SigV4サポートに必要な依存関係を更新

テスト (tests/providers/s3/)

  • SigV4設定に対応したフィクスチャの更新
  • プロバイダテストを新実装に適合
  • VersionId='null' フィルタリングロジックにテストアサーションを整合

関連PR

Based on anqiuy/RDM-waterbutler@feature/s3-addon-migration

Co-Authored-By: An Qiuyu <qiuyu.an@hotmail.com>
@tishin-endou tishin-endou changed the title feat(s3): Add SigV4 signing support to S3 provider feat(s3): S3プロバイダにSigV4署名を追加 Jun 5, 2026
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.

1 participant