broker auto-deploy: droplet one-time setup (deploy user + sudoers + install script + BROKER_DEPLOY_SSH_KEY) — hands step of #688 #690
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Blocks
Reference
Matou/idss#690
Loading…
Add table
Add a link
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?
Why (droplet hands step — filed from #688)
The broker's auto-deploy rail (#688, ADR 0185) needs a one-time setup on the mail
droplet (
100.98.48.68) that no swarm substrate can reach (#445). A workercannot touch the droplet, so #688 ships the recipe and files this hands step, as
its deliverable 4 directs.
The runbook is already in the repo:
broker/README.md→ "Droplet one-timesetup — Ben's
!". This issue tracks running it.What a human does (once, as root on the mail droplet)
deployuser (no interactive shell).scripts/broker/idss-broker-install.shto/usr/local/sbin/idss-broker-install(root:755).deploy ALL=(root) NOPASSWD: /usr/local/sbin/idss-broker-install *(validate with
visudo -cf).idss-broker-deploy; authorize the PUBLIC key in~deploy/.ssh/authorized_keys(force-command to the installer, no pty/forwarding).BROKER_DEPLOY_SSH_KEY(NOT thedevuser's key).
Exact commands:
broker/README.md.Acceptance
workflow_dispatchofbroker-deploy(theready-for-sessionsibling, onceits workflows are merged) with a published sha ends with
journalctl -u ourcloud-broker | grep 'broker booted'naming that version andcurl -fsS http://127.0.0.1:8090/v1/gateways/offerreturning 200 — proven byone real run.
deployuser can run ONLY/usr/local/sbin/idss-broker-installvia sudo(nothing else), and its ssh key is force-commanded to the installer.
Notes
This is a security-posture step (a new user + sudoers + an inbound ssh key on a
Matou-infra droplet), so it is
ready-for-human, not a two-way-door agentruling. The installer itself rolls back and fails red on a bad binary
(offline-proven in
scripts/tests/broker-install-test.sh), so the worst a baddeploy does is keep the OLD broker serving.
idss-rental-expires-tag on a LIVE rental once the broker actually deploys (#741's broker half is merged but not installed) #745idss-rental-expires-tag on a LIVE rental once the broker actually deploys (#741's broker half is merged but not installed)Done, 2026-08-25 (interactive session — Ben's hands on the droplet, agent prep around them).
All five runbook steps are in place on the mail droplet:
deploysystem user created (uid=995,/usr/sbin/nologin, no interactive shell).scripts/broker/idss-broker-install.shinstalled at/usr/local/sbin/idss-broker-install(root:root 0755 — refreshed from today's working tree, superseding the copy that was already present)./etc/sudoers.d/idss-broker-deploy(0440),visudo -cfparsed OK.idss-broker-deployed25519 keypair; the PUBLIC key authorized in~deploy/.ssh/authorized_keyswith the forced command (sudo /usr/local/sbin/idss-broker-install $SSH_ORIGINAL_COMMAND),no-port-forwarding,no-agent-forwarding,no-pty— exactly one key line.BROKER_DEPLOY_SSH_KEY(HTTP 201) — not thedevuser's key. The local key file was shredded after upload; the secret is its only home.The acceptance's
workflow_dispatchofbroker-deployproving the rail end-to-end belongs to the auto-deploy sibling's proof run — this ticket's one-time hands step is complete.idss-rental-expires-tag on a LIVE rental once the broker actually deploys (#741's broker half is merged but not installed) #745idss-rental-expires-tag on a LIVE rental once the broker actually deploys (#741's broker half is merged but not installed) #745