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.5 KB · 58 lines
| 1 | { |
| 2 | "rules": [ |
| 3 | { |
| 4 | "effect": "allow", |
| 5 | "principal": "registered", |
| 6 | "actions": [ |
| 7 | "create", |
| 8 | "read", |
| 9 | "update", |
| 10 | "delete" |
| 11 | ], |
| 12 | "collection": "views", |
| 13 | "row_filter": { |
| 14 | "owner_id": "$user_id" |
| 15 | }, |
| 16 | "reason": "signed-in users manage the views they own" |
| 17 | }, |
| 18 | { |
| 19 | "effect": "allow", |
| 20 | "principal": "public", |
| 21 | "actions": [ |
| 22 | "read" |
| 23 | ], |
| 24 | "collection": "views", |
| 25 | "row_filter": { |
| 26 | "is_public": "true" |
| 27 | }, |
| 28 | "reason": "views marked public are readable by anyone" |
| 29 | }, |
| 30 | { |
| 31 | "effect": "allow", |
| 32 | "principal": "public", |
| 33 | "actions": [ |
| 34 | "execute" |
| 35 | ], |
| 36 | "object_id": "site_view_render", |
| 37 | "reason": "the view renderer is public; the policy decides which views and blocks are visible" |
| 38 | }, |
| 39 | { |
| 40 | "effect": "allow", |
| 41 | "principal": "public", |
| 42 | "actions": [ |
| 43 | "execute" |
| 44 | ], |
| 45 | "object_id": "site_flow", |
| 46 | "reason": "page objects are public execute; /flow gates everything on a signed-in identity inside, because the assembled map of how money moves deserves the same courtesy as the data it describes" |
| 47 | }, |
| 48 | { |
| 49 | "effect": "allow", |
| 50 | "principal": "public", |
| 51 | "actions": [ |
| 52 | "execute" |
| 53 | ], |
| 54 | "object_id": "site_urls", |
| 55 | "reason": "page objects are public execute; /urls gates everything on a signed-in identity inside -- the complete map of a server's surface is reconnaissance data" |
| 56 | } |
| 57 | ] |
| 58 | } |