
Cerbos Playgrounds
What is the Cerbos Playground?
The Cerbos Playground is an interactive online environment where users can write, test, and visualize Cerbos policies in real-time. It's designed to help both newcomers and experienced developers understand and experiment with Cerbos' capabilities without any setup or installation.
Open source PDP users can take advantage of our public playground. Cerbos Hub includes a private playground with collaborative features and a live connection to a development PDP.
- Instant feedback: Write policies and see immediate results, streamlining the learning process.
- Zero setup: Dive straight into Cerbos without any installations or configurations.
- Safe environment: Experiment freely without any risks to your actual systems or data.
- Sample policies: Get started fast with pre-built examples for common application permission models.
Advanced collaboration and testing features in the Cerbos Hub Playground
Organizations using Cerbos Hub can create an unlimited number of different playgrounds for testing different versions and iterations of their authorization policies. Users within the same organization can collaborate on policies in real time just like a Google doc. And Hub users have the ability to create a live connection with a local PDP in a development environment for faster, hassle-free policy testing and iteration. Check out the Cerbos Hub Playground here.
- Real-time collaborative editing: Experience an editing environment where multiple users can work on policies simultaneously. Ideal for pair programming sessions, team reviews, and collaborative policy development. Ideal for reducing errors and enhancing policy reliability.
- Instant feedback and testing: Provides real-time feedback on changes, helping to quickly identify and resolve issues, and accelerate your policy development process. It also features an automated test runner, streamlining the policy testing process.
- Cohesive experience: Supports the creation of playgrounds directly from GitHub repositories for a cohesive development cycle.
- Policy evolution support: Facilitates the evolution of authorization policies with ease, integrating into your Git-based workflow. Encourages iterative development and continuous improvement of policy logic.
- Jumpstart with new policies: The RBAC policy generator enables users to create role-based access control policies using a simple, no-code wizard. Complete with a pre-defined test dataset which can be used for troubleshooting and further experimentation.
- Verification of how policies work: The API request simulator allows users to simulate API requests without running a local policy decision point (PDP) and view the output of the Check Resources and Query Plan Resources APIs for any combination of user and resource.
- Real-time policy testing: Connecting a PDP to the Playground supports developers in establishing a live connection between their development environment and the Hub Playground, enabling the testing of authorization policies in real-time.
Essential policy testing in the Cerbos public playground
Our public playground is a web browser environment you can use to experiment with policies. You can save and share your policies with your teammates by creating and account. And when you’re done you can export your files and check them into your repo for use with Cerbos Hub.
Pre-built example policies
| Use case | Language | Policy Playground | GitHub | Video |
|---|---|---|---|---|
| Multi-tenant SaaS | YAML | Multi-tenant SaaS Policy | Repo | N/A |
| SaaS Workspaces | YAML | SaaS Workspaces Policy | N/A | N/A |
| HRIS Application | Python | Leave Policy | HR Demo Repository | Video (7m) |
| Expense Application | Node | Expense Policy | Expense Demo Repository | Video (4m) |
| Online Store | Go | E-commerce Policy | Repo | N/A |
| Express + JWT | Node | CRUD Policy | Repo | N/A |
| Product Packaging | YAML | Product Policy | N/A | N/A |
Find out more
Features, benefits & use cases
Fit Cerbos seamlessly into your tech stack
Playground
Prototype policies in your browser right now
Cerbos Hub
Implement roles & permissions in your app
Speak to an engineer
Book an intro call and learn more
Subscribe to our newsletter
Join thousands of developers | Features and updates | 1x per month | No spam, just goodies.





















