auth0 / node-jwks-rsa

A library to retrieve RSA public keys from a JWKS (JSON Web Key Set) endpoint.
MIT License
836 stars 236 forks source link

keys used for testing bundled unnecessarily? #283

Closed chrismichaelmurphy closed 2 years ago

chrismichaelmurphy commented 2 years ago

Describe the problem

The distributed npm package contains keys as part of the test folder. (Container) scanning tools like Twistlock raise compliance issues, e.g.

Type:              compliance
Sev.:              high
Description:       Private keys stored in image
Found: /opt/app-root/node_modules/agent-base/test/ssl-cert-snakeoil.key

The files are not needed for running the app in production, and could be removed as part of the container build or I can add an .npmignore to ignore the test folder.

What was the expected behavior?

No test ssl keys in the package.

Reproduction

Environment