Moves all test related logger initialization and creation to the
logtest package to reduce testing symbols in production code. The
existing helpers in lib/utils have been left in place until the
enterprise references can be converted.
Updates #51023.
* Update logrus package to fix data races
* Introduce a logger that uses the test context to log the messages so they are output if a test fails for improved trouble-shooting.
* Revert introduction of test logger - simply leave logger configuration at debug level outputting to stderr during tests.
* Run integration test for e as well
* Use make with a cap and append to only copy the relevant roles.
* Address review comments
* Update integration test suite to use test-local logger that would only output logs iff a specific test has failed - no logs from other test cases will be output.
* Revert changes to InitLoggerForTests API
* Create a new logger instance when applying defaults or merging with file service configuration
* Introduce a local logger interface to be able to test file configuration merge.
* Fix kube integration tests w.r.t log
* Move goroutine profile dump into a separate func to handle parameters consistently for all invocations
While moving from lemma (NaCl based) to the new internal secret package
(AES-GCM based), Teleport was updated to allow older tsh clients to
connect to newer proxies. Support to allow newer tsh clients to connect
to older proxies was omitted.
To allow newer tsh clients to connect to older proxies, Teleport
attempts to decrypt the response payload using the new secret
package, and if it fails, attempts to use the legacy lemma package.
In addition, the secret key that tsh generates is encoded in the new as
well as older format when submitting the client submits the request to
Teleport.
Added github.com/gravitational/teleport/lib/secret package to replace
github.com/mailgun/lemma to move from NaCl to AES-GCM. NaCl is still
supported for legacy clients.