Skip to content

Security: fakoli/anvil-serving

SECURITY.md

Security Policy

Supported versions

Security fixes target the latest minor release line of the current major version (currently 3.0.x, matching the version in CHANGELOG.md); older lines are not supported.

Version Supported
Latest 3.x minor ✅
Older minors and 0.x/1.x/2.x ❌

Reporting a vulnerability

Please do not open a public issue for security problems.

Report privately via GitHub's private security advisories on the repository: Security → Advisories → Report a vulnerability (https://github.com/fakoli/anvil-serving/security/advisories/new). If that is not available to you, contact the maintainer at security@fakoli.net.

Please include a description, reproduction steps, affected version, and impact. We aim to acknowledge within a few business days and will coordinate a fix and disclosure timeline with you.

Deployment security model

Operator-facing guidance on transport (no built-in TLS), controller token authority, safety gates versus access control, environment files and Connect sessions is in Deployment security model.

Scope and threat model

anvil-serving is a network-facing server that proxies coding-harness traffic to configured local model endpoints. Keep this in mind:

  • Every tracked file is a public surface. Real topology, active deployments, personal paths, and unsanitized evidence belong in a private operator repository; credential values belong outside Git in both repositories. See Public product and private operator state.

  • The server binds 127.0.0.1 by default. Built-in authentication is opt-in, not automatic: configure [server].auth_env = "ANVIL_ROUTER_TOKEN" (any env-var NAME matching ^[A-Z][A-Z0-9_]*$; rejected if it looks like a secret literal rather than a NAME) in your router config, and the front door then requires an Authorization: Bearer <token> or x-api-key: <token> header on every route except GET /healthz, checked against os.environ[auth_env] with a constant-time compare (hmac.compare_digest). With no auth_env configured, auth is off — this preserves the original loopback-only default exactly, so upgrading does not silently lock anyone out. See ADR-0004.

  • A token is required before you bind the router to a non-loopback address. If you bind it to a non-loopback address (--host 0.0.0.0, or a LAN/tailnet IP) without configuring auth_env, any caller reachable on that network can drive configured model endpoints. Configure auth_env first, always, whenever the router is reachable from anywhere other than the box it runs on. Treat network-level identity—a Tailscale grant or legacy ACL, a firewall rule, or another private mesh policy—as defense-in-depth on top of the token, never as a substitute for it. Prefer projecting a loopback listener through Tailscale Serve over binding the process to every interface; see Private networking with Tailscale.

  • The token secret itself is never stored in a config file — only its env-var NAME is (via auth_env). Request metadata and decision records must never contain credential values.

  • In the Docker/Compose deployment (see the README's "Run the router in Docker" section), the router is the only service published beyond loopback; the local model serves (SGLang/vLLM) stay on the internal Docker network / loopback, reachable only by the router (by service name) — never publish a raw serve directly.

  • Upstream credentials are referenced by env-var name. Do not paste raw keys into config files, logs, or decision records.

  • The test suite is hermetic and never makes real network or LLM calls.

Out of scope: vulnerabilities in third-party inference engines (SGLang, vLLM), in the cloud providers themselves, or in harnesses pointed at the router.

There aren't any published security advisories