Cerbos Playground - Prototype, test and share policies
Files
Export
_schemas
derived_roles
common_roles.yaml
principal_policies
resource_policies
testdata
principals.yaml
resources.yaml
- customer_data.yaml
customer_data_test.yaml
order_information.yaml
order_information_test.yaml
product_inventory.yaml
product_inventory_test.yaml
README.md
README
E-commerce Demo
The actors are:
- Felix is a customer.
- Sally is a vendor.
- Ian is an administrator.
- Peter is a customer service representative.
The resources are:
- Customer Data 1
- Customer Data 2
- Order 1
- Order 2
- Product Inventory
- Product 1
- Product 2
Principal
Who is performing the action(s)?
Felix - Customer
{ "id":"felix_customer", "roles":[ "CUSTOMER" ], "attr":{} }
Resource
What is being accessed?
Customer Data 1
{ "id":"customer_data_1", "kind":"customer_data", "policyVersion":"default", "attr":{ "ownedBy":"felix_customer", "isCompliant":true, "case_priority":"high" } }
Actions
List of actions the principal is attempting to do with the resource
customer_data Actions |
Result |
|---|---|
| Allowed | |
| Allowed | |
| Allowed |
Aux Data
Additional request context
Request
The HTTP request payload to Cerbos PDP
Response
The HTTP response from Cerbos PDP
Welcome to the Cerbos Playground
This environment allows your to build, test and debug authorization policies in realtime and share examples with your team.
Full documentation can be found at docs.cerbos.dev