© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•7mo ago•
2 replies
RioMoura

Proper RLS for audit table

In our project, we have a table where we keep an audit of any other changes made to the other tables, the data is populated via triggers on the other tables, for example, if someone updates a field on table1, a Supabase trigger will store the old value, new value, column name, table name and the id of who made the change.

I'm struggling to figure it out what would be the proper RLS for that audit table. It will not be queried on the application, it is only for record keeping and the only way it gets data populated is from the Supabase triggers on the other tables.

Can anyone share some ideas?
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

permission denied for rls-enabled table
SupabaseSSupabase / help-and-questions
4y ago
RLS on related table
SupabaseSSupabase / help-and-questions
8mo ago
RLS With Join Table
SupabaseSSupabase / help-and-questions
4y ago
RLS on Likes Table
SupabaseSSupabase / help-and-questions
4y ago