Skip to content

[v17] [tctl] Add support for debug sock endpoint with fallback in top#57027

Merged
okraport merged 1 commit intobranch/v17from
okraport/backport-56886-branch/v17
Jul 22, 2025
Merged

[v17] [tctl] Add support for debug sock endpoint with fallback in top#57027
okraport merged 1 commit intobranch/v17from
okraport/backport-56886-branch/v17

Conversation

@okraport
Copy link
Copy Markdown
Contributor

Backport #56886 to branch/v17

changelog: tctl top now supports the local unix sock debug endpoint.

* [tctl] Add support for debug sock endpoint with fallback in top

With this change `tctl top` will now attempt to connect to the local
socket debug endpoint before defaulting to the default diag addr.

If the user specifies the endpoint explicitly then the command will
always attempt the given address regardless of success. This matches
previous behavior.

The implementation is not concurrent as only two options exist, both
of which are local and not expected to have long round trips.

Closes: #56673

changelog: `tctl top` now supports the local unix sock debug endpoint.

* refactor: Simplify top address behaviour based on PR feedback

* Refactor top to reuse debug client for metrics.

* fix linting issues

* Update docs to match support for unix sockets

* Fix imports

* refactor debug service

* clean up error handling in top command

* Add footer display for addr

* Docs for diag/client

* update docs and add addr parser tests

* More docs fixes

* Fix linting after rebase

* Better godocs, more URL test cases, fixed user facing errors

* Fix err trace wrapping semantics

---------

Co-authored-by: Tim Ross <tim.ross@goteleport.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jul 22, 2025

Amplify deployment status

Branch Commit Job ID Status Preview Updated (UTC)
okraport/backport-56886-branch/v17 HEAD 1 ✅SUCCEED okraport-backport-56886-branch-v17 2025-07-22 13:13:41

@okraport okraport enabled auto-merge July 22, 2025 13:24
@okraport okraport added this pull request to the merge queue Jul 22, 2025
@public-teleport-github-review-bot public-teleport-github-review-bot Bot removed the request for review from espadolini July 22, 2025 16:10
Merged via the queue into branch/v17 with commit 0d25056 Jul 22, 2025
43 checks passed
@okraport okraport deleted the okraport/backport-56886-branch/v17 branch July 22, 2025 16:29
@fheinecke fheinecke mentioned this pull request Jul 22, 2025
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.

3 participants