rehearsal-3: get.idss.nz infra — vhost + unit + staged artifacts on the mail droplet (Ben) #516
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
1 participant
Notifications
Due date
No due date set.
Blocks
Depends on
Reference
Matou/idss#516
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?
Part of rehearsal phase 3 — gateway from home (spec
docs/superpowers/specs/2026-08-14-183-phase-3-home-gateway-rehearsal-design.md, plandocs/superpowers/plans/2026-08-14-183-phase-3-home-gateway-rehearsal.md).The plan section below is the work, verbatim; its Interfaces block names what neighbouring tasks consume — keep those names exact.
Global constraints (apply to every step)
CONTEXT.md) in ALL copy, comments,commit messages: founding, gateway, agent, install command,
enrollment code — never installer/daemon/token/join-key.
error with the real reason, never a silent skip or a made-up value.
install command is a doorway, not a kept tool (ADR 0028).
closes #NNN(or any close keyword) in commits or issue bodiesfor the standing drive issue family — say "advances #NNN". Even DESCRIBING a
close can auto-close (2026-08-10 lesson, twice).
STATUS.mdin the same commit(CLAUDE.md rule); the drive-issue minting commit (Task 9) carries the
STATUS + runbook update for the whole arc.
.sandcastle/.env(it forwards into worker containers);host-only secrets live in the executor's
rehearsal-env.sh(2026-07-11lesson).
Task 2: Bootstrap infra — DNS, vhost, deploy (READY-FOR-HUMAN)
Files: none in this repo (mail-droplet Caddyfile + systemd unit, operated
by hand);
docs/operator-app/rehearsal-drive.mdgains the bootstrap section inTask 9.
Interfaces:
go build ./bootstrap/cmd/bootstrap) and its--dirlayout (agent-x86_64,RELEASE).https://get.idss.nz/live with a real certificate — the URLinternal/founding/manualpath.go'sinstallHostalready names.Steps for Ben (the door is
ssh dev@100.98.48.68, the broker playbook):get.idss.nzalready resolves via the*.idss.nzwildcard to themail droplet — verify with
dig +short get.idss.nz(expect143.198.134.168); add an explicit A record only if the wildcard is evernarrowed.
GOOS=linux GOARCH=amd64 go build -o /tmp/bootstrap ./bootstrap/cmd/bootstrapon the workstation; build the agent the same way(
go build -o /tmp/agent-x86_64 ./agent/cmd/agent); scp both to the droplet(
/opt/ourcloud-bootstrap/{bootstrap,artifacts/agent-x86_64}, writeartifacts/RELEASEwith the git SHA).ourcloud-bootstrap.servicerunningbootstrap serve --dir /opt/ourcloud-bootstrap/artifacts --addr 127.0.0.1:8091(User=dev,Restart=always — copy the broker unit's shape).
get.idss.nz { reverse_proxy 127.0.0.1:8091 }beside thebroker's vhost; reload; verify
curl -sSf https://get.idss.nz | head -1prints
#!/bin/shandcurl -sI "https://get.idss.nz/get?arch=x86_64" | grep X-OurCloud-Release.rebuilding both binaries + restarting the unit (no pipeline yet — a
follow-up if churn hurts).
Relabelled
ready-for-sessionunder ADR 0174: every step runs through the established droplet door (dev@100.98.48.68) with the broker deploy's rollback pattern, and is reversible by removing the vhost/unit. Nothing here needs Ben's hands.Landed by session (ADR 0174) —
https://get.idss.nz/is live with a real certificate.dig +short get.idss.nz→143.198.134.168via the*.idss.nzwildcard, as predicted — no explicit record added./opt/ourcloud-bootstrap/bootstrap+artifacts/agent-x86_64(bothGOOS=linux GOARCH=amd64, built from6bff1f9),artifacts/RELEASE=6bff1f95b60d0b0e99a70ea4916a7141326caba7.ourcloud-bootstrap.service—bootstrap serve --dir /opt/ourcloud-bootstrap/artifacts --addr 127.0.0.1:8091,User=dev,Restart=always+ the broker unit's hardening (NoNewPrivileges,ProtectSystem=strict,ProtectHome); enabled + active./etc/caddy/conf.d/get.caddybeside the broker's vhost; cert obtained via TLS-ALPN-01 at 17:15:49Z.curl -sSf https://get.idss.nz | head -1→#!/bin/sh;curl -sI …/get?arch=x86_64→HTTP/2 200,x-ourcloud-release: 6bff1f9…; unknown arch → honest 503 (fail-loud, ADR 0100).Re-staging procedure (no pipeline yet — a follow-up if churn hurts): rebuild both binaries at the new SHA,
scpto/tmp,sudo mvinto/opt/ourcloud-bootstrap/{bootstrap,artifacts/agent-x86_64}, updateartifacts/RELEASE,sudo systemctl restart ourcloud-bootstrap.Note:
caddy validateon this droplet false-fails (the acmedns TLS module parses env the CLI doesn't carry) — validate is not a usable pre-check here; the reload itself is atomic and loud.