Django ReBAC
The ultimate enterprise authorization platform for Django.
Django ReBAC is a declarative, Outbox-pattern ReBAC synchronizer for Django models.
This package automatically translates your Django relational models into ReBAC authorization graph tuples. It guarantees perfect, highly-available synchronization between your local PostgreSQL database and your distributed ReBAC server using the Transactional Outbox pattern and Celery.
π Why use this package?
- β‘ Zero-Friction Synchronization: Write standard Django models, and we handle the distributed ReBAC network writes automatically in the background.
- π‘οΈ Declarative Security: Secure your DRF endpoints instantly using simple, declarative dictionary configurations. No more complex permission classes.
- π 100% Decoupled: Change your business security rules (e.g., adding a new
viewerrole) without ever deploying new Python code. - ποΈ Clean Architecture Ready: Designed to work seamlessly with Repository patterns and Service layers, keeping your Django Views pristine and your business logic testable.
πΊοΈ Where to go next?
Ready to get started? Follow our step-by-step guides to wire up enterprise-grade authorization in minutes.
-
Install the package, configure Traefik, and run your first ReBAC migration.
-
Learn about the Zanzibar model, SOLID principles, and the Transactional Outbox pattern.
-
Master the "Roles vs. Permissions" pattern to decouple your security rules.
-
Learn how to sync models, secure API views, and handle nested hierarchies safely.