-
Bug
-
Resolution: Fixed
-
Critical
-
None
-
windows
When an accurev command fails, it displays the users' password in plain text. You can see below that the password is properly obscured (with asterisks) when the authentication takes place.
Unfortunately, the password is actually displayed in the fatal network error line. Note that I manually changed it to ^^^^ when I pasted the text into this bug report.
Error text:
Started by user anonymous
Building remotely on TestReport in workspace D:\jenkins-slave\workspace\Test_Report_06_04_00_Budgeting_kvh223_WFOP_Macys_ora
Purging workspace...
Workspace purged.
Setting ACCUREV_HOME to "D:\jenkins-slave\workspace"
Authenticating with Accurev server...
[Test_Report_06_04_00_Budgeting_kvh223_WFOP_Macys_ora] $ "C:\Program Files (x86)\AccuRev\bin\accurev.exe" login -H engaccurev:5051 tim.johnston ********
FATAL: network error - Can't connect to engaccurev.kronos.com for accurev: The operation completed successfully.
Attempt to contact AccuRev server on engaccurev port 5051 failed.
Giving up.
AccuRev Error: 1
FATAL: login ("C:\Program Files (x86)\AccuRev\bin\accurev.exe" login -H engaccurev:5051 tim.johnston ^^^^^^^) failed with exit code 1
Archiving artifacts
Recording test results
Notifying upstream projects of job completion
Finished: FAILURE
I too have found this password unmasked in the emails that are sent. I've never used GitHub, so I don't know if this is something I can look for, and submit a but fix too, but I wanted to add where I was seeing this issue.
We had a network connectivity issue, and when it sent an email that the build failed it included the command that was executed twice. The first time it masked the password.
Authenticating with Accurev server...
[workspace] $ "C:\Program Files (x86)\AccuRev\bin\accurev.exe" login -H ACCUREVSERVERNAME:5050 dsimmon ********
Then at the bottom of the email it dumped out the full command with the password unmasked.
FATAL: login ("C:\Program Files (x86)\AccuRev\bin\accurev.exe" login -H ACCUREVSERVERNAME:5050 dsimmon UNMASKEDPASSWORDWASDISPLAYEDHERE) failed with exit code 1