PostgreSQL 17 runners are live
All rules

FRN122[high]Security

Row-level security turned off

A table that had row-level security enabled (or forced) no longer does.

Why it's risky in PostgreSQL

With row-level security off, the table's policies stop applying: every role with a privilege on it sees and changes every row. Turning off FORCE lets the table's owner bypass the policies.

If the policies are being replaced, enable the new ones in the same migration and keep security on.

What triggers it, and the safer way

unsafe.sql
ALTER TABLE orders DISABLE ROW LEVEL SECURITY;
safer.sql
DROP POLICY orders_old 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.

suppression
-- fronelta:allow FRN122 <why this is safe here>

Applies to PostgreSQL 14, 15, 16, 17.