Skip to content

Track user connections across clusters#32688

Merged
rosstimothy merged 1 commit intomasterfrom
tross/track_connections_across_clusters
Oct 4, 2023
Merged

Track user connections across clusters#32688
rosstimothy merged 1 commit intomasterfrom
tross/track_connections_across_clusters

Conversation

@rosstimothy
Copy link
Copy Markdown
Contributor

Ensure that proxy_ssh_sessions_total is incremented in both the root and the leaf cluster if a session to a node in the leaf cluster is established through the root cluster. This now also prevents leaf clusters from terminating during a graceful shutdown if there is an active connection that was created from the root.

Fixes #32605.

Comment thread lib/reversetunnel/agentpool.go Outdated
Comment thread lib/reversetunnel/srv.go Outdated
Comment thread lib/reversetunnel/transport.go Outdated
Comment thread lib/sshutils/server.go Outdated
@rosstimothy rosstimothy force-pushed the tross/track_connections_across_clusters branch from 1a52cb3 to 260e43a Compare September 28, 2023 14:03
@rosstimothy rosstimothy marked this pull request as ready for review September 28, 2023 14:22
Comment thread lib/reversetunnel/transport.go Outdated
Comment thread lib/reversetunnel/agentpool.go Outdated
Comment thread lib/reversetunnel/transport.go Outdated
@rosstimothy
Copy link
Copy Markdown
Contributor Author

Friendly ping @gabrielcorado @fspmarshall

Ensure that `proxy_ssh_sessions_total` is incremented in both the
root and the leaf cluster if a session to a node in the leaf cluster
is established through the root cluster. This now also prevents
leaf clusters from terminating during a graceful shutdown if there
is an active connection that was created from the root.

Fixes #32605.
@rosstimothy rosstimothy force-pushed the tross/track_connections_across_clusters branch from 59baf3f to 2320a4f Compare October 4, 2023 14:00
@rosstimothy rosstimothy enabled auto-merge October 4, 2023 14:00
@rosstimothy rosstimothy added this pull request to the merge queue Oct 4, 2023
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 4, 2023
@rosstimothy rosstimothy added this pull request to the merge queue Oct 4, 2023
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 4, 2023
@rosstimothy rosstimothy added this pull request to the merge queue Oct 4, 2023
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 4, 2023
@rosstimothy rosstimothy added this pull request to the merge queue Oct 4, 2023
Merged via the queue into master with commit 24ebac9 Oct 4, 2023
@rosstimothy rosstimothy deleted the tross/track_connections_across_clusters branch October 4, 2023 15:52
@public-teleport-github-review-bot
Copy link
Copy Markdown

@rosstimothy See the table below for backport results.

Branch Result
branch/v12 Failed
branch/v13 Failed
branch/v14 Create PR

rosstimothy added a commit that referenced this pull request Oct 5, 2023
Ensure that `proxy_ssh_sessions_total` is incremented in both the
root and the leaf cluster if a session to a node in the leaf cluster
is established through the root cluster. This now also prevents
leaf clusters from terminating during a graceful shutdown if there
is an active connection that was created from the root.

Fixes #32605.
@rosstimothy
Copy link
Copy Markdown
Contributor Author

Also closes #17152

rosstimothy added a commit that referenced this pull request Oct 5, 2023
Ensure that `proxy_ssh_sessions_total` is incremented in both the
root and the leaf cluster if a session to a node in the leaf cluster
is established through the root cluster. This now also prevents
leaf clusters from terminating during a graceful shutdown if there
is an active connection that was created from the root.

Fixes #32605.
rosstimothy added a commit that referenced this pull request Oct 5, 2023
#32688 added support for tracking connections to sessions via a
reverse tunnel node but failed to account for sessions to direct
dial nodes.
rosstimothy added a commit that referenced this pull request Oct 5, 2023
Ensure that `proxy_ssh_sessions_total` is incremented in both the
root and the leaf cluster if a session to a node in the leaf cluster
is established through the root cluster. This now also prevents
leaf clusters from terminating during a graceful shutdown if there
is an active connection that was created from the root.

Fixes #32605.
rosstimothy added a commit that referenced this pull request Oct 5, 2023
#32688 added support for tracking connections to sessions via a
reverse tunnel node but failed to account for sessions to direct
dial nodes.
rosstimothy added a commit that referenced this pull request Oct 5, 2023
#32688 added support for tracking connections to sessions via a
reverse tunnel node but failed to account for sessions to direct
dial nodes.
github-merge-queue Bot pushed a commit that referenced this pull request Oct 5, 2023
#32688 added support for tracking connections to sessions via a
reverse tunnel node but failed to account for sessions to direct
dial nodes.
github-actions Bot pushed a commit that referenced this pull request Oct 5, 2023
#32688 added support for tracking connections to sessions via a
reverse tunnel node but failed to account for sessions to direct
dial nodes.
github-merge-queue Bot pushed a commit that referenced this pull request Oct 5, 2023
* Break client facing types out of reversetunnel package

Backports part of #28357 to branch/v13

* Track user connections across clusters (#32688)

Ensure that `proxy_ssh_sessions_total` is incremented in both the
root and the leaf cluster if a session to a node in the leaf cluster
is established through the root cluster. This now also prevents
leaf clusters from terminating during a graceful shutdown if there
is an active connection that was created from the root.

Fixes #32605.

* Track connections to direct dial nodes across clusters

#32688 added support for tracking connections to sessions via a
reverse tunnel node but failed to account for sessions to direct
dial nodes.
github-merge-queue Bot pushed a commit that referenced this pull request Oct 5, 2023
* Break client facing types out of reversetunnel package

Backports part of #28357 to branch/v13

* Track user connections across clusters (#32688)

Ensure that `proxy_ssh_sessions_total` is incremented in both the
root and the leaf cluster if a session to a node in the leaf cluster
is established through the root cluster. This now also prevents
leaf clusters from terminating during a graceful shutdown if there
is an active connection that was created from the root.

Fixes #32605.

* Track user connections across clusters (#32688)

Ensure that `proxy_ssh_sessions_total` is incremented in both the
root and the leaf cluster if a session to a node in the leaf cluster
is established through the root cluster. This now also prevents
leaf clusters from terminating during a graceful shutdown if there
is an active connection that was created from the root.

Fixes #32605.

* Track connections to direct dial nodes across clusters

#32688 added support for tracking connections to sessions via a
reverse tunnel node but failed to account for sessions to direct
dial nodes.
github-merge-queue Bot pushed a commit that referenced this pull request Oct 9, 2023
#32688 added support for tracking connections to sessions via a
reverse tunnel node but failed to account for sessions to direct
dial nodes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

proxy_ssh_sessions_total is not always updated

4 participants