-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Prevent web ui SSH connections from leaking #41501
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rosstimothy
force-pushed
the
tross/websshleak
branch
from
May 13, 2024 22:40
3d12357
to
2fbfa81
Compare
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
force-pushed
the
tross/websshleak
branch
from
May 13, 2024 23:11
2fbfa81
to
7633955
Compare
zmb3
approved these changes
May 14, 2024
marcoandredinis
approved these changes
May 14, 2024
public-teleport-github-review-bot
bot
removed the request for review
from rudream
May 14, 2024 10:46
@rosstimothy See the table below for backport results.
|
rosstimothy
added a commit
that referenced
this pull request
May 14, 2024
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
added a commit
that referenced
this pull request
May 14, 2024
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
added a commit
that referenced
this pull request
May 14, 2024
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
added a commit
that referenced
this pull request
May 14, 2024
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
added a commit
that referenced
this pull request
May 14, 2024
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
added a commit
that referenced
this pull request
May 14, 2024
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.
github-merge-queue bot
pushed a commit
that referenced
this pull request
May 14, 2024
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.
github-merge-queue bot
pushed a commit
that referenced
this pull request
May 14, 2024
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.
ptgott
pushed a commit
that referenced
this pull request
May 14, 2024
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.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Changelog: Prevent SSH connections opened in the UI from leaking if the browser tab is closed while the SSH connection is being established.