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, MinIO 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 new s3ClientOptions helper that applies the toggle.
Needed for the Shiny acctest environment to exercise document-service, invoice-service and accounting-service S3 upload paths against an in-cluster MinIO.
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, MinIO 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 new `s3ClientOptions` helper that applies the toggle.
Needed for the Shiny acctest environment to exercise document-service, invoice-service and accounting-service S3 upload paths against an in-cluster MinIO.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
When
AWS_ENDPOINT_URL_S3orAWS_ENDPOINT_URLis set (typically because the runtime is pointing at a local MinIO/S3-compatible endpoint), enable path-style addressing on the S3 client. Without this, MinIO 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()andNewS3()share a news3ClientOptionshelper that applies the toggle.Needed for the Shiny acctest environment to exercise document-service, invoice-service and accounting-service S3 upload paths against an in-cluster MinIO.
Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com
Pull request closed