In JetBrains TeamCity prior to 2022.04.2 the private SSH key could be written to the build log in some cases
jetbrains teamcity