Reputation: 22404
Let's say we generate a self-signed certificate for each of our customers. They're used in some part of the package/deploy pipeline and end up on the customer's local computers. They're used to connect to our web services.
Should we commit these certificates to source control? The repository is private and only accessible to coworkers. Should I leave them out for some security reason (even if that's just limiting access in case of accidental exposure, let alone malicious activity)?
If we leave them out, should we generate them as part of the package/deploy pipeline every time? Or stick them in some secure keystore and retrieve them?
Upvotes: 5
Views: 1998
Reputation: 1152
This is a situation of trust and exposure. Do you trust those that have access to the repository? Bear in mind that most compromises come from insiders.
My thinking is this:
Upvotes: 1