You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 11, 2026. It is now read-only.
sql/013_awcms_mini_enforce_rls_least_privilege.sql grants SELECT, INSERT, UPDATE, DELETE ON ALL TABLES IN SCHEMA public and matching default privileges to awcms_mini_app. Global tables without RLS include modules, permissions, schema migrations, setup state, and tenants.
Objective
Separate migration, runtime, worker, and bootstrap database authority and grant only the operations each path requires.
Scope
Add a migration using the next available number at implementation time.
Define/document roles such as migration owner, web runtime, background worker, and bootstrap/setup.
Revoke schema-wide/default DML grants from runtime roles.
Grant explicit table/sequence/function privileges per role.
Keep tenant isolation enforced by withTenant, RLS, and FORCE RLS.
Add negative privilege tests for global and tenant-scoped tables.
Parent epic: #679
Evidence
sql/013_awcms_mini_enforce_rls_least_privilege.sqlgrantsSELECT, INSERT, UPDATE, DELETE ON ALL TABLES IN SCHEMA publicand matching default privileges toawcms_mini_app. Global tables without RLS include modules, permissions, schema migrations, setup state, and tenants.Objective
Separate migration, runtime, worker, and bootstrap database authority and grant only the operations each path requires.
Scope
withTenant, RLS, and FORCE RLS.Guardrails
Acceptance criteria