mirror of
https://github.com/gravitational/teleport.git
synced 2026-11-01 21:52:02 +08:00
* 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