Files
teleport/lib/utils
Gavin Frazar ba7df65a0c support proxy db tunnel mfa access (#16958)
* Add local proxy middleware for db cert checking

* Use tls conversion util instead of inline

* Add middleware to local proxy config

* Add middleware configuration in tsh

* Use route to database check and set defaults func

* Dont trigger normal db login flow if using local proxy tunnel

* Split out adding client creds into helper func for testing

* Add integration test for local proxy tunnel db cert middleware

* Add unit test for local proxy middleware

* Update comment

* Make middleware on new conn block

* godoc

* Make any cert check error trigger cert renewal in local proxy middleware

* Move dbcertchecker into lib/client

* Remove unneeded mutex in local proxy and unused func in lib/utils

* Make local proxy middleware integration test more robust

* Print message before mfa prompt in proxy tunnel

* Add before prompt option to test

* Remove unneeded comment

* Change local proxy messages to be more clear

* Pass local proxy opts by reference

* Pass certs in opts instead of cert/key file path

This is so we can check if the error is recoverable while preparing
local proxy options. A tunneled local proxy can ignore the error because
it does not rely on cert files - it can just renew its certs if
necessary.

* Move db route checking back to tsh

* Fix lint err

* Fix typo and print the hint to same writer as the mfa prompt
2022-10-07 21:29:51 +00:00
..
2022-04-19 20:08:36 -06:00
2022-07-14 10:51:23 +00:00
2022-06-18 21:28:07 +00:00
2022-08-18 21:29:03 +00:00
2022-07-14 19:22:54 -07:00
2022-07-14 10:51:23 +00:00
2020-10-13 00:22:49 +00:00
2020-04-17 20:05:38 +00:00
2022-07-14 19:22:54 -07:00
2022-09-19 22:38:59 +00:00
2022-07-14 10:51:23 +00:00
2022-09-07 22:49:20 +00:00
2022-09-27 15:01:32 -07:00
2022-06-18 21:28:07 +00:00
2022-06-02 17:08:24 +00:00
2022-07-14 10:51:23 +00:00
2016-12-08 18:43:37 -08:00
2021-10-19 14:00:24 -04:00
2021-12-09 19:50:44 +00:00
2020-09-28 23:08:56 -07:00
2022-09-23 19:44:10 +00:00
2021-10-19 14:00:24 -04:00
2022-07-14 10:51:23 +00:00
2022-07-14 19:22:54 -07:00
2022-04-05 19:44:46 +00:00