Skip to content
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

Fixed regressions in "tsh login <clusterName>". #3639

Merged
merged 3 commits into from
Apr 29, 2020
Merged

Conversation

russjones
Copy link
Contributor

@russjones russjones commented Apr 28, 2020

Description

Fixed regressions in how the cluster name was set in the profile when doing tsh login <clusterName>. The following examples illustrate expected behavior.

Suppose root cluster is example.com and the leaf cluster is leaf.example.com.

  • tsh login will update profile to example.com.
  • tsh login example.com will update profile to example.com.
  • tsh login leaf.example.com will update profile to leaf.example.com.
  • tsh login invalid.example.com will return an error.

Note: The profile will not be updated if an identity flag is provided. This means the following command will NOT update the profile:

tsh --proxy=example.com login --out=certs.pem leaf.example.com

Related Issues

Fixes #3550
Fixes #3102

lib/client/api.go Outdated Show resolved Hide resolved
Fixed regressions in how the cluster name was set in the profile when
doing "tsh login <clusterName>". The following examples illustrate
expected behavior.

Suppose root cluster is example.com and the leaf cluster is
leaf.example.com.

* "tsh login" will update profile to example.com.
* "tsh login example.com" will update profile to example.com.
* "tsh login leaf.example.com" will update profile to
  leaf.example.com.
* "tsh login invalid.example.com" will return an error.

Note: The profile is only updated when a identity flag is NOT provided.
This means the following command will NOT update the profile:

tsh --proxy=example.com login --out=certs.pem leaf.example.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants