Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v14] Prevent web ui SSH connections from leaking #41519

Merged
merged 1 commit into from
May 14, 2024

Conversation

rosstimothy
Copy link
Contributor

Backport #41501 to branch/v14

Changelog: Prevent SSH connections opened in the UI from leaking if the browser tab is closed while the SSH connection is being established.

The session closing in TerminalHandler.Close did not always close
established ssh sessions if the client closed the web socket
at any point between the new browser tab being opened and the session
being established. In these cases the SSH connection was leaked for
the duration of the Proxy process. To ensure sessions are always
terminated a check to see if the client closed the web socket was
added prior to writing the session metadata and after the shell
is established for the ssh session.
@rosstimothy
Copy link
Contributor Author

rosstimothy commented May 14, 2024

Tests were omitted from the backport due to changes in how the WS communication works in branch/v14. It was going to require rewriting a considerable amount of the terminal and test code to support the new test added in #41501.

@rosstimothy rosstimothy marked this pull request as ready for review May 14, 2024 13:41
@rosstimothy rosstimothy added this pull request to the merge queue May 14, 2024
Merged via the queue into branch/v14 with commit eb0588d May 14, 2024
27 checks passed
@rosstimothy rosstimothy deleted the tross/backport-41501/v14 branch May 14, 2024 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants