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.
rules.json · 1.5 KB · 26 lines
| 1 | { |
| 2 | "rules": [ |
| 3 | {"effect": "deny", "principal": "owner_fallback", "actions": ["update", "delete"], "collection": "scheduler_runs", "reason": "run history is written by the daemon and never by a client. No rule grants this; the engine's owner fallback did, to whoever the row's owner key names. This switches the fallback off for these actions only: an explicit grant still grants, and admins and in-process writers are unaffected"}, |
| 4 | { |
| 5 | "effect": "allow", |
| 6 | "principal": "role:admin", |
| 7 | "actions": ["read"], |
| 8 | "collection": "scheduler_runs", |
| 9 | "reason": "scheduled-run history is an admin inspection surface (and drives the /scheduler page's live feed); rows are written server-side by the daemon, never by a client" |
| 10 | }, |
| 11 | { |
| 12 | "effect": "allow", |
| 13 | "principal": "public", |
| 14 | "actions": ["execute"], |
| 15 | "object_id": "system_scheduler", |
| 16 | "reason": "the scheduler page is public execute like every page object; it renders a sign-in/admin prompt to everyone else and gates all data and every POST action on an admin identity itself" |
| 17 | }, |
| 18 | { |
| 19 | "effect": "allow", |
| 20 | "principal": "public", |
| 21 | "actions": ["execute"], |
| 22 | "object_id": "system_backups", |
| 23 | "reason": "the backups page is public execute like every page object; it renders a sign-in/admin prompt to everyone else and shows status only to an admin identity. Its buttons call the admin API with the visitor's own session, so the page holds no power the visitor lacks" |
| 24 | } |
| 25 | ] |
| 26 | } |