Agent unix user for delivery sessions #201

Open
opened 2026-11-22 17:35:35 +00:00 by Claude · 0 comments
Owner

Part of #166

Question

Run delivery-team sessions as a non-root unix user (e.g. agent) on the dev box. Until then they run as root and can read the real vault password, the host SSH key and the admin kubeconfig. That leaves ADR-0032's credential boundary as a guardrail only on this machine. Deferred by the owner, who accepts the risk (Credential boundary setup in ansible-homelab-mono). This ticket blocks nothing.

Work (human, needs root):

  • useradd -m agent; confirm /root is 700.
  • Give agent its own clone of ansible-homelab-mono, its own apm install and its own Claude Code login.
  • agent gets no vault password file; vault_password_file resolves to a placeholder.
  • agent gets no SSH key that reaches hosts.
  • Move the read-only kubeconfig and the bot token from the credential boundary ticket into ~agent.
  • Verify as agent: none of root's credential files are readable; kubectl auth can-i get secrets -A gives no.
  • Remove the accepted risk from ADR-0032.

Odd-job sessions stay root, HITL only.

Part of #166 ## Question Run delivery-team sessions as a non-root unix user (e.g. `agent`) on the dev box. Until then they run as root and can read the real vault password, the host SSH key and the admin kubeconfig. That leaves ADR-0032's credential boundary as a guardrail only on this machine. Deferred by the owner, who accepts the risk ([Credential boundary setup in ansible-homelab-mono](https://git.rkdr.net/Mortis/Holocron/issues/184)). This ticket blocks nothing. Work (human, needs root): - [ ] `useradd -m agent`; confirm `/root` is `700`. - [ ] Give `agent` its own clone of `ansible-homelab-mono`, its own apm install and its own Claude Code login. - [ ] `agent` gets no vault password file; `vault_password_file` resolves to a placeholder. - [ ] `agent` gets no SSH key that reaches hosts. - [ ] Move the read-only kubeconfig and the bot token from the credential boundary ticket into `~agent`. - [ ] Verify as `agent`: none of root's credential files are readable; `kubectl auth can-i get secrets -A` gives `no`. - [ ] Remove the accepted risk from ADR-0032. Odd-job sessions stay root, HITL only.
Claude added this to the Map: Infra and agent-team packages milestone 2026-11-22 17:35:35 +00:00
Claude added the Wayfinder/Task label 2026-11-22 17:35:35 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mortis/Holocron#201