Runs live, versioned Python application objects on one VM, with a suite of apps: projects, notes, tasks, files and more.

0 downloads

Download zip
Clone
Clone with git
git clone https://gitstable.com/git/askrobots/dbbasic-object-server.git
HTTPS
https://gitstable.com/git/askrobots/dbbasic-object-server.git
SSH
ssh://git@gitstable.com:2222/askrobots/dbbasic-object-server.git

Cloning needs no sign-in. Pushing over HTTPS asks for your username and an access token. SSH needs your key under SSH keys.

danq9 signup: the person chooses the password and name on the confirm page 83c7aa6 2 weeks, 5 days ago History
rules.json · 1.9 KB · 32 lines
1{
2 "rules": [
3 {
4 "effect": "allow",
5 "principal": "registered",
6 "actions": ["execute"],
7 "object_id": "action_run_template",
8 "reason": "registered and never public, and the reason is money: a run places a hold on a wallet and may spend real cash at a provider, so an anonymous run is an open tap. The object itself refuses a caller with no identity besides -- the grant and the check agree rather than one relying on the other"
9 },
10 {
11 "effect": "allow",
12 "principal": "registered",
13 "actions": ["read"],
14 "collection": "template_runs",
15 "reason": "READ ONLY, and the absence of update is the enforcement of the state machine: the only hands that may move a run between statuses are the runner and the sweeper, in process, walking the transitions the schema declares. A person who could PUT a run from abandoned back to queued through the API would be re-running a paid, non-idempotent provider call from a form field. No create either -- action_run_template is the one door in, because a run typed by hand is a job with no hold behind it, which the runner would execute for free"
16 },
17 {
18 "effect": "allow",
19 "principal": "role:admin",
20 "actions": ["execute"],
21 "object_id": "system_template_runner",
22 "reason": "the minutely schedule is how this normally runs; the manual grant exists for draining a queue NOW rather than in sixty seconds. Admin rather than registered because a pass makes outbound provider calls that cost money, and who spends this server's provider budget is an operator decision"
23 },
24 {
25 "effect": "allow",
26 "principal": "role:admin",
27 "actions": ["execute"],
28 "object_id": "system_run_sweeper",
29 "reason": "same posture as the runner: scheduled normally, executable by hand when an operator is staring at a stuck run and does not want to wait ten minutes for the sweep to notice"
30 }
31 ]
32}