broker: installer health probe speaks PROXY v2; rollback uses install, not cp (GOTCHAS #419) #2197
No reviewers
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.
Dependencies
No dependencies set.
Reference
Matou/idss!2197
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/broker-install-proxy-probe"
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?
Every broker deploy since #2010 has gone red while the broker was healthy.
Cause. The droplet runs
BROKER_PROXY_PROTOCOL=1, so 127.0.0.1:8090 drops any connection without a PROXY v2 header. The installer's health probe was a plaincurl, which got "reset by peer" for the old binary and the new one. The rollback then failed:cpcan't overwrite a running binary ("Text file busy"). Today's run (actions/runs/66486,cd47d343) shows all of this.Change (
scripts/broker/idss-broker-install.sh)broker_livetries a plain request first, thenprobe_proxy_v2, which writes the 16-byte v2 LOCAL header (proxyproto.HeaderV2Local) by hand before a GET.curl --haproxy-protocolsends only v1, which the broker refuses.installinstead ofcp, the same way the forward swap already works.Tests
broker-install-test.shhas a new case 14: a real listener that answers only a v2 LOCAL header. It failed before the change, and all 14 cases pass now.broker/internal/proxyprotolistener: plain curl gets nothing back (000), and the v2 probe reads it as live.Still owed after merge. Someone with a shell on the droplet must put this commit's installer at
/usr/local/sbin/idss-broker-install(GOTCHAS #99). Until then, the drift check refuses every deploy newer thancd47d343. While there,journalctl -u ourcloud-broker | grep 'broker booted'should namecd47d343; if it does, #2066 can close.GOTCHAS #419 · STATUS entry.
🤖 Generated with Claude Code