summaryrefslogtreecommitdiff
path: root/internal/api/budget_test.go
diff options
context:
space:
mode:
authorClaude <noreply@anthropic.com>2026-05-26 21:08:25 +0000
committerClaude <noreply@anthropic.com>2026-05-26 21:08:25 +0000
commitb9d73497efe7c28800040b3e421bfb4cb6af6092 (patch)
tree15084a4695c959d19aecdf64d94d0471e62605b2 /internal/api/budget_test.go
parentab4b364954af08fa602388495ca425eaef0abf74 (diff)
feat(config,cli): loopback-default binding with fail-loud on external (Phase 7)
The server now defaults to binding 127.0.0.1 and refuses to bind a non-loopback address (:8484, 0.0.0.0, a LAN IP, …) unless external_bind_allowed = true is set in config — failing loud at startup instead of silently exposing itself. External access is expected to go through a reverse proxy (Tailscale / Cloudflare Access / Caddy), per the locked auth model. - config: ExternalBindAllowed flag + ValidateBindAddr/isLoopbackHost (tested across loopback, all-interfaces, LAN, and override cases). - cli: --addr default is now 127.0.0.1:8484; serve() validates before binding. Per-client bearer rotation stays deferred (single shared token for now). https://claude.ai/code/session_01SESwn7kQ7oP62trWw6pc39
Diffstat (limited to 'internal/api/budget_test.go')
0 files changed, 0 insertions, 0 deletions