Interview Prep/DevSecOps/Incident Response and Governance

Your CI/CD SaaS provider announces a breach and advises customers to rotate all secrets. What is your plan?

AdvancedScenarioIncident Response and Governance
Answer

Situation read → Every secret stored in that provider, and every token it could mint, must be treated as compromised.

What I'd do →

  1. Export the inventory of secrets: org, project and context variables, SSH deploy keys, cloud integrations.
  2. Rotate in risk order: cloud credentials, production database, signing keys, then third-party API tokens.
  3. Review cloud audit logs (CloudTrail, GCP audit) for use of those credentials from unknown IPs since the breach window.
  4. Check for persistence: new IAM users, keys, roles, or modified CI configs.
  5. Long-term: replace stored cloud keys with OIDC federation so there is nothing to steal.

Why → Rotation without log review misses attackers who already used the keys to create their own access.

Interview tip → Cite OIDC as the structural fix; it shrinks the blast radius of the next provider breach.

All DevSecOps questions

More on Incident Response and Governance