Files
tailscale/k8s-operator
Tom Meadows 6847263baf k8s-operator/sessionrecording: harden recording upload end handling (#22752)
* k8s-operator/sessionrecording: harden recording upload end handling

The session recording hijacker treated a recording upload that ended
without an error as finished, whether or not its session had ended.

This fixes this by checking that the session's connection was closed
first, and otherwise handling the end like an upload error (so the
session's recording failure policy applies), as ssh/tailssh does.

Updates tailscale/corp#51365

Change-Id: I909c6e48f43dc295b7c4b1e5762abe4e8aa6a484
Signed-off-by: chaosinthecrd <[email protected]>

* k8s-operator/sessionrecording: test recording upload end handling

This adds Test_Hijacker cases for a recording upload that ends without an
error, both after the session's connection was closed and while it is
still open, for each recording failure policy.

Updates tailscale/corp#51365

Change-Id: If021c7fa8fea52301dde058a481d84cad23fd185
Signed-off-by: chaosinthecrd <[email protected]>

---------

Signed-off-by: chaosinthecrd <[email protected]>
2026-11-30 13:20:33 -07:00
..