askrobots / dbbasic-object-server
Public
Runs live, versioned Python application objects on one VM, with a suite of apps: projects, notes, tasks, files and more.
danq9
signup: the person chooses the password and name on the confirm page
83c7aa6
2 weeks, 5 days ago
History
rules.json · 1.3 KB · 25 lines
| 1 | { |
| 2 | "rules": [ |
| 3 | { |
| 4 | "effect": "allow", |
| 5 | "principal": "registered", |
| 6 | "actions": ["execute"], |
| 7 | "object_id": "site_kitchen", |
| 8 | "reason": "the cook has to be signed in for the page to know whose kitchen to fold; the page itself shows a sign-in prompt rather than an error to anybody who is not, exactly as site_pick_list does. Deliberately not public: the queue names every waiting customer and what they ordered, which is a list of who will be standing at that counter in ten minutes" |
| 9 | }, |
| 10 | { |
| 11 | "effect": "allow", |
| 12 | "principal": "registered", |
| 13 | "actions": ["execute"], |
| 14 | "object_id": "site_kitchen_ticket", |
| 15 | "reason": "operator-facing, deliberately NOT public, and for the same reason as the packing slip: the ticket is addressed by an internal order id, so a public page here would be an enumeration oracle for every order in the shop. The customer's own door is the order's capability token, which is unguessable; a ticket is printed by the person making the food" |
| 16 | }, |
| 17 | { |
| 18 | "effect": "allow", |
| 19 | "principal": "registered", |
| 20 | "actions": ["execute"], |
| 21 | "object_id": "system_kitchen_attention", |
| 22 | "reason": "the attention band runs this for whoever is looking at it, and it can do nothing else: it reads orders and returns a number, writing nothing anywhere" |
| 23 | } |
| 24 | ] |
| 25 | } |