v0.0.11¶
New¶
- Required Actions (
woodglue.access,woodglue.apps.rpc): a method can declarerequires="<action>"(lythonic@nsnode,Namespace.register, orrequires:on a YAML entry), naming an action of its namespace such aswrite. Only a Grant for that action on the namespace runs it, socall,call ns*, andcall *no longer reach it, andwrite nsalone runs only those methods. The built-inadminRole reaches every action. See Access control and ADR 0005. - Firing or activating a trigger needs its method's Required Action as well as
trigger. system.list_methodsandsystem.describe_methodreportrequired_actionandcan_call.llms.txt, method doc pages, andopenapi.json(x-required-action) show the Required Action, and the Console marks such methods and greys out those the viewer cannot run.- Startup warnings for Grants that reach nothing: a Role or UI Grant naming an
action no loaded namespace declares, and a namespace Grant whose pattern has
a dot (such as a leftover
call cointoss.portfolio).
Changed¶
- Breaking:
Grant.parseaccepts any lowercase action name as a namespace-declared action, so an unknown action inauth.rolesor a UI'sgrantsis no longer a config error; it is the startup warning instead. Invalid names still fail, now withInvalid action .... - Breaking: a node declaring
read,trigger,view, oradminas its Required Action fails at startup. Grant.actionisAction | str;checkandCaller.cantake plain-string actions.- Static UIs: with tornado 6.6, files reached through a symlink that points outside the UI's directory answer 403.
Documentation¶
- ADR 0005: namespace-defined Required Actions.
- Glossary adds "Action" and "Required Action".
mkdocs build --strictpasses again.
Dependencies¶
lythonic>=0.0.29- Lockfile upgraded (tornado 6.6, polars 2, cryptography 50, pydantic 2.14).
- Docs:
pymdown-extensions<12, whichmarkdown-pycon1.0.2 does not support. - CI uses the runner's Python instead of downloading one, with uv 0.13.7.
Decisions and tickets¶
New ADRs:
- 0005 Namespace-defined Required Actions:
a method may require one namespace-declared Action, such as
write, thatcallGrants never reach; chosen overrequiresGrants on made-up targets and over method-level targets.
Closed:
-
34 Per-method Grants: let a node require more than the namespace's call¶