Restrict operator HTTP to loopback

This commit is contained in:
Meta Vens 2026-08-18 21:44:53 +02:00
commit f7c9db29be
8 changed files with 54 additions and 7 deletions

View file

@ -828,6 +828,13 @@ rejects `ReplaceResolutionPins`. Fission candidates are restricted to active
population leaves at the player's canonical current location; remote population
names remain in the operator surface.
The operator surface now has a real HTTP boundary. Axum carries the direct TCP
peer address into the operator inspector and provider-parallelism handlers;
only loopback plus a valid campaign session is admitted. LAN/WireGuard tester
peers receive `403`, and the browser hides the operator panel away from
loopback. Do not replace this with trusted forwarded headers unless a named
reverse proxy becomes the actual connection owner.
## Warnings
- Keep persistent state small. Git history and artifacts own chronology.

View file

@ -335,6 +335,14 @@ It likewise exposes only the number of operator pins and local active
population leaves eligible for a fission preview. Pin bodies, remote population
names, and `ReplaceResolutionPins` remain outside the player boundary.
HTTP operator inspection and provider-parallelism mutation require both an
authenticated campaign session and an actual loopback TCP peer. The daemon uses
Axum connection metadata from its direct listener; forwarded address headers do
not grant authority. LAN and WireGuard peers receive `403` before spoiler state
or controls are read. The browser operator panel is present only when loaded
from `127.0.0.1`, `localhost`, or `::1`; this mirrors the server boundary and is
not itself treated as security.
Global strategic context has a separate non-causal lane. Two stable broad Vault
queries run alongside local retrieval, and a Flash extraction stage proposes at
most 32 remote institution names with one short durable mandate each. Local code