tailscale/cmd/derper
Marwan Sulaiman b819f66eb1 tsweb: propagate RequestID via context and entire request
The recent addition of RequestID was only populated if the
HTTP Request had returned an error. This meant that the underlying
handler has no access to this request id and any logs it may have
emitted were impossible to correlate to that request id. Therefore,
this PR adds a middleware to generate request ids and pass them
through the request context. The tsweb.StdHandler automatically
populates this request id if the middleware is being used. Finally,
inner handlers can use the context to retrieve that same request id
and use it so that all logs and events can be correlated.

Updates #2549

Signed-off-by: Marwan Sulaiman <marwan@tailscale.com>
2023-11-30 15:00:29 -05:00
..
bootstrap_dns_test.go cmd/derper: count bootstrap dns unique lookups. 2023-08-17 08:02:56 -07:00
bootstrap_dns.go cmd/derper: count bootstrap dns unique lookups. 2023-08-17 08:02:56 -07:00
cert.go cmd/derper: disable http2 2023-04-26 20:45:32 -07:00
depaware.txt tsweb: propagate RequestID via context and entire request 2023-11-30 15:00:29 -05:00
derper_test.go net/packet: split off checksum munging into different pkg 2023-10-11 14:25:58 -07:00
derper.go cmd/derper,tsweb: consistently add HTTP security headers (#8579) 2023-07-11 11:53:46 -07:00
mesh.go derp/derphttp: fix race in mesh watcher 2023-10-31 19:24:25 +00:00
websocket.go net/wsconn: accept a remote addr string and plumb it through 2023-08-29 16:57:16 -07:00