627 B
627 B
Security & Secrets Policy
- Do not commit secrets: passwords, AWS access keys, tokens, private keys.
- Use IAM roles on EC2 instead of static access keys where possible.
- If you must use static keys locally, store them in
.envand keep.envout of version control. - Rotate any credentials that were ever pasted into docs or terminals.
- Review commits before pushing (e.g.,
git log -p,git diff --staged).
If a secret was accidentally committed:
- Rotate/revoke it in the provider immediately.
git filter-repoor GitHub/Gitea security tools to purge from history.- Force-push a corrected history.