[PR #22276] The s3 signature_version supports transparent passing of environment … #29885

Closed
opened 2026-02-21 20:46:26 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/22276

State: closed
Merged: No


The s3 signature_version supports transparent passing of environment variables

This update modifies the api/extensions/storage/aws_s3_storage.py file to handle the signature_version parameter dynamically. The changes include adding support for the S3_SIGNATURE_VERSION environment variable, which can be set to 'unsigned', 's3', 's3v4', or any custom input. The code now checks the environment variable dif_config.S3_SIGNATURE_VERSION and defaults to 's3' if not specified. While 'unsigned' is handled as a special case, other values are transparently passed to the boto3 client configuration without additional processing, offering flexibility for advanced setups. This enhancement provides greater control and adaptability for S3 storage operations.

**Original Pull Request:** https://github.com/langgenius/dify/pull/22276 **State:** closed **Merged:** No --- # The s3 signature_version supports transparent passing of environment variables This update modifies the `api/extensions/storage/aws_s3_storage.py` file to handle the `signature_version` parameter dynamically. The changes include adding support for the `S3_SIGNATURE_VERSION` environment variable, which can be set to `'unsigned'`, `'s3'`, `'s3v4'`, or any custom input. The code now checks the environment variable `dif_config.S3_SIGNATURE_VERSION` and defaults to `'s3'` if not specified. While `'unsigned'` is handled as a special case, other values are transparently passed to the boto3 client configuration without additional processing, offering flexibility for advanced setups. This enhancement provides greater control and adaptability for S3 storage operations.
yindo added the pull-request label 2026-02-21 20:46:26 -05:00
yindo closed this issue 2026-02-21 20:46:26 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#29885