PhoenixKit 2.13.10: Secrets no longer written to the log
PhoenixKit 2.13.10 stops setting secrets, such as OAuth client secrets and AWS keys, from being written to the application log in plain text.
They reached the log two ways. Saving the authorization settings logged the form’s values, because Phoenix only hides fields named like password or token. PhoenixKit now adds secret, api_key and the names of its restricted settings to that filter when it boots. And every write to the settings table was logged with its value at Ecto’s debug level; those writes are no longer logged at all. Logs written before this version may still hold such values.
mix phoenix_kit.doctor checked only four foreign keys for orphaned rows and reported PASS. It now checks every single-column foreign key in the database and says how many it covered.
Upgrading
Nothing to do: the filter is set by PhoenixKit.boot/1, which every install already calls.
Full release notes: PhoenixKit 2.13.10
2.13.10 · 25 August 2026
A live install’s default (dev-parity) logging wrote OAuth/AWS setting
secrets straight into /var/log/elixir.log in cleartext, on two independent
paths — closes the second half of the DOM leak fixed in 2.13.9. Doctor’s
orphaned-FK check also grows from 4 hardcoded relationships to every foreign
key constraint on the schema (#751).
Fixed
- Saving a Settings/Authorization credential (
oauth_google_client_secretand friends) logged the real value.Phoenix.LiveView.Loggerwrites a"HANDLE EVENT ... Parameters: ..."line for everyhandle_event, filtered only byconfig :phoenix, :filter_parameters(Phoenix’s own default:password/token) — a value the settings form’s field names (oauth_google_client_secret,billing_stripe_secret_key, …) never matched.PhoenixKit.boot/1now installssecret/api_keyinto that list itself (merging into{:keep, [...]}mode; replacing an already-compiled filter with a fresh one carrying Phoenix’s own default plus these — found, by a destructive test, that Phoenix pre-compiles this on every boot regardless of host config, so “leave an already-configured filter alone” meant “leave every real host alone”). Also merges in everyPhoenixKit.Settings.restricted_setting_keys/0entry by exact name —aws_access_key_idnames neither half of a keypair by the generic words above, so it only gets caught by being on that list. No host action required — every app already callsboot/1viaphoenix_kit.install/update. - Every write to
phoenix_kit_settingswas logged with its raw value at Ecto’s default:debugSQL log level (UPDATE ... SET value = $1 ... [<secret>, ...]) — the table stores every setting’s value in the same generic columns, secret or not, and Ecto’s SQL logger has no notion of the schema (noredact:field option reaches it).Queries.insert_setting/1andupdate_setting/1now passlog: false. mix phoenix_kit.doctor’s orphaned-FK check covered 4 of 70+ foreign key relationships — a hardcoded 4-pair list, checked and printedPASS, which read as “everything is fine” but only ever meant “the four pairs we happened to list are fine”. Two real orphans on a live site sat outside those four and were invisible the whole time. Now discovers every single-column FK constraint straight frompg_constraint(self-maintaining — a future migration’s constraint is covered without touching this file), reports coverage explicitly in every result line (“checked N of M foreign key constraints” — zero coverage can never read asPASSagain, whatever caused it), classifies orphans behind an already-VALIDconstraint (previously silently discarded), gives a per-constraint probe a 5s time budget so one huge table can’t hang the whole run, and gives a probe-failure-only result its own:warntier instead of the same:failred as confirmed data damage. Multi-column FKs are enumerated but not probed (reported as “not supported by this check, verify manually”).
PhoenixKit 2.13.10. Install or update: {:phoenix_kit, "~> 2.13"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.