How to Configure Argo Workflows SSO RBAC

Published
Length
3 min read

Luis Felipe Dias

All posts

Setting up argo workflows sso rbac links your login tool to cluster roles. You map user groups to Kubernetes service accounts with least privilege. Teams use Argo Workflows to run jobs on Kubernetes clusters. Shared logins make it hard to track who started a job. Single sign-on fixes this by tying each login to a real person. Role-based rules then limit what that person can see or run. How argo workflows sso rbac works in practice The setup connects the Argo server to an OpenID Connect ident

Your coding agents run with your access.

Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.

Setting up argo workflows sso rbac links your login tool to cluster roles. You map user groups to Kubernetes service accounts with least privilege.

Teams use Argo Workflows to run jobs on Kubernetes clusters. Shared logins make it hard to track who started a job. Single sign-on fixes this by tying each login to a real person. Role-based rules then limit what that person can see or run.

How argo workflows sso rbac works in practice

The setup connects the Argo server to an OpenID Connect identity provider. When a user logs in, the identity provider sends a token back. This token holds the user identity and their group names. Argo reads these group names and checks its local service accounts.

Each service account links to a Kubernetes role or cluster role. Annotations on the service account tell Argo which groups match which role. You can also set a rule score to pick the right account. If a user belongs to two groups, the higher score wins.

This pattern affects both web users and command line users. Automated bots still use direct tokens, while humans use single sign-on. A safe setup always starts with a read-only default account. New users get this base role until they join a team group.

Namespace isolation is the next big step for safe operations. Give each team a service account inside their own namespace. Bind that account to a local role instead of a cluster role. This stops one team from stopping or reading another team's jobs.

Checking rules and finding gaps in static roles

After you set up your roles, test them with a test user. Log in with an account that belongs to only one group. Check that the user can view jobs in their own namespace. Then try to view or delete jobs in another namespace.

Access Request Workflows + Azure RBAC: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

You should also check the Kubernetes API audit logs. When Argo acts for a user, it uses the mapped service account. This means the cluster log shows the shared service account name. You must check the Argo server logs to see the human identity.

Static role mappings also leave major gaps once a user logs in. A role might let a developer run workflows in a prod namespace. Once that session starts, the role stays active all day. The user holds broad rights even when they do not need them.

Workflow specs can also mount secrets or run custom pod images. Static Kubernetes roles do not check the content of a workflow step. They only check if the account can create a workflow object. If a pod reads a database, cluster roles do not filter the query results.

Masking sensitive data is another gap in standard cluster roles. If a job prints emails or card numbers, readers see them in logs. Standard RBAC only blocks or allows access to the whole log screen. It does not rewrite matched fields like phone numbers or national IDs.

Keeping cluster sessions safe across teams

Platform teams should review group mappings every few months. People change teams, and old groups often stay in the identity provider. Keep the default service account restricted to zero write permissions at all times. Short token lifetimes also help reduce the risk of stolen browser sessions.

Check database and API queries on the wire

Identity tools, roles, and network rules decide who opens a session. Setup alone cannot check what each query does or mask sensitive values in a response once a session starts. When workflows touch Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, or internal HTTP APIs, hoop.dev sits inline in the wire protocol beside those services as an open-source proxy, a sidecar for your Postgres or API. On every query an AI agent or engineer runs against production, hoop.dev decides to pass, mask, block, or hold it for human review.

Your login details and client tools stay as they are while hoop.dev guardrails refuse bad deletes or drops before they run, and hoop.dev data masking rewrites matched sensitive values in responses in memory. Furthermore, hoop.dev holds SOC 2 Type II, is MIT licensed, and writes every query and decision to an audit trail that generates evidence for HIPAA, GDPR, and PCI DSS. See the source on GitHub.

Frequently asked questions

What happens when a user belongs to multiple SSO groups?

Argo checks the precedence annotation on each matching service account. It picks the service account with the highest number for that user session.

Can we restrict Argo Workflows access to specific namespaces?

Yes, you can bind the mapped service account to a namespace Role. This stops the user from seeing or running jobs in other namespaces.

Do SSO roles control what containers can do inside a workflow?

No, SSO RBAC only controls who can submit or view workflows. The pod itself runs with the permissions of its own workflow service account.

The query runs. The emails stay hidden.