Maven / ArgoCD interview questions
How do you configure ArgoCD RBAC and what are the built-in roles?
ArgoCD's RBAC is configured via the argocd-rbac-cm ConfigMap in the argocd namespace. Policies are written in Casbin CSV format and map subjects (users, groups, SSO claims) to resources and actions.
Built-in Roles
| Role | Permissions |
|---|---|
role:readonly | Read-only access to all resources: applications, clusters, repositories, and logs. Cannot sync, create, update, or delete. |
role:admin | Full access to all resources and actions across all projects. |
Custom Policy Syntax
Policy lines follow: p, <subject>, <resource>, <action>, <object>, allow|deny. Group-to-role bindings use: g, <group>, <role>.
# argocd-rbac-cm data
policy.default: role:readonly
policy.csv: |
p, role:dev-team, applications, sync, staging/*, allow
p, role:dev-team, applications, sync, production/*, deny
p, role:dev-team, applications, get, */*, allow
g, my-org:developers, role:dev-teamResources include: applications, clusters, repositories, projects, accounts, logs. Actions include get, create, update, delete, sync, override, action.
ArgoCD Projects add a second scoping layer — RBAC controls who can do what, while Projects control what Applications are allowed to target (repos, clusters, namespaces).
Invest now in Acorns!!! 🚀
Join Acorns and get your $5 bonus!
Acorns is a micro-investing app that automatically invests your "spare change" from daily purchases into diversified, expert-built portfolios of ETFs. It is designed for beginners, allowing you to start investing with as little as $5. The service automates saving and investing. Disclosure: I may receive a referral bonus.
Invest now!!! Get Free equity stock (US, UK only)!
Use Robinhood app to invest in stocks. It is safe and secure. Use the Referral link to claim your free stock when you sign up!.
The Robinhood app makes it easy to trade stocks, crypto and more.
Webull! Receive free stock by signing up using the link: Webull signup.
More Related questions...
