Decision 0001 · Accepted · 2026-11-22

Bind to loopback only, behind a reverse proxy

Context

Container-published ports listen on all interfaces by default and bypass the host firewall, so a service that is "firewalled" can still be reachable directly. The service also should not terminate TLS or handle slow or hostile clients itself.

Options considered

  1. Publish the port on all interfaces and rely on the host firewall: Docker's published ports are not governed by it.
  2. Terminate TLS inside the service: more code and certificate handling in the application.
  3. Bind to 127.0.0.1 only and put a reverse proxy in front for TLS, caching and routing.

Decision

Option 3. The service listens on loopback only; the proxy in front is the only public entry point.

Consequences

0002 Two-stage LLM pipeline: cheap guard, then answer →