Secrets out of your repo
A password committed to version control does not go away when you delete it; the history remembers. Keeping secrets out of the repository in the first place is far easier than scrubbing them later.
History is forever
Once a secret is committed it lives in the history, in every clone and every fork, even after a later commit removes it. Anyone who ever had the repository may still have the secret, which is why a committed credential must be treated as leaked.
Keep them out by default
Load secrets from the environment or a secret store at runtime, never from a file in the repository, and ignore the files that would hold them. A pre-commit check that scans for obvious secrets catches the honest mistake — this is secrets management in daily practice.
When one slips in
Rotate it immediately — assume it is compromised, because it is. Rewriting history helps stop further spread, but rotation is the real fix. The leaked value is only harmless once it no longer works.
Still stuck? Mail support@novogara.com — an engineer answers, at any hour. Back to the knowledge base