Skip to content

feat: support configurable server bind host#8096

Merged
skyfallsin merged 2 commits into
jo-inc:masterfrom
snapss-dev:security/loopback-bind
Jul 20, 2026
Merged

feat: support configurable server bind host#8096
skyfallsin merged 2 commits into
jo-inc:masterfrom
snapss-dev:security/loopback-bind

Conversation

@snapss-dev

Copy link
Copy Markdown
Contributor

Summary

  • add optional CAMOFOX_BIND_HOST configuration
  • pass the configured host to app.listen
  • forward the setting to launched server subprocesses
  • preserve the existing all-interface behavior when unset

Why

Local-only deployments currently bind the API to every interface. This option lets operators explicitly bind to 127.0.0.1 without changing cloud or container defaults.

Verification

  • npm test -- --runInBand tests/unit/config.test.js passes (3/3)
  • manual server smoke test succeeds with CAMOFOX_BIND_HOST=127.0.0.1
  • listener verified on 127.0.0.1:9377
  • loopback request succeeds and ordinary-LAN request times out
  • browser navigation smoke test succeeds

The full npm test run completed 40 suites with 668 passing tests; the E2E suites that require /tmp/camofox-e2e-env.json failed because that shared environment was not started in this standalone checkout.

@snapss-dev
snapss-dev force-pushed the security/loopback-bind branch from c63601a to 81c836b Compare July 17, 2026 23:29
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