supabase / splinter

Supabase Postgres Linter
https://supabase.github.io/splinter/
67 stars 6 forks source link

Exclude restrictive policies from 0006 #64

Closed olirice closed 2 months ago

olirice commented 2 months ago

Currently there is a bug in 0006_multiple_permissive_policies where restrictive policies are not filtered out so multiple restrictive policies, or a combination of permissive and restrictive policies will cause false positives.

This PR filters the lint to only include permissive policies and adds a test to avoid regression

Reported in https://app.hubspot.com/live-messages/19953346/inbox/6988121945#email