PhoenixKit 2.40.1: Working links for custom S3 endpoints and signed buckets
PhoenixKit 2.40.1 fixes file links for buckets on Backblaze B2, MinIO, Wasabi, Tigris and private Cloudflare R2, and makes “signed” buckets work as intended.
Public links for a bucket with a custom endpoint always pointed at amazonaws.com. They now point at the bucket’s own endpoint. An endpoint may include a scheme or port, such as http://minio.local:9000, and one that cannot be used is a form error. A public R2 bucket without its own public domain is served through the site instead, since its API host does not answer anonymous reads.
The bucket form could not choose signed access, so saving a signed bucket made it public. It now offers Signed (short-lived link), and each request gets a link valid for 5 minutes. Neither a private nor a signed bucket hands out a plain object address.
The one-line page description in the admin header is now hidden unless Show page descriptions in the admin header is on under Settings → General. The “Default Bucket” card on Settings → Media, which always said “None”, is removed.
Full release notes: PhoenixKit 2.40.1
2.40.1 · 25 September 2026
Fixed
Storage.list_files(bucket_uuid: …)no longer raises. It filtered on a column files never had; it now lists the files with a copy in that bucket.- A bucket with a custom S3 endpoint (Backblaze B2, MinIO, Wasabi,
Tigris) gets working public URLs.
public_urlbuilt an amazonaws.com address whatever the endpoint was. It now points at the endpoint, in the style its requests use: virtual-host (bucket.host/key) for Tigris, which refuses path style for newer buckets, path style for the rest. An endpoint may be typed with a scheme or a port (http://minio.local:9000), and an IPv6 one is bracketed. An endpoint that cannot be used (another scheme, a path, a zone id) is a form error, and never quietly falls back to AWS. - A public Cloudflare R2 bucket without a public domain is proxied. Its S3 API host does not answer anonymous reads, so it has no public URL; set the bucket’s CDN URL to its r2.dev or custom domain for direct links.
- A bucket set to “signed” access is served by presigned URLs. It used to fall through to a public redirect, and the bucket form could not even choose it: it now offers Signed (short-lived link), so saving a signed bucket no longer turns it public. Each request gets a 5-minute signed URL (proxied when the provider cannot sign, or for an IPv6 endpoint), and neither a private nor a signed bucket hands out a plain object URL.
Changed
- Page descriptions in the admin header are off by default (#875). The
one line a page could put after its title (and under the in-page title)
is shown only when Show page descriptions in the admin header is on,
under Settings → General. The breadcrumb and the title already say where
you are. How a page builds its header trail is written down in
dev_docs/guides/2026-09-25-admin-header-trail.md.
Removed
- The “Default Bucket” card on Settings → Media, which always said “None”: bucket selection never read that setting. Storage profiles (next phase of the storage plan) replace the idea.
PhoenixKit 2.40.1. Install or update: {:phoenix_kit, "~> 2.40"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.