PhoenixKit 2.13.1: Foreign key checks and S3-compatible storage connections
PhoenixKit 2.13.1 checks foreign keys left unchecked in the database, helps search engines with the sign-in pages, and adds an integration provider for S3-compatible storage.
Migration V176 validates foreign keys to users that were added without checking existing rows. It never deletes or changes a row. mix phoenix_kit.doctor now reports a failure when its orphaned-row check cannot run, instead of a pass.
The login, registration and magic-link registration pages now carry canonical and hreflang tags. A new object_storage integration provider holds credentials for AWS S3, Backblaze, Cloudflare R2 and other S3-compatible storage. There is no picker for it in the bucket form yet.
Upgrading
Run mix phoenix_kit.update for migration V176. A foreign key with rows pointing at users that no longer exist is left as it is, and the migration log names the table and the number of such rows.
Full release notes: PhoenixKit 2.13.1
2.13.1 · 18 August 2026
FK validation, auth-page SEO, an S3-compatible object-storage integration provider, and a tracked pre-commit hook (#733, #734, #735, #736).
Added
- V176 validates existing
NOT VALIDuser foreign keys in place and never deletes or nulls a row — a name-matched re-probe afterVALIDATEguards against shape-only false positives.mix phoenix_kit.doctor’s orphaned-FK probe now fails closed on a probe error instead of reporting a pass (#733). - Canonical/hreflang tags on the stable auth pages (login, registration,
magic-link registration request) via a new
PhoenixKitWeb.Users.AuthSeohelper (#734). object_storageintegration provider (S3-compatible) — registers withPhoenixKit.Integrations, with URL/bucket/region validators covering AWS/Backblaze/Cloudflare/China-partition endpoint shapes. This is the provider-side half of the bucketintegration_uuidcredential source added in 2.13.0 — no admin-UI picker yet (#735)..githooks/pre-commitis now tracked in the repo (git config core.hooksPath .githooksto enable) andmix phoenix_kit.doctorreports its status under “Git Hooks” — scoped to a checkout of phoenix_kit itself, since the hook is a contributor convention, not something installed into a consuming host app (#736).
Fixed
.githooks/pre-commitnow runs the same steps asmix precommit, in the same order (compile --warnings-as-errors --all-warnings,deps.unlock --check-unused,quality.ci,test.js), instead of a weaker, format-mutatingmix qualitythat could leave the working tree dirty immediately after a hook-approved commit (post-#736 review fix).
PhoenixKit 2.13.1. Install or update: {:phoenix_kit, "~> 2.13"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.