PhoenixKit 2.28.1: Redacted images no longer reachable at their old address
PhoenixKit 2.28.1 fixes a privacy gap in the image editor of 2.28.0 on sites that serve media from a public bucket.
The first edit of an image moved the original to a hidden backup in the database, but left its files where they were. On a public bucket, file links redirect straight to those files, so any saved link still showed the unedited image and its sizes, including areas that had been blurred or blacked out.
The first edit now copies the unedited files to private keys and deletes the public ones once nothing refers to them. Backups made with 2.28.0 move on their next edit.
Upgrading
A CDN or browser that already cached the old files keeps them. To clear them, purge the CDN when the [:phoenix_kit, :storage, :file_edited] telemetry event fires, as the storage README describes under “Editing images”. Re-edit images redacted on 2.28.0 to move their originals.
Full release notes: PhoenixKit 2.28.1
2.28.1 · 17 September 2026
Fixed
- A redaction no longer leaves the unredacted image at its public bucket
URL. Before, the first edit of an image moved the original’s rows to the
hidden backup but left its objects where they were. On a public bucket,
file URLs redirect to those objects, so any saved link still showed the
unedited original and its variants.
- The first edit now copies the unedited objects to private
unedited_<random>_*keys and deletes the served keys once nothing references them. - A backup made by 2.28.0 moves on its next edit.
- Responses a CDN or browser already cached can’t be revoked. Purge on
[:phoenix_kit, :storage, :file_edited]telemetry (see the storage README, “Editing images”). (#821 review)
- The first edit now copies the unedited objects to private
PhoenixKit 2.28.1. Install or update: {:phoenix_kit, "~> 2.28"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.