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 · 864 bytes · 31 lines
| 1 | { |
| 2 | "rules": [ |
| 3 | { |
| 4 | "effect": "allow", |
| 5 | "principal": "role:admin", |
| 6 | "actions": [ |
| 7 | "read" |
| 8 | ], |
| 9 | "collection": "page_views", |
| 10 | "reason": "traffic analytics is an admin inspection surface; capture is server-side, never a public write" |
| 11 | }, |
| 12 | { |
| 13 | "effect": "allow", |
| 14 | "principal": "role:admin", |
| 15 | "actions": [ |
| 16 | "read" |
| 17 | ], |
| 18 | "collection": "conversions", |
| 19 | "reason": "conversion events are an admin analytics surface; recorded server-side, never a public write" |
| 20 | }, |
| 21 | { |
| 22 | "effect": "allow", |
| 23 | "principal": "registered", |
| 24 | "actions": [ |
| 25 | "execute" |
| 26 | ], |
| 27 | "object_id": "site_visitors", |
| 28 | "reason": "traffic numbers are operator information, and the page itself refuses an anonymous caller; this grant is what lets a signed-in operator reach it at all" |
| 29 | } |
| 30 | ] |
| 31 | } |