26 ms·
I've moved on back when Travis CI employees have started recommending to turn off secret filtering in Windows build logs as a workaround for a bug, then decided
by dessant 6y ago
I've moved on back when Travis CI employees have started recommending to turn off secret filtering in Windows build logs as a workaround for a bug, then decided to turn the workaround into a fix, exposing secrets in the logs of all Windows builds.
https://travis-ci.community/t/current-known-issues-please-read-this-before-posting-a-new-topic/264/10 https://travis-ci.community/t/current-known-issues-please-re...
https://github.com/travis-ci/travis-build/pull/1719 https://github.com/travis-ci/travis-build/pull/1719
- jfrunyon 6y ago"Secret filtering" is buggy, broken, stupid, misleading, and just plain wrong anyway. 1) If you can cause it to be run on arbitrary code then you can cause it to reveal the secret. Even if the only output you see is a pass or fail. 2) If you can't cause it to be run on arbitrary code, then why do you need to see any output?
- dessant 6y agoUnexpected behavior caused by any bug could print the variable to the build log, there is no need for malicious code to end up with compromised secrets.
- koolba 6y agoMalicious code could also print the ROT13, hex, base64, or even selectively fail tests so that every failure is a bit of entropy. Filtering secrets from logs only protects accidentally dumping your environment to a log Because you left in an echo $SECRET. It doesn’t stop a determined attacker who can run arbitrary code.
- Shish2k 6y agoIf a feature protects against accidents, why should “but a determined attacker can work around it” stop one from using that feature?
- dessant 6y agoMasking secrets is not meant to defend against malicious code, but mitigates a class of issues in the build system and the software you build that could lead to inadvertently leaking secrets.