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 · 2.4 KB · 50 lines
| 1 | { |
| 2 | "retracted": [ |
| 3 | {"effect": "allow", "principal": "registered", "actions": ["read"], "collection": "attention_counts", "reason": "every count in attention_counts is a code provider's number folded with no viewer, over every row of the collections it reads; this rule let any signed-in user list them all over the API, which is the leak the menu now refuses (object_attention.provider_shown_to). The home page and the menu read the table in process through action_nav_entries, which needs no grant; an admin still reads it as an admin"} |
| 4 | ], |
| 5 | "rules": [ |
| 6 | {"effect": "deny", "principal": "owner_fallback", "actions": ["update", "delete"], "collection": "attention_counts", "reason": "the daemon writes the counts and no person does. 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"}, |
| 7 | { |
| 8 | "effect": "allow", |
| 9 | "principal": "public", |
| 10 | "actions": ["execute"], |
| 11 | "object_id": "action_nav_entries", |
| 12 | "reason": "the menu is public; the object itself decides which tier of door each caller is shown" |
| 13 | }, |
| 14 | { |
| 15 | "effect": "allow", |
| 16 | "principal": "public", |
| 17 | "actions": ["execute"], |
| 18 | "object_id": "site_home", |
| 19 | "reason": "the front door is public; it shows the public tier plus a sign-in prompt to visitors" |
| 20 | }, |
| 21 | { |
| 22 | "effect": "allow", |
| 23 | "principal": "registered", |
| 24 | "actions": ["read"], |
| 25 | "collection": "nav_entries", |
| 26 | "reason": "a signed-in user may read the registry the menu is folded from" |
| 27 | }, |
| 28 | { |
| 29 | "effect": "allow", |
| 30 | "principal": "role:manager", |
| 31 | "actions": ["update"], |
| 32 | "collection": "nav_entries", |
| 33 | "reason": "an operator flips operator_hidden to take a door off this deployment's menu without editing anybody's package" |
| 34 | }, |
| 35 | { |
| 36 | "effect": "allow", |
| 37 | "principal": "registered", |
| 38 | "actions": ["read"], |
| 39 | "collection": "attention_sources", |
| 40 | "reason": "a signed-in user may read what each app says needs a human; the counts themselves are the interesting part and live next door" |
| 41 | }, |
| 42 | { |
| 43 | "effect": "allow", |
| 44 | "principal": "role:manager", |
| 45 | "actions": ["update"], |
| 46 | "collection": "attention_sources", |
| 47 | "reason": "an operator flips operator_muted to silence a queue this deployment does not work, without editing anybody's package" |
| 48 | } |
| 49 | ] |
| 50 | } |