Skip to content

Conversation

@joshua-spacetime
Copy link
Collaborator

Description of Changes

This patch disallows RLS on private tables. Attempting to publish such a module will now fail.

API and ABI breaking changes

None.

This was always just a no-op since RLS doesn't doesn't apply to module owners, and non-owners cannot query private tables.

Expected complexity level and risk

1

Testing

  • smoketest

@joshua-spacetime joshua-spacetime marked this pull request as ready for review April 18, 2025 22:55
@joshua-spacetime joshua-spacetime force-pushed the joshua/fix/rls-on-private-tables branch from fc5032d to 4d35ebb Compare April 18, 2025 22:56
@joshua-spacetime joshua-spacetime linked an issue Apr 18, 2025 that may be closed by this pull request
@joshua-spacetime joshua-spacetime force-pushed the joshua/fix/rls-on-private-tables branch from 4d35ebb to 158da14 Compare April 18, 2025 23:10
@bfops bfops added the release-any To be landed in any release window label Apr 21, 2025
@bfops
Copy link
Collaborator

bfops commented Apr 21, 2025

Thank you for fixing this footgun!

Copy link
Contributor

@kazimuth kazimuth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 looks good.

@joshua-spacetime joshua-spacetime added this pull request to the merge queue Apr 21, 2025
Merged via the queue into master with commit 304b488 Apr 21, 2025
15 checks passed
@joshua-spacetime joshua-spacetime deleted the joshua/fix/rls-on-private-tables branch April 21, 2025 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-any To be landed in any release window

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Catch private tables in RLS rules at publish time

4 participants