fix(dev): bind dx serve to a private LAN IP only #377

Closed
David wants to merge 0 commits from fix/dev-bind-private-ip into main
Owner

The just dev recipe 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

The `just dev` recipe 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>
fix(dev): bind dx serve to a private LAN IP only
All checks were successful
Check / clippy + fmt + tests (pull_request) Successful in 1m42s
Create release / Create release from merged PR (pull_request) Has been skipped
00aed27f5a
The `just dev` recipe 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>
Author
Owner

Superseded by PR #378

Superseded by PR #378
David closed this pull request 2026-06-28 23:23:18 +02:00
David deleted branch fix/dev-bind-private-ip 2026-06-28 23:24:11 +02:00
All checks were successful
Check / clippy + fmt + tests (pull_request) Successful in 1m42s
Required
Details
Create release / Create release from merged PR (pull_request) Has been skipped

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
psa-systems/mokosh-apps!377
No description provided.