Repository navigation
feat(lab): unprivileged VM agents via the broker - #117
Conversation
|
Standards review at 8ed6faa. Changes requested. What meets the rules:
Open:
Notes that do not block:
The label stays |
|
Code review: clean at 8ed6faa, for use with osapi#1943 (the Security, as asked:
Not blocking:
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
8ed6faa to
35ebb9f
Compare
|
Standards re-review at 35ebb9f. Approved.
The read of the lab's config and the write that puts it back are now The branch is on the current The label is now |
The agent's state directory is /var/lib/osapi/agent, and root owns /var/lib/osapi. A VM that upgrades in place moves its keys and its pending changes there, from /etc/osapi/pki/agent or /var/lib/osapi, and the join record names the new creds path. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Standards review: changes requested (head 7404efb). There is 1 finding.
Checked, with no finding:
|
|
Code review: changes requested at 7404efb. Required
The rest of the diff is clean: the move of the keys and of |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Standards review: approved (head 53dd3b8). Checked: the finding from my last review is fixed. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Standards review: approved (head 939cd9b). Checked: one commit on 53dd3b8, a fast-forward with its trailer, and a subject of 50 characters or fewer. The comment in |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each VM agent of the lab now runs as
osapi, as osapi-io/osapi#1907 installs it, with no sudo rule. The agent gets root only through the root broker.lab_agentrunsosapi agent service install --join <join> --privileged <each behavior> --force. It runs on each bump, and on each VM that a deploy clones (new groupvms_install). Then it puts the lab's agent config back, owned byosapi, and restarts the agent./etc/osapi/pki/agentinto the install's key directory. It fixes the creds path in the join record, and givesosapithe state that a root agent made.adminoperator do not change. The owner approved the change of the VM agents in this session.Lab:
just deployandjust bumpwith the #1943 build passed on the five VMs, and each agent came back Ready asosapi.just intfound failures in osapi, not in this change. #1943 fixes them, and the session runs again.Specs: osapi-io/specs#756 (the lab page section "Each component as its own user")
Part of #115 (the VM part). The hub part is #116, blocked by osapi-io/osapi#1945.
Merge after osapi-io/osapi#1943.
🤖 Generated with Claude Code