Problem
switchyard-server currently binds to 0.0.0.0 when --host is omitted. #584 proposes changing that default to 127.0.0.1 to reduce accidental network exposure.
This is more than a one-line security fix. It changes how the standalone server is deployed:
dev-server/switchyard.service relies on the current default and would stop accepting remote traffic.
- The root Docker image exposes port 4000, but a published container port cannot reach a process bound to container-local loopback.
- Existing remote users would need to add
--host 0.0.0.0.
Both behaviors are already available through --host. The decision is which one should be the default.
Decision needed
Should the standalone server default to local-only access, or should it remain network-reachable by default?
Loopback reduces accidental exposure, but it is not authentication. Keeping 0.0.0.0 better matches a deployable proxy, but requires users to secure the surrounding network appropriately.
If we change the default, the CLI, systemd service, Docker path, documentation, migration note, and a focused regression test should be updated together.
Related: #584
Problem
switchyard-servercurrently binds to0.0.0.0when--hostis omitted. #584 proposes changing that default to127.0.0.1to reduce accidental network exposure.This is more than a one-line security fix. It changes how the standalone server is deployed:
dev-server/switchyard.servicerelies on the current default and would stop accepting remote traffic.--host 0.0.0.0.Both behaviors are already available through
--host. The decision is which one should be the default.Decision needed
Should the standalone server default to local-only access, or should it remain network-reachable by default?
Loopback reduces accidental exposure, but it is not authentication. Keeping
0.0.0.0better matches a deployable proxy, but requires users to secure the surrounding network appropriately.If we change the default, the CLI, systemd service, Docker path, documentation, migration note, and a focused regression test should be updated together.
Related: #584