teleport/tool/teleport
Gavin Frazar 2b2de5c6be
update tsh db resource selection (#28505)
* update tsh db resource selection

* add --labels and --query to tsh db subcommands
* tsh db [login | logout | env | config | connect]
* tsh proxy db

* add hasPrefix to predicate lang

* add teleport.dev/discovered-name
* print "discovered name" of databases discovered by discovery service,
  which is the name of the database resource in the cloud, when using
  tsh db ls without --verbose flag. This avoids printing verbose
  uniquely identifying names when discovery service is updated to append
  a uniquely identify suffix to discovered databases in AWS/Azure/GCP.
* tsh db ls --verbose ignores the label
* fix db connect string in tsh db ls

* select database by prefix, labels, and/or query predicate.
* chooses active database by exact match if the "prefix" matches exactly
  and no labels/predicate is given.
* logout of a subset of databases with tsh db logout.
* print an "ambiguous match" error if prefix/labels/query matches
  multiple databases where one is required.
* move all --labels cli flags to cf.Labels from cf.UserHost

* update tsh db tests
    * speedup slow tsh db tests
    * postgres/mysql profile respect home dir
    * rename test cases for consistency
    * test database listing uses discovered-name
    * test login/env/config/logout with prefix/label/predicate selectors
    * test active db filtering logic

* fix tests broken by merge
2023-07-14 23:41:32 +00:00
..
common Add an option to bootstrap database service to teleport discovery boostrap (#28720) 2023-07-12 14:29:30 +00:00
testenv update tsh db resource selection (#28505) 2023-07-14 23:41:32 +00:00
main.go Bump golangci-lint to v1.51.1 (#21440) 2023-02-08 00:44:08 +00:00