Mask secrets in logs
complete
Andres None
Secrets may be accidentally printed in the build logs. Travis hide them in the logs masking them as [secret] every time that it finds a match with the provided secrets. See https://discuss.circleci.com/t/masking-secrets-in-output-logs/22231
CCI-I-397
Erwan Baynaud
A whitelist should be implemented!
Y
Yvan
Circle CI currently masks every occurence of ENV variables value. In our project, we have
RAILS_ENV: test
set in config.yml resulting in all occurrences of test
being masked from our build output.Our test files path looks like
test/models/xxxxxx_test.rb
, so these kind of paths now then become ****/models/xxxxxx_****.rb
making copy pasting the path more difficult and confusing, especially for beginners in our team.Could you add some sort of whitelist, or even better mask only env vars set in Circle CI Admin UI and not what is in
config.yml
, since it is a file in a repo, and there is no reason to write secrets there as good practices says that repos should not contain any secret.Y
Yvan
It seems that we have an ENV var set in our
config.yml
wich is RAILS_ENV=test
. And the Circle CI masks very occurrences of test
in our CI output. I assume this, because the documentation is not clear about what exactly is masked and how to add/remove a masked term.So, copy tasting a test file path from Circle CI is now broken and has to be fixed manually.
H
Haikal Pribadi
Are some users randomly picked to be tested on this beta feature? Cause I think we are being affected by it, and it's incorrectly masking information that we need to see in the logs!!!!! We submitted an issue ticket yesterday and no one has responded so far :(
Y
Yasmany Cubela Medina
And how should we protect in the meanwhile? this secrets are suppose to be secrets for a reason. IMHO this is a highest security priority
G
George Reyes
We agree that masking the variables in the log output would be a very valuable feature for CircleCI to have. However, the work is currently behind other high-urgency items that are necessary to maintain the stability of our platform. We will consider this feature again in the future.
P
Piotr.sroczkowski@brainhub.pl
IMO it should depend on the configuration because sometimes I want to check whether I passed a correct env.
A
Alexandre Kaskasoli
I'm a bit flabbergasted that this isn't already a thing for CircleCI.
C
Christer Edvartsen
This feature should absolutely be prioritized imho.
Load More
→