Files
teleport/integrations/lib
Andrew LeFevre 6fb284b786 expose logs of Teleport child processes (#61297)
* expose logs of Teleport child processes

Configures Teleport child proceses to log with the exact same
configuration as the parent process. Logs from child processes
previously were essentially discarded.

* Fix issues around os_log; Fix log spam from child process.

* Address comments; Fix lint.

* * Only write remote command failure errors to client tty

* Don't try to write errors to unserviced os.Stderr/Stdout of child process

* Don't connect networking stderr to parent process, just use logger

* Don't log client-responsible shell errors, e.g. shell interrupt

* Mention running teleport as root for common subprocess permission errors.

* Pass io.Discard pipe to child process if a log writer is not available.

* Fix tests with nil log writer.

* Add default child logger for tests.

* Fix lint.

* default to discard writer for tests.

* Write reexec errors to os.Stdout for parent process to digest.

* Address comments.

* Clean up child pipe copy logic.

* Cleanup log config inheritance.

* Address comments.

* Revert whitespace change.

* Fix typo.

* Fix merge conflict.

---------

Co-authored-by: joerger <bjoerger@goteleport.com>
2025-12-09 20:27:31 +00:00
..
2025-04-24 18:59:25 +00:00
2025-06-18 17:39:13 +00:00