Add readyz socket endpoint to tbot for use by teleport-update#60477
Merged
Add readyz socket endpoint to tbot for use by teleport-update#60477
Conversation
strideynet
reviewed
Oct 23, 2025
| ) | ||
| } | ||
|
|
||
| if b.cfg.DiagSocketForUpdater != "" { |
Contributor
There was a problem hiding this comment.
@boxofrad - do you foresee any issues with multiple replicas of the diagnostics service running ? From our current architecture, I don't see any problems but figured you would know with more certainty.
Contributor
There was a problem hiding this comment.
I think it should be fine!
Member
Author
|
I realized that the new |
Contributor
|
Amplify deployment status
|
strideynet
approved these changes
Oct 28, 2025
Contributor
strideynet
left a comment
There was a problem hiding this comment.
LGTM - thank you for taking this on.
mmcallister
pushed a commit
that referenced
this pull request
Nov 6, 2025
* PID and readyz changes for tbot * remove teleport-update changes * tidy * tidy * godoc * linting, typos * lint * shared cli args + cli tests * lint * missing . * flag docs * pid example * Apply suggestion from @strideynet Co-authored-by: Noah Stride <noah.stride@goteleport.com> * windows fix * windows fix for merge queue * missing errors on windows --------- Co-authored-by: Noah Stride <noah.stride@goteleport.com>
sclevine
added a commit
that referenced
this pull request
Nov 7, 2025
* PID and readyz changes for tbot * remove teleport-update changes * tidy * tidy * godoc * linting, typos * lint * shared cli args + cli tests * lint * missing . * flag docs * pid example * Apply suggestion from @strideynet Co-authored-by: Noah Stride <noah.stride@goteleport.com> * windows fix * windows fix for merge queue * missing errors on windows --------- Co-authored-by: Noah Stride <noah.stride@goteleport.com>
sclevine
added a commit
that referenced
this pull request
Nov 10, 2025
* PID and readyz changes for tbot * remove teleport-update changes * tidy * tidy * godoc * linting, typos * lint * shared cli args + cli tests * lint * missing . * flag docs * pid example * Apply suggestion from @strideynet Co-authored-by: Noah Stride <noah.stride@goteleport.com> * windows fix * windows fix for merge queue * missing errors on windows --------- Co-authored-by: Noah Stride <noah.stride@goteleport.com>
sclevine
added a commit
that referenced
this pull request
Nov 10, 2025
* PID and readyz changes for tbot * remove teleport-update changes * tidy * tidy * godoc * linting, typos * lint * shared cli args + cli tests * lint * missing . * flag docs * pid example * Apply suggestion from @strideynet Co-authored-by: Noah Stride <noah.stride@goteleport.com> * windows fix * windows fix for merge queue * missing errors on windows --------- Co-authored-by: Noah Stride <noah.stride@goteleport.com>
This was referenced Nov 10, 2025
github-merge-queue bot
pushed a commit
that referenced
this pull request
Nov 11, 2025
#61190) * PID and readyz changes for tbot * remove teleport-update changes * tidy * tidy * godoc * linting, typos * lint * shared cli args + cli tests * lint * missing . * flag docs * pid example * Apply suggestion from @strideynet * windows fix * windows fix for merge queue * missing errors on windows --------- Co-authored-by: Noah Stride <noah.stride@goteleport.com>
github-merge-queue bot
pushed a commit
that referenced
this pull request
Nov 11, 2025
#61189) * PID and readyz changes for tbot * remove teleport-update changes * tidy * tidy * godoc * linting, typos * lint * shared cli args + cli tests * lint * missing . * flag docs * pid example * Apply suggestion from @strideynet * windows fix * windows fix for merge queue * missing errors on windows --------- Co-authored-by: Noah Stride <noah.stride@goteleport.com>
mmcallister
pushed a commit
that referenced
this pull request
Nov 19, 2025
* PID and readyz changes for tbot * remove teleport-update changes * tidy * tidy * godoc * linting, typos * lint * shared cli args + cli tests * lint * missing . * flag docs * pid example * Apply suggestion from @strideynet Co-authored-by: Noah Stride <noah.stride@goteleport.com> * windows fix * windows fix for merge queue * missing errors on windows --------- Co-authored-by: Noah Stride <noah.stride@goteleport.com>
mmcallister
pushed a commit
that referenced
this pull request
Nov 20, 2025
* PID and readyz changes for tbot * remove teleport-update changes * tidy * tidy * godoc * linting, typos * lint * shared cli args + cli tests * lint * missing . * flag docs * pid example * Apply suggestion from @strideynet Co-authored-by: Noah Stride <noah.stride@goteleport.com> * windows fix * windows fix for merge queue * missing errors on windows --------- Co-authored-by: Noah Stride <noah.stride@goteleport.com>
This file contains hidden or 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
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.
This PR instruments tbot for compatibility with
teleport-update.In #60478,
teleport-updatewill be updated to create a tbot.service file and manage tbot updates automatically, including restarting tbot.This PR adds the following features to tbot to accomplish this:
--diag-socket-for-updater /path/to/debug.socketwill create a new /readyz endpoint thatteleport-updatecan monitor for readiness. If tbot is unready after an update,teleport-updatewill revert it.teleport-updatecan use this to verify that the tbot responding on the socket is the target version of tbot.--pid-file. Before, the systemd service was configured to look for a PID file that was never created (bug fix).All three features are implemented by
teleportalready.changelog: instrument tbot to better support teleport-update
RFD: #47126
Goal (internal): https://github.com/gravitational/cloud/issues/14225