mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-24 02:31:18 -08:00
`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]>