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 →
- Rotate the credential immediately at the source (database, API provider).
- Replace the manifest with a SealedSecret or ExternalSecret.
- Optionally rewrite history (
git filter-repo) and force-push, coordinating with everyone, but treat that as hygiene, not remediation. - 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".
More on Tenancy, Security & Secrets
Ten teams share one Argo CD. How do you isolate them?IntermediateA developer could create an Application in their project that deploys a ClusterRoleBinding granting cluster-admin. How do you prevent privilege escalation?AdvancedCI needs to trigger a sync of one app after a deploy commit. How do you give it access?BeginnerAn auditor says the Sealed Secrets private key is a single point of failure and a single point of compromise. How do you respond?AdvancedYou need the same database password in 12 clusters. Which secrets approach do you choose and why?IntermediateYour team wants to use SOPS with Argo CD. What do you set up?Advanced