CI needs to trigger a sync of one app after a deploy commit. How do you give it access?
BeginnerScenarioTenancy, Security & Secrets
Answer
Situation read → Least-privilege automation identity.
What I'd do →
- Create a project role:
argocd proj role create team-a ciwith policyapplications, sync, team-a/web-dev, allow(andget). - Generate a token with an expiry:
argocd proj role create-token team-a ci --expires-in 720h. - Store it as a CI secret and call
argocd app sync team-a/web-dev --auth-token $TOKEN. - Better still: rely on webhooks and auto-sync so CI needs no Argo CD access at all.
Why → Project tokens are scoped to one project and revocable individually.
Interview tip → The best answer is often "CI does not need Argo CD access; Git is the interface".
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?AdvancedAn 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?AdvancedA plaintext Secret was committed to the config repo and pushed. What do you do?Beginner