What are the first things you do when a secret is committed to a repo?
BeginnerProductionSecurity: secrets, signing, access and supply chain
Answer
Revoke and rotate the credential immediately, because assume it is already copied. Then check logs for use of the key, remove it from history only as a secondary step, and add a preventive control. Cleaning history without rotating is theatre.
More on Security: secrets, signing, access and supply chain
How do you prevent secrets from entering the repo in the first place?IntermediateWalk through purging a leaked secret from a 5 GB repo with 200 contributors.AdvancedWhy use OIDC federation for cloud credentials from GitHub Actions instead of stored keys?IntermediateWhat is your policy on signed commits and how do you enforce it?IntermediateWhat do signed commits not protect against, and what supply chain controls complement them?AdvancedWhy pin third-party GitHub Actions to a commit SHA?Intermediate