Interview Prep/DevSecOps/Secrets and Identity Management

How do you detect secrets that slipped past scanners and are already in logs or tickets?

AdvancedScenarioSecrets and Identity Management
Answer

Situation read → Scanners cover repos; secrets also end up in logs, Jira, Confluence and Slack.

What I'd do →

  1. Run trufflehog with verification on Slack exports, Confluence and Jira where licences allow, or use the vendor's DLP features.
  2. Add redaction processors in the log pipeline (Fluent Bit, Vector) for known patterns like AKIA[0-9A-Z]{16} and JWTs.
  3. Plant canary tokens in sensitive places; any use triggers an alert.
  4. Monitor cloud provider leak notifications (AWS quarantine policy events, GitHub partner alerts).
  5. Feed every finding to rotation, not just deletion.

Why → Logs are often less protected than code and keep data for months.

Interview tip → Canary tokens show you think about detection, not only prevention.

All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Secrets and Identity Management