Skip to content

Django ReBAC

The ultimate enterprise authorization platform for Django.

Python Django Zanzibar

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 viewer role) 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.

  • Getting Started


    Install the package, configure Traefik, and run your first ReBAC migration.

  • Architecture & Philosophy


    Learn about the Zanzibar model, SOLID principles, and the Transactional Outbox pattern.

  • ReBAC Schema Design


    Master the "Roles vs. Permissions" pattern to decouple your security rules.

  • Developer Guides


    Learn how to sync models, secure API views, and handle nested hierarchies safely.