Skip to content

[v14] make tsh match against discovered db name#31838

Merged
GavinFrazar merged 1 commit intobranch/v14from
bot/backport-31689-branch/v14
Sep 14, 2023
Merged

[v14] make tsh match against discovered db name#31838
GavinFrazar merged 1 commit intobranch/v14from
bot/backport-31689-branch/v14

Conversation

@GavinFrazar
Copy link
Copy Markdown
Contributor

Backport #31689 to branch/v14

* disallow prefix matching
* select by exact name match first,
* otherwise look for unambiguous discovered name label match.
* look for an active db to resolve discovered name match ambiguity.
* add more predicate builder helpers
* check for db name in not found error for stale cert hint
* no error status on tsh db logout with no logged in dbs
* remove dead code
* refactor helper funcs to simplify code and make it easier to test
* test complex database selection
* test findActiveDatabase
* test choosing one db by discovered name
* add more resource selectors tests
* test formatDatabaseLoginCommand
* add debug logging for db selection
@github-actions github-actions Bot added backport size/md tsh tsh - Teleport's command line tool for logging into nodes running Teleport. labels Sep 13, 2023
@GavinFrazar GavinFrazar added this pull request to the merge queue Sep 14, 2023
Merged via the queue into branch/v14 with commit fab477a Sep 14, 2023
@GavinFrazar GavinFrazar deleted the bot/backport-31689-branch/v14 branch September 14, 2023 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport 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.

3 participants