## 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:

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](https://docs.cerbos.dev/?utm_source=playground)
