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 }}
Repository navigation
bb-data e2e: no_pk_log keeps the Supabase advisor firing rls_disabled_in_public on blocks-e2e #1289
packages/bb-data/test/fixtures/supabase-e2e-schema.sql creates no_pk_log in the public schema with ALTER TABLE no_pk_log DISABLE ROW LEVEL SECURITY and grants it to authenticated. test/apply-schema.ts applies that fixture to the blocks-e2e Supabase project on every E2E Supabase run, so the project's Security Advisor reports rls_disabled_in_public (CRITICAL) for it.
The RLS-off state is deliberate: no_pk_log is the fixture that exercises the "RLS disabled -> skipped" path in the real catalog, and src/crud/db-pull-e2e.test.ts:82 asserts hasRls === false for it. #1252 enabled RLS on the other three fixture tables (composite_pk_items, exotic_types, reserved_cols), so this is the one remaining finding.
The lint is schema-level — it flags any RLS-less table in a PostgREST-exposed schema — so revoking the authenticated grants would reduce real exposure but not silence it.
Options:
Dismiss the finding in the Supabase dashboard and add a comment in the fixture explaining why it is intentional. blocks-e2e holds only synthetic test rows.
Move no_pk_log to a schema that is not exposed via PostgREST and retarget the introspection assertions, keeping an RLS-off table in the catalog without the public-schema exposure.
Either way the alert count should go 4 -> 1, not to zero, until this is decided.
Related: apply-schema.ts runs only from the pull_request trigger in pr-checks.yml, never on main. Any open PR branch still carrying the pre-#1252 fixture will re-apply DISABLE ROW LEVEL SECURITY to the other three tables in the live project when its E2E Supabase job runs.
Activity