Anyone here succeeded in using permit for ReBAC wo...
# general
a
Anyone here succeeded in using permit for ReBAC working well with supabase RLS? I'd really like to have the flexibility of permit for modeling access, but still benefit from the RLS features of supbase. I've seen a few tutorials on permit that dance around it, but most implement as a backend check in an API route. One kinda gets close -- but doesn't go as far as ReBAC: https://www.permit.io/blog/postgres-rls-implementation-guide Seems like it may require replicating a version of the rules into postgres and standing up some helper methods to support RLS
p
Hey, thanks for reaching out ! It seems our team is a little busy right now, a human will be with you within the next hour or so. In the meantime, can I help you ?
o
Hi Abe, yes this guide focuses on replication from Permit onto Postgres; giving you the advantage of a single source of truth via Permit.
We are also working on an integration with Trino, which you can use with the PDP directly to do enforcement
See Trino utility in the CLI Readme
env apply trino