Skip to content

dev: bind servers to loopback by default#4211

Open
benma wants to merge 1 commit into
BitBoxSwiss:masterfrom
benma:fix/webdev-lan-access
Open

dev: bind servers to loopback by default#4211
benma wants to merge 1 commit into
BitBoxSwiss:masterfrom
benma:fix/webdev-lan-access

Conversation

@benma

@benma benma commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

servewallet and Vite should not listen on every host interface during normal local development. Dev mode exposes unauthenticated local services.

Docker still needs BITBOX_DEV_BIND_HOST=0.0.0.0 inside the container because published ports are reached through the container's external interface. The published host ports are bound to 127.0.0.1 so they remain accessible from the host without exposing them to the LAN.

@benma benma requested a review from thisconnect July 5, 2026 09:04
@benma benma requested a review from a team as a code owner July 5, 2026 09:04

@thisconnect thisconnect left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks

tested normal webdev + servewallet

@benma benma force-pushed the fix/webdev-lan-access branch from 03faf6c to 713c069 Compare July 6, 2026 06:24
servewallet and Vite should not listen on every host interface during
normal local development. Dev mode exposes unauthenticated local services.

Docker still needs BITBOX_DEV_BIND_HOST=0.0.0.0 inside the container because
published ports are reached through the container's external interface. The
published host ports are bound to 127.0.0.1 so they remain accessible from the
host without exposing them to the LAN.
@benma benma force-pushed the fix/webdev-lan-access branch from 713c069 to 914d5ae Compare July 6, 2026 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants