Kumiko 0.390 turns on row level security by default
Postgres now enforces tenant isolation in every Kumiko app by default. A query without a tenant context sees no tenant rows, and an app with an unprotected tenant table does not start. All our own apps have run on it in production since today.
Kumiko has always filtered by tenant in the framework layer: every read and write goes through a tenant-scoped database handle. With framework 0.390, Postgres checks the same rule a second time. A forgotten filter, a raw SQL statement or a bug in a handler can no longer reach another tenant’s rows, because the database refuses to return them.
Row level security is now on by default. Every table that belongs to a tenant gets RLS with FORCE and two policies, kumiko_tenant_isolation and kumiko_system_tenant_read. The app connects as a database role without superuser rights and without BYPASSRLS, since either one would make Postgres skip the policies. A statement that runs without a tenant scope sees no tenant rows, and an insert for a different tenant fails.
On boot the framework checks that every tenant table is protected and that the role cannot bypass the policies. If one is missing, the app does not start, so the gap shows up at deploy time and not in a customer’s data.
Development and tests run as the same restricted role. Code that reads tenant tables through a raw connection without a scope therefore fails on the developer’s machine and in the integration tests, not first in production. If you need time to fix such paths, rowLevelSecurity: "off" in the app config turns the whole thing off again.
Two smaller changes ship in the same release. The handler context is now grouped by purpose, for example ctx.events.append, ctx.dispatch.write and ctx.lifecycle.afterCommit. The kumiko-upgrade codemod rewrites existing handlers. The public exports of the framework are cut down to the names that apps and packages actually import.
Since 2026-10-24 all Kumiko apps run on this in production: OFFLOT, publicstatus, CashColt, phronexsis, solon, show-pony and Kumiko Studio.