A developer accidentally deleted an Application in the UI and all its resources disappeared. How do you prevent this?
IntermediateScenarioTenancy, Security & Secrets
Answer
Situation read → Cascade delete via finalizer plus broad RBAC.
What I'd do →
- Remove
deleteon applications from developer roles; deletions happen by removing files from Git. - For apps managed by app-of-apps or ApplicationSets, the parent recreates them; make sure that is in place for prod.
- Add
Delete=falseon critical resources (PVCs, namespaces) so app deletion leaves them. - Recover now: revert or re-apply the Application from Git and sync.
Why → Deletion should go through review like any other change.
Interview tip → Mention that with declarative Applications, the UI delete is undone by the parent within minutes.
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