Skip to content

Security model ​

ReliaForge separates unauthenticated status checks from operator-authenticated routes and enforces defense in depth across HTTP mutations, SSE streams, and WebSocket shells.

What is readable without authentication ​

Health probes (/healthz, /readyz), platform summary (/api/v1/status), and plugin metadata endpoints read in-memory state only. They never trigger upstream repairs or return live settings. Configuration schema endpoints list field names, types, and non-secret defaults while omitting secret values and secret defaults.

What requires authentication ​

Every plugin business route (/api/v1/plugins/{id}/*), SSE log stream, WebSocket terminal upgrade, and lifecycle transition (start, stop, restart) requires operator authentication.

  • CSRF and WebSocket origin checks: Browser mutations and WebSocket handshakes verify Origin and Sec-Fetch-Site headers against same-origin rules or RELIAFORGE_TRUSTED_ORIGINS.
  • Server-side authority: available_actions in API responses is a UI hint only. The backend re-verifies operator identity, plugin state, allowlists, and confirmation tokens on every write.

Local development mode ​

RELIAFORGE_AUTH_MODE=development allows anonymous management requests only when the backend runs in development or test mode and binds to loopback (127.0.0.1 or ::1). Never run development mode on a shared host or non-loopback interface.

Production proxy authentication ​

In production (RELIAFORGE_AUTH_MODE=proxy), the backend enforces four non-negotiable rules before accepting a request:

  1. Direct TCP peer IP matches a CIDR in RELIAFORGE_TRUSTED_PROXIES.
  2. Proxy shared secret header matches RELIAFORGE_PROXY_AUTH_SECRET using constant-time comparison.
  3. Operator identity header is present and non-empty.
  4. Interactive OpenAPI docs (/api/v1/docs) are disabled automatically.

Incomplete production configuration aborts startup immediately.

Trust boundaries ​

  • Zero browser secrets: Upstream tokens (Proxmox, Kubernetes, Argo CD) stay in server environment variables or mounted files. The browser never receives them.
  • Trusted plugin code: Plugins execute directly inside the Python process and browser console origin. ReliaForge does not sandbox untrusted code; review third-party plugins before installing them.
  • Hosted demo: demo.reliaforge.dev has no backend and sends no management requests.

Report suspected security issues privately following SECURITY.md in the affected repository.

Released under the MIT License.