Skip to content

Decide the default bind address for switchyard-server #596

Description

@afourniernv

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions