PhoenixKit 1.7.33: Bucket access types, and deleting users
PhoenixKit 1.7.33 changes how files in cloud storage are served and lets an admin delete a user account.
Each bucket now has an Access Type. Public (redirect to bucket URL) sends visitors straight to the file at the provider, which is the new default for S3, B2 and R2 buckets. Private (proxy through server) fetches the file with the bucket’s credentials, as before. Local files are now served directly, without a temporary copy.
The Users page gets a delete button with a confirmation. The button is not shown for yourself or an Owner, and only the Owner can delete an Admin. Social logins, billing profiles, carts and admin notes go with the account; orders, posts, comments, tickets, email logs and files are kept without the link to the person (migration V51).
A cart can now hold the same product twice with different options. Shop slugs in several languages get a working unique index (V52).
Upgrading
Run mix phoenix_kit.update for V50 to V52. A cloud bucket whose files are not public must be set to Private (proxy through server) in its settings, or its files stop loading.
Full release notes: PhoenixKit 1.7.33
1.7.33 · 4 February 2026
- Add module-level permission system (V53 migration)
phoenix_kit_role_permissionstable with allowlist model (row present = granted)- 24 permission keys: 5 core sections + 19 feature modules
- Owner bypasses all checks; Admin seeded with all 24 keys by default
- Custom roles start with no permissions, assigned via matrix UI or API
PhoenixKit.Users.Permissionscontext for granting, revoking, and querying role permissions- Interactive permission matrix at
{prefix}/admin/users/permissions - Inline permission editor in Roles page with grant/revoke all
- Route-level enforcement via
phoenix_kit_ensure_adminandphoenix_kit_ensure_module_access - Sidebar nav gated per-user based on granted permissions
- Real-time PubSub updates: permission changes reflect across all admin tabs
- Backward compatible: pre-existing Admins retain full access before V53 migration
- Add PubSub events for real-time updates in Tickets and Shop modules
- Tickets.Events module with broadcast for ticket lifecycle (created, updated, status changed, assigned, priority changed)
- Comment and internal note events for ticket discussions
- Shop.Events extension with product, category, inventory events
- LiveViews subscribe to events for real-time UI updates
- Add User Deletion API with GDPR-compliant data handling
- delete_user/2 with cascade delete for related data (tokens, OAuth, billing profiles, carts)
- Anonymization strategy for orders, posts, comments, tickets, email logs, files
- Protection: cannot delete self, cannot delete last Owner
- Admin UI with delete button, confirmation modal, and real-time list updates
- Broadcast :user_deleted event for multi-admin synchronization
- Fix compilation errors in auth.ex (pin operator with dynamic Ecto queries)
- Update core PhoenixKit schemas and Referrals to new UUID standard
- Update Shop module with localized slug support and unified image gallery
- Add PubSub events for Tickets and Shop modules, User Deletion API
- Added support for uuid to referral module
- Add markdown rendering and bucket access types
- Update Sync module to new UUID standard pattern
- Update billing module to use DB-generated UUIDs
- Update entities module to UUID standard matching AI module
PhoenixKit 1.7.33. Install or update: {:phoenix_kit, "~> 1.7"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.