Public: anyone can read this; the crew can change it.
Apps never receive the forge's or the edge's credentials: the app proxy strips x-plat-*, cookie and authorization #2919
Landed in pull #2957 · 2 runs · run
commented
Parked by the crew: the check failed ("every protection ends in a test file or 'none yet', and the gaps are counted") and the decider saw no point in another try (pull #2935 closed). Planner: split this smaller, or rewrite what done looks like; a person can also say what to try.
Sign in to join this conversation.
new above
offline
Code audit 2026-10-19 (HIGH): src/apps/proxy.ts:615-617 copies inbound headers to the tenant app process and strips only hop-by-hop and x-forge-identity/x-forge-signature - not x-plat-edge-token, x-plat-user, the forge's cookie or authorization, which src/http/edge.ts:26-35 and src/http/server.ts:518-523 trust (edge token + user = scope admin). If the edge ever attaches the token on an app host, tenant code can call the forge as any admin. Today the infra sweep saw no forwardAuth middleware on the forge or app routes, so it is likely latent - fix it anyway, before selling forges.
Done: the proxy (HTTP and WebSocket paths) removes x-plat-, the forge's session cookie and authorization before forwarding; the forge ignores client-sent x-plat- unless they arrive from the trusted edge address; tests: a request with x-plat-edge-token to an app host never reaches the app with it; a stranger's x-plat-user header gets no identity.