-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fetch trusted CA from the main cluster. (#2487)
This PR fixes an issue with tsh login. Here is a flaw in logic described using the following scenario: Assume there are two clusters, 'main' and 'east'. 1. User logs into the first cluster 'main' 2. Selects the cluster 'east' in the profile 3. Next day, logs in again 4. Client pulls the trusted CA from the cluster 'main' as a part of SSH login procedure and adds to the keystore 5. Client connects to cluster 'east' because it is set as a current cluster in the profile 6. Client attempts to connect to the auth server of the cluster 'east' and fails because it does not trust the certificate of the 'east' yet, only 'main. This PR fixes the issue by making sure the client always connects to the cluster 'main' in the step 5 instead.
- Loading branch information
1 parent
f5af491
commit 7fc238e
Showing
6 changed files
with
46 additions
and
21 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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