fluentd-docker-image icon indicating copy to clipboard operation
fluentd-docker-image copied to clipboard

Vulnerability scanner is flagging the image (v1.15) for containing private keys

Open rivky9505 opened this issue 3 years ago • 1 comments

Hello 👋

We recently added a vulnerability scan on the fluentd image (v1.15) using a Check-Point tool called SourceGuard, the scan results are flagging fluentd images for containing test certs. For example:

/usr/local/bundle/gems/fluentd-1.14.0/test/plugin_helper/data/cert/cert_chains/ca-cert-key.pem
/usr/local/bundle/gems/fluentd-1.14.0/test/plugin_helper/data/cert/with_ca/cert-key.pem
/usr/local/bundle/gems/fluentd-1.14.0/test/plugin_helper/data/cert/without_ca/cert-key.pem
/usr/local/bundle/gems/fluentd-1.14.0/test/plugin_helper/data/cert/with_ca/cert-key-pass.pem
/usr/local/bundle/gems/fluentd-1.14.0/test/plugin_helper/data/cert/without_ca/cert-key-pass.pem
/usr/local/bundle/gems/fluentd-1.14.0/test/plugin_helper/data/cert/cert-key.pem
/usr/local/bundle/gems/fluentd-1.14.0/test/plugin_helper/data/cert/cert_chains/cert-key.pem
/usr/local/bundle/gems/fluentd-1.14.0/test/plugin_helper/data/cert/with_ca/ca-cert-key-pass.pem
/usr/local/bundle/gems/fluentd-1.14.0/test/plugin_helper/data/cert/with_ca/ca-cert-key.pem

I think these test certs (and probably the entire test folder) could be removed from the final docker image. WDYT? I'd be happy to contribute a PR.

Thanks!

rivky9505 avatar Jul 11 '22 15:07 rivky9505

As you mentioned, it is prepared for testing purposes. PRs are welcome.

kenhys avatar Dec 09 '22 00:12 kenhys