Cerbos Playground - Prototype, test and share policies

Files

Export

README

E-commerce Demo

The actors are:

  1. Felix is a customer.
  2. Sally is a vendor.
  3. Ian is an administrator.
  4. Peter is a customer service representative.

The resources are:

  1. Customer Data 1
  2. Customer Data 2
  3. Order 1
  4. Order 2
  5. Product Inventory
  6. Product 1
  7. 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