Care to explain? Keeping private keys inside the repo sounds fine for me as long as these keys are only used for local development, they are rotated regularly and are only valid for localhost (in case of TLS certs).
Checking in fake private keys is fine for testing. Why is it bad, out of principle, just in case you check in bad private key? I think that's a bad argument because there are a lot of benefits to being able to run end-to-end tests with some key.
People check in fake private keys to git repos all the time for testing. My own tests have private keys too. They're just sample, unused, publicly advertised private keys I found online. They're useful to make sure your code is working end to end with some private key.
Though I would expect these keys to be just some stub config values which allowed engineers to quickly run the shit locally.
Continue this thread — 2 replies
Likewise if someone searched HN for this string he'd find your comment (:
EDIT: For example, here: https://ospkibook.sourceforge.net/docs/OSPKI-2.4.7/OSPKI-htm...
or here: https://docs.vmware.com/en/VMware-NSX-Data-Center-for-vSpher...
or: https://www.ietf.org/archive/id/draft-bre-openpgp-samples-01...