Changelog - 2026-09-15
One endpoint option, two audiences
BreakingIn one line. endpoint is now an object, and the two hosts do different jobs.
What changed
endpoint: { default, public? }.defaultis what this process talks to.publicis what a browser is handed, and falls back todefault, so one reachable host still serves both.- Behaviour changed, not only the shape.
publicEndpointused to win for everything, so list, copy and tagging calls also went out through the public host. Nowdefaultserves theS3Client, every bucket operation,copyObjectand object tagging, andpublicserves onlypresignGet,presignPutandpresignPost. - Why two hosts. The host is inside every signature, so a URL signed against
minio:9000cannot be rewritten to a public host. The public host has to be chosen at signing time.
Who is affected
- You construct
BunS3Helper. Wrap the endpoint. A compile error names every site. - You set
publicEndpoint. Move it toendpoint.public, and expect your server traffic to take the internal route now. That is the fix, not a regression. - You use
DiskHelperor the storage contract. Nothing.
Breaking changes
WARNING
Every BunS3Helper construction site changes.
Before:
ts
new BunS3Helper({ accessKey, secretKey, endpoint: 'http://minio:9000', publicEndpoint: 'https://cdn.example.com' });After:
ts
new BunS3Helper({
accessKey,
secretKey,
endpoint: {
default: 'http://minio:9000', // what THIS process talks to
public: 'https://cdn.example.com', // what a BROWSER is handed
},
});