Register generic resource permissions with exact filters #58
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem and evidence
crates/proto/src/permissions.rs:11-72defines a closedScopeenum; workload scopes are container-named. The provider contract describes exact instance/resource restrictions, but the generic resource/action policy has no complete runtime registration representation. Provider descriptors must not create authorization by themselves.Recommendation
Add validated, explicitly registered resource-kind and action permissions with exact instance/resource filters. Require reviewed policy registration for each new action. Keep capability metadata limited to narrowing what policy allows.
Payoff and estimate
Lets a new resource use the shared plan, grant and audit path without container-shaped scopes, while preserving least privilege. Estimate: 2–4 engineering days including authorization tests and a feature-to-policy matrix.
Priority: Next milestone (PLAN step 5).
2026-10-04 owner decisions: Matches the owner’s action × resource selectors and decision to keep signed RPC, scopes, plans and audit as product properties. Related: #49.
Report: arch-review report
Source: arch-review 2026-10-04