django-rls

Row-level security for Django on PostgreSQL — policies as model metadata, enforced in the database.

Stack
Django · PostgreSQL
Status
active
Source
https://github.com/kdpisda/django-rls

Started as a scratch-your-own-itch weekend library, now the subject of a hands-on workshop at DjangoCon Europe. PostgreSQL row-level security expressed as Django model metadata: policies live next to the models they protect and are enforced by the database, not the ORM.

Related writing: Building django-rls.