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 · 2.3 KB · 85 lines
| 1 | { |
| 2 | "rules": [ |
| 3 | { |
| 4 | "effect": "allow", |
| 5 | "principal": "public", |
| 6 | "actions": [ |
| 7 | "execute" |
| 8 | ], |
| 9 | "object_id": "site_style", |
| 10 | "reason": "the shared stylesheet is public; the object self-gates theme changes to admin sessions" |
| 11 | }, |
| 12 | { |
| 13 | "effect": "allow", |
| 14 | "principal": "public", |
| 15 | "actions": [ |
| 16 | "execute" |
| 17 | ], |
| 18 | "object_id": "site_appearance", |
| 19 | "reason": "the appearance page is public and read-only; switching goes through the admin-gated /style POST" |
| 20 | }, |
| 21 | { |
| 22 | "effect": "allow", |
| 23 | "principal": "public", |
| 24 | "actions": [ |
| 25 | "execute" |
| 26 | ], |
| 27 | "object_id": "site_nav", |
| 28 | "reason": "the shared navigation script is public; it only surfaces routes the caller is already permitted to use" |
| 29 | }, |
| 30 | { |
| 31 | "effect": "allow", |
| 32 | "principal": "public", |
| 33 | "actions": [ |
| 34 | "execute" |
| 35 | ], |
| 36 | "object_id": "site_markdown", |
| 37 | "reason": "the shared markdown renderer is a public static script" |
| 38 | }, |
| 39 | { |
| 40 | "effect": "allow", |
| 41 | "principal": "public", |
| 42 | "actions": [ |
| 43 | "execute" |
| 44 | ], |
| 45 | "object_id": "site_form", |
| 46 | "reason": "the shared schema-driven form generator is a public static script" |
| 47 | }, |
| 48 | { |
| 49 | "effect": "allow", |
| 50 | "principal": "public", |
| 51 | "actions": [ |
| 52 | "execute" |
| 53 | ], |
| 54 | "object_id": "site_list", |
| 55 | "reason": "the shared list generator is a public static script" |
| 56 | }, |
| 57 | { |
| 58 | "effect": "allow", |
| 59 | "principal": "public", |
| 60 | "actions": [ |
| 61 | "execute" |
| 62 | ], |
| 63 | "object_id": "site_detail", |
| 64 | "reason": "the shared detail generator is a public static script; permission enforcement happens on the underlying record read, same as /list and /form" |
| 65 | }, |
| 66 | { |
| 67 | "effect": "allow", |
| 68 | "principal": "public", |
| 69 | "actions": [ |
| 70 | "execute" |
| 71 | ], |
| 72 | "object_id": "site_flags", |
| 73 | "reason": "the shared feature-flag helper is a public static script; it only reads flags the caller's own session is entitled to via /api/flags" |
| 74 | }, |
| 75 | { |
| 76 | "effect": "allow", |
| 77 | "principal": "public", |
| 78 | "actions": [ |
| 79 | "execute" |
| 80 | ], |
| 81 | "object_id": "site_slots", |
| 82 | "reason": "the shared slot registry is a public static script like the other generators" |
| 83 | } |
| 84 | ] |
| 85 | } |