Skip to content

Reduce login latency#28499

Merged
rosstimothy merged 1 commit intomasterfrom
tross/tsh_login_latency
Jul 5, 2023
Merged

Reduce login latency#28499
rosstimothy merged 1 commit intomasterfrom
tross/tsh_login_latency

Conversation

@rosstimothy
Copy link
Copy Markdown
Contributor

@rosstimothy rosstimothy commented Jun 29, 2023

Reuse the root cluster auth client during the login process to reduce latency.

Closes #26712.
Partially addresses #26712.

@rosstimothy rosstimothy force-pushed the tross/tsh_login_latency branch 5 times, most recently from 2b54b3b to bf4676a Compare June 30, 2023 15:05
@rosstimothy
Copy link
Copy Markdown
Contributor Author

Both login attempts below were performed from the same host to the same cloud tenant. Note: this branch also includes the login improvements added in #26968.

tsh login on this branch:

image

tsh login with tsh v13.1.5:

image

@rosstimothy rosstimothy marked this pull request as ready for review June 30, 2023 17:53
@github-actions github-actions Bot added size/md tsh tsh - Teleport's command line tool for logging into nodes running Teleport. labels Jun 30, 2023
@github-actions github-actions Bot requested review from gzdunek and ryanclark June 30, 2023 17:53
@rosstimothy rosstimothy requested a review from GavinFrazar June 30, 2023 17:53
@rosstimothy rosstimothy force-pushed the tross/tsh_login_latency branch from bf4676a to 7e083c8 Compare June 30, 2023 19:01
Copy link
Copy Markdown
Contributor

@GavinFrazar GavinFrazar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with a few nits. One more that I couldn't add since the lines weren't in the diff: should update TeleportClient.DeviceLogin and TeleportClient.Login godoc to remove mention of ActivateKey, since the former doesn't use it anymore and the latter should advise passing the key to ConnectToRootCluster.

Comment thread tool/tsh/common/tsh.go Outdated
Comment thread api/observability/tracing/tracing.go Outdated
Comment thread lib/client/api.go Outdated
@public-teleport-github-review-bot public-teleport-github-review-bot Bot removed the request for review from gzdunek July 5, 2023 15:17
Reuse the root cluster auth client during the login process
to reduce latency.

Closes #26712.
Partially addresses #26712.
@rosstimothy rosstimothy force-pushed the tross/tsh_login_latency branch from 37119ed to 4c77740 Compare July 5, 2023 15:34
@rosstimothy rosstimothy enabled auto-merge July 5, 2023 15:34
@rosstimothy rosstimothy added this pull request to the merge queue Jul 5, 2023
Merged via the queue into master with commit 119dc7a Jul 5, 2023
@rosstimothy rosstimothy deleted the tross/tsh_login_latency branch July 5, 2023 16:10
rosstimothy added a commit that referenced this pull request Jul 5, 2023
#28499 missed adding the augmented device certificates retrieved from
DeviceLogin to the local agent which causes TestNodeAccess to fail.
This was not caught in #28499 because TestNodeAccess is in `e` and
tests from `e` are not run on `oss` PRs.
github-merge-queue Bot pushed a commit that referenced this pull request Jul 5, 2023
#28499 missed adding the augmented device certificates retrieved from
DeviceLogin to the local agent which causes TestNodeAccess to fail.
This was not caught in #28499 because TestNodeAccess is in `e` and
tests from `e` are not run on `oss` PRs.
ravicious pushed a commit that referenced this pull request Jul 11, 2023
Reuse the root cluster auth client during the login process
to reduce latency.

Closes #26712.
Partially addresses #26712.
ravicious pushed a commit that referenced this pull request Jul 11, 2023
#28499 missed adding the augmented device certificates retrieved from
DeviceLogin to the local agent which causes TestNodeAccess to fail.
This was not caught in #28499 because TestNodeAccess is in `e` and
tests from `e` are not run on `oss` PRs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/md tsh tsh - Teleport's command line tool for logging into nodes running Teleport.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

reduce ConnectToProxy calls in tsh

3 participants