Interview Prep/GitOps & Argo CD/Tenancy, Security & Secrets

A plaintext Secret was committed to the config repo and pushed. What do you do?

BeginnerScenarioTenancy, Security & Secrets
Answer

Situation read → The secret is compromised the moment it is pushed.

What I'd do →

  1. Rotate the credential immediately at the source (database, API provider).
  2. Replace the manifest with a SealedSecret or ExternalSecret.
  3. Optionally rewrite history (git filter-repo) and force-push, coordinating with everyone, but treat that as hygiene, not remediation.
  4. Add secret scanning (gitleaks, GitHub push protection) as a pre-merge check.

Why → History rewrites do not undo clones, forks or caches; only rotation removes the risk.

Interview tip → Always lead with "rotate first".

All GitOps & Argo CD questions Roadmap: Argo CD (GitOps)

More on Tenancy, Security & Secrets