How did you scan for secrets accidentally committed to Git?
BeginnerBehavioralSecrets, security & access
Answer
Good answer looks like → "Gitleaks as a pre-commit hook and in CI on every PR, plus GitHub secret scanning with push protection enabled for the org. When something was found, we treated it as compromised and rotated it first, then cleaned history."
Follow-ups to expect → Is removing it from history enough? How did you handle false positives?
Red flags → "We'd just delete the commit."
More on Secrets, security & access
How did you handle secrets in your project?BeginnerWhy did you choose Secrets Manager (or Vault, or Sealed Secrets)?IntermediateHow did applications get updated secrets after rotation?AdvancedWere your Kubernetes Secrets encrypted at rest?IntermediateHow did you implement least-privilege IAM in your project?IntermediateHow did you secure container images in your project?Intermediate