Files
Nikhil a490e8812e [WEB-4742]feat: use api server as proxy for s3 requests in air-gapped environments when env is set (#3960)
* feat: add proxy upload and download endpoints for S3 integration

- Introduced ProxyUploadEndpoint and ProxyDownloadEndpoint to handle file uploads and downloads via S3 with time-based validation.
- Updated asset URLs to include new proxy endpoints.
- Enhanced S3Storage class to support proxy URL generation for uploads and downloads.
- Added configuration option USE_STORAGE_PROXY to toggle proxy usage.

* chore: update USE_STORAGE_PROXY configuration to disable by default

- Changed USE_STORAGE_PROXY environment variable in common settings and deployment files to default to 0.
- Ensured consistency across various deployment configurations for better control over storage proxy usage.

* chore: standardize formatting and update dependencies in compose files

- Added USE_STORAGE_PROXY environment variable to default to 0 in both Coolify and Portainer deployment configurations.
- Improved formatting for better readability across various service definitions in the compose files.
- Ensured consistent indentation and alignment for environment variables and dependencies.

* feat: enhance S3 storage integration with improved policy validation

- Updated ProxyUploadEndpoint and ProxyDownloadEndpoint to utilize new validation methods for upload and download parameters.
- Implemented comprehensive policy validation in S3Storage, including expiration checks, bucket restrictions, and signature verification.
- Changed USE_STORAGE_PROXY environment variable to default to 1 for enabling proxy usage by default.

* fix: simplify error message in ProxyUploadEndpoint

- Updated the error response in ProxyUploadEndpoint to provide a more generic error message for upload failures, enhancing user experience and reducing exposure of internal error details.

* fix: compose file formatting

---------

Co-authored-by: Sriram Veeraghanta <veeraghanta.sriram@gmail.com>
2025-08-29 01:58:05 +05:30
..