fix(dev): bind dx serve to a private LAN IP only #377
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/dev-bind-private-ip"
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?
The
just devrecipe discovered the host br0/eth0 IPv4 and bound dx serve (port 4301) to it. On this host br0 carries a public address, so the dev frontend was published on the internet. A sibling stack exposed the same way had its Postgres compromised by the PG_MEM botnet.Discovery now keeps only RFC1918 (private) addresses and falls back to 127.0.0.1 with a warning when the only candidate is public, so dx serve can never be published on a public interface. The dev-sso path already forced HOST_IP=127.0.0.1 and is unchanged.
Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com
Superseded by PR #378
Pull request closed