Repository navigation
chore(fly): node2/node3 configs as deployed on 0.9.0 - #676
Conversation
Trusted Fly proxy peer per machine (0.9.0 ignores Fly-Client-IP without TWIGPINE_TRUSTED_PROXY_CIDRS) and a 30 min startup-migration budget.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Link: https://github.com/Twigpine/node/compare/main...chore/fly-node-configs-090?expand=1
Title: chore(fly): node2/node3 configs as deployed on 0.9.0
What
Brings the tracked Fly configs for node2 and node3 in line with what runs on 0.9.0 since 2026-12-04:
TWIGPINE_TRUSTED_PROXY = 'fly'+TWIGPINE_TRUSTED_PROXY_CIDRS = '<machine's Fly proxy peer>/32'. 0.9.0 (fix(node): verify proxy socket peers before trusting forwarded client IPs #634) ignoresFly-Client-IPunless the socket peer is in that list. Without it, every client on a node shares one per-IP bucket. The addresses were measured from each machine's connection table while sending traffic through the public hostname: node2172.19.60.209, node3172.19.60.241.TWIGPINE_DB_CONNECT_TIMEOUT_SECS = '1800'. Migration 55 took 32 s on node3, close to the 60 s default startup budget.Each env table equals the deployed config (checked by parsing both files).
Known trade-off
The
/32is the narrowest trust, asdocs/RUN-A-NODE.mdadvises. If Fly moves a machine to another host, its proxy peer changes. The node then fails closed: it ignores the header and clients share one bucket until the address is updated.node1's config (untracked
infra/fly/node1.fly.toml) has the same change with172.19.15.241/32.Summary by CodeRabbit