10 Commits

Author SHA1 Message Date
Steven Martin 7119b1ac38 Fix log messages and tsh command description (#61037)
* Fix log spelling

* Fix spelling in kube-kind command description
2025-11-05 15:31:30 +00:00
rosstimothy 7541d6d7d0 Introduce logtest package (#56741)
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.
2025-07-15 18:11:10 +00:00
fheinecke b178b8b732 Updated Teleport codebase to AGPL3 license (#35259)
Signed-off-by: Fred Heinecke <fred.heinecke@goteleport.com>
2023-12-01 17:48:14 +00:00
Jakub Nyckowski 0ee91f6c37 Enable GCI linter (#17894) 2022-10-28 20:20:28 +00:00
Russell Jones f072fabf44 Refactor tests under secret package.
Refactored all tests under "lib/secret" to use testify instead
of gocheck.

Co-authored-by: Roman Tkachenko <roman@goteleport.com>
2022-07-15 18:15:56 -07:00
Andrew Lytvynov fc1c1dbd14 Move all utils.InitLoggerForTests calls to TestMain
This prevents data races between changing the standard logger and it
acutally being used.
2021-02-23 18:04:55 -08:00
Andrew Lytvynov 5ca68f2351 Remove 'var _ = fmt.Printf' from *_test.go files (#5438)
These declarations serve no purpose, likely leftover from old debugging.
2021-01-29 17:01:10 -08:00
a-palchikov 7c87576a8b flaky tests: consistent logging (#4849)
* 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
2020-12-07 15:35:15 +01:00
Russell Jones 59ae3fd722 Allow tsh to connect to legacy clusters.
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.
2019-06-24 13:39:31 -07:00
Russell Jones 2a6328dedc Replace NaCl with AES-GCM.
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.
2019-03-18 14:55:43 -07:00