Hacker News new | ask | show | jobs
by nodesocket 330 days ago
I would venture to guess the main concern is accidental commit of decrypted secrets.
2 comments

That can happen regardless.
If a key gets compromised, the encrypted secrets are compromised forever, since you can't be sure all the git clones everywhere can be updated with a new encryption key. Not to mention how fiddly it is to edit git history.
I would assume if you are committing encrypted secrets you would make sure they are rotatable
But you can and should be rotating those secrets on some schedule regardless, and if you find out a key has been compromised you can immediately rotate the secrets.