Files
storage/s3.go
T
argoyle 5f6044a0c1
storage / vulnerabilities (pull_request) Successful in 1m39s
storage / test (pull_request) Successful in 1m40s
pre-commit / pre-commit (pull_request) Successful in 6m16s
feat: auto-enable path-style addressing when a custom endpoint is set
When AWS_ENDPOINT_URL_S3 or AWS_ENDPOINT_URL is set (typically because
the runtime is pointing at a local MinIO/S3-compatible endpoint),
enable path-style addressing on the S3 client. Without this
requests fail because MinIO doesn't implement virtual-hosted style
addressing out of the box.

Production deployments leave those env vars unset and continue talking
to real AWS S3 with virtual-hosted style, so no behaviour change there.

Both New() and NewS3() share a s3ClientOptions helper that applies the
toggle.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-17 19:09:31 +02:00

5.5 KiB