PhoenixKit 2.13.4: OAuth secrets leave the settings page, CRM suppliers
PhoenixKit 2.13.4 stops the authorization settings page from putting the real Google, GitHub and Facebook client secrets into the page, and prepares the catalogue for manufacturers and suppliers that live in the CRM.
On /admin/settings/authorization, the three secret fields carried the saved secret. Editing any other field sent it back to the server, and the LiveView log wrote it to the application log. The fields are now always empty, with a placeholder saying a secret is already configured once one is saved, and saving them empty keeps the stored secret.
Migrations V178 to V180 let a catalogue item’s manufacturer, and either side of a manufacturer-supplier link, be a CRM company instead of a local row. They drop the database foreign keys on those links, and close duplicate open price rows for the same supplier.
Upgrading
Run mix phoenix_kit.update. If you use the Catalogue module, update it to a version that cleans up manufacturer-supplier links itself, together with this release: those links are no longer removed by the database when a manufacturer or supplier is deleted.
Full release notes: PhoenixKit 2.13.4
2.13.4 · 21 August 2026
Catalogue manufacturer/supplier links become CRM-federated (V178–V180), and the Authorization settings page no longer leaks OAuth secrets via the DOM or application logs (#742, #743).
Added
- V178:
phoenix_kit_cat_manufacturers.crm_company_uuid— a soft, nullable cross-reference onto a CRM party (no FK — optional-module boundary), plus partial unique indexes on bothcat_manufacturersandcat_suppliers’crm_company_uuidso each stays one-to-one against a CRM party (#743). - V179:
phoenix_kit_cat_items.manufacturer_uuidbecomes a federated reference — a manufacturer can now be a CRM party, not only a localphoenix_kit_cat_manufacturersrow. Addsmanufacturer_source(local/crm_company) andmanufacturer_name_snapshot(a tombstone shown only when the reference resolves to nothing), and dropsphoenix_kit_cat_items_manufacturer_uuid_fkey— integrity moves to the application, as it already had for the item↔supplier junction since V149 (#743). - V180:
phoenix_kit_cat_manufacturer_suppliersbecomes federated on both sides — addsmanufacturer_source/supplier_sourceand drops both of the join table’s foreign keys (which carriedON DELETE CASCADE). Also adds a partial unique index so one item can no longer carry two open price rows for the same supplier at once; pre-existing duplicates are closed (not deleted) during the upgrade (#743).
Fixed
- The Authorization settings page (
/admin/settings/authorization) no longer renders real OAuth client secrets into the DOM. The three secret inputs previously round-tripped the real Google/GitHub/Facebook secret throughvalue=, which meant editing any other field re-submitted it as part of the full-formvalidate_settingsevent and Phoenix’s own LiveView telemetry logger wrote it to the application log. Inputs now always render blank with a “secret already configured” placeholder; a blank submission no longer wipes the stored secret (#742).
⚠️ Upgrade note
If you use phoenix_kit_catalogue: upgrade it to a version that includes its
own explicit cleanup of phoenix_kit_cat_manufacturer_suppliers links
(phoenix_kit_catalogue PR #75) before or alongside this release. V180 drops
the ON DELETE CASCADE that used to clear those links automatically when a
local supplier/manufacturer was deleted; an older phoenix_kit_catalogue
will silently leave orphaned (but harmless and recoverable) join rows behind
until it’s upgraded.
PhoenixKit 2.13.4. Install or update: {:phoenix_kit, "~> 2.13"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.