FRN123[medium]Security
Row-level security policy dropped
A policy was removed from a table that still exists.
Why it's risky in PostgreSQL
Policies decide which rows each role can see or change. Dropping one without a replacement can widen access (a permissive policy's rows now come from the others) or block it entirely (no permissive policy left).
What triggers it, and the safer way
DROP POLICY orders_tenant ON orders;-- Replace it in the same migration:
DROP POLICY orders_tenant ON orders;
CREATE POLICY orders_tenant ON orders USING (tenant_id = current_setting('app.tenant')::bigint);Suppress it when you're sure
Put this comment on the line before the statement. The reason is required and shows in the report.
-- fronelta:allow FRN123 <why this is safe here>Applies to PostgreSQL 14, 15, 16, 17.