|
|
|
|
|
by lolinder
594 days ago
|
|
> what happens when someone accidentally pushes a certificate or API key and you need to force an update upstream The correct approach here is typically to invalidate the certificate or API key. A force push usually doesn't work. If you're using GitHub, the dangerous commit lives on effectively forever in an awkward "not in a repository" state. Even if you're not on GitHub and your system actually garbage collects, the repo has been cloned onto enough build machines and dev machines that you're better off just treating the key or cert as compromised than trying to track down all the places where it might have been copied. |
|
You’re correct about keys/certs once uploaded, they should be treated as compromised, especially when the repository isn’t self-hosted. However, replacing API keys and certificates can take time, and within a large corporation, it could take months.