Reputation: 11
I am seeing the following issues While secrets/passwords are redacted in jenkins console log, redirecting output to a file prints teh secrets / passwords in plain text even with mask passwords plugin enabled
Steps to reproduce: Create new freestyle job and do teh following steps
env 2>&1 | tee "log.log"
open log.log and you will see the passwords printed in plain text
Is there any way to hide passwords / secrets from redirected output?
Upvotes: 1
Views: 1003
Reputation: 2214
Unfortunately no. Once you redirect output to a file it's no longer managed by Jenkins and you have provide your own secret obfuscation.
Upvotes: 1