Files
tailscale/k8s-operator
Mike JensenandTom Meadows 8d72eeef6f k8s-operator/sessionrecording: harden recording upload end handling (#22752) (#22765)
* 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


* 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


---------

Change-Id: I0fda3c9138daf8b2988edb149f5044a491fb1f6f

(cherry picked from commit 6847263baf)

Signed-off-by: chaosinthecrd <[email protected]>
Co-authored-by: Tom Meadows <[email protected]>
2026-12-01 08:59:23 -05:00
..