buzz icon indicating copy to clipboard operation
buzz copied to clipboard

buzz-media: hardcoded path-style S3 addressing rules out virtual-hosted-style providers (e.g. Railway Buckets)

Open jsilets opened this issue 4 months ago • 0 comments

Problem

buzz-media hardcodes path-style S3 addressing. In crates/buzz-media/src/storage.rs the bucket client is always built with .with_path_style(), and there is no configuration to turn it off.

This rules out S3-compatible providers that only support virtual-hosted-style URLs. The concrete case I hit: Railway Buckets (their managed object storage) is virtual-hosted-style only, so a Railway self-host cannot use the platform's native storage and must run a MinIO service instead.

Proposal

Add a BUZZ_S3_FORCE_PATH_STYLE env var (default true, preserving current behavior for MinIO and existing deployments). When set to false, skip .with_path_style() so the client uses virtual-hosted-style addressing.

Small change: one field on MediaConfig, one conditional in Storage::new, docs for the new variable per CONTRIBUTING. Happy to PR it if this direction is acceptable.

Dupes checked

No existing issue or PR covers addressing style. Closest related S3-compat work: #2618 (RustFS as default backend), #2470 (GCS interop), #3002 (Ceph RGW ETags), which suggests the S3 compatibility matrix is an active concern.

jsilets avatar Jul 28 '26 06:07 jsilets