Files
tailscale/ipn/ipnlocal
Mike Jensen d090b5ab68 ipn/ipnlocal: fix serve app caps leaking across mounts (#21931)
`serveWebHandler` wrote each mount's accepted app capabilities into the connection-scoped serveHTTPContext. Concurrent h2 streams of one TLS serve connection share that struct, so a request to a mount accepting no capabilities could be proxied carrying another mount's `Tailscale-App-Capabilities` header, letting backends that trust the header authorize the wrong mount.

This change fixes that issue by storing accepted capabilities per-request via a context value instead of a field on the shared struct.

Updates tailscale/corp#50380

Change-Id: I5d0a4a02266018f342ba75a1b3291176738ce05b

Signed-off-by: Mike Jensen <[email protected]>
(cherry picked from commit 566f89e0fb)
2026-10-27 20:12:08 +00:00
..
2026-07-10 17:39:16 -07:00
2026-07-30 14:16:53 -04:00