Seed a narrow default agent identity for shipped workflows #1320

Closed
opened 2026-10-27 13:39:55 +00:00 by sam · 0 comments
Owner

Shipped workflows declare identity: root (the reserved RootRef), so out of the box they run with the instance root's full authority and the runs-as check never narrows them. Seed a dedicated agent identity on every install, alongside the operator in the org upgrade's operator phase (stable ID via identity.StableID, org-sys member with a role that grants run on workflows and only what a run needs), and have the shipped workflows declare it instead of root. Remove RootRef once nothing ships with it. Existing installs get the identity on upgrade; stored workflow copies that still say root keep working until edited. Done when a fresh install runs triage end to end as the seeded identity, a policy denying that identity run on a workflow parks it with a recorded denial, and no shipped workflow names root.

Notes

RootRef removed ca12e367; stored copies naming root now fail. Remaining: live end-to-end verification.

Close reason

Verified live: task 18 ran triage→feasibility→implement as the seeded identity (PR #6); with an org forbid on that identity, task 20 parked 'identity … may not run workflow triage'; no shipped workflow names root. Test policy removed.


Imported from beads archie-core-fndis · GitHub #1608 · type feature · priority P1 · created 2026-10-11 · closed 2026-10-24

Shipped workflows declare identity: root (the reserved RootRef), so out of the box they run with the instance root's full authority and the runs-as check never narrows them. Seed a dedicated agent identity on every install, alongside the operator in the org upgrade's operator phase (stable ID via identity.StableID, org-sys member with a role that grants run on workflows and only what a run needs), and have the shipped workflows declare it instead of root. Remove RootRef once nothing ships with it. Existing installs get the identity on upgrade; stored workflow copies that still say root keep working until edited. Done when a fresh install runs triage end to end as the seeded identity, a policy denying that identity run on a workflow parks it with a recorded denial, and no shipped workflow names root. ### Notes RootRef removed ca12e367; stored copies naming root now fail. Remaining: live end-to-end verification. ### Close reason Verified live: task 18 ran triage→feasibility→implement as the seeded identity (PR #6); with an org forbid on that identity, task 20 parked 'identity … may not run workflow triage'; no shipped workflow names root. Test policy removed. --- _Imported from beads `archie-core-fndis` · GitHub #1608 · type feature · priority P1 · created 2026-10-11 · closed 2026-10-24_
sam added the highfeature labels 2026-10-27 13:39:55 +00:00
sam self-assigned this 2026-10-27 13:39:55 +00:00
sam closed this issue 2026-10-27 13:39:55 +00:00
sam added a new dependency 2026-10-27 13:42:22 +00:00
sam added a new dependency 2026-10-27 13:42:22 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: sam/archie#1320