triauth for Argo WorkflowsOIDC
Let your platform team open the Argo Workflows interface with one approval on their own device, and no shared tokens.
- Sign-in through
- OpenID Connect bridge
- Available in
- Every Argo Workflows installation
- Set up in
- workflow-controller-configmap
About Argo Workflows
Argo Workflows runs multi-step jobs on Kubernetes. Each step is a container, and teams use it for CI pipelines, data processing, and machine-learning jobs. The Argo Server adds a web interface and an API, and that server is what signs people in. It is a separate project from Argo CD, with its own settings.
Connect Argo Workflows to triauth
The Argo Server signs people in through the triauth OpenID Connect bridge. Once connected, the login page offers Login under "If your organisation has configured single sign-on". People on your team click it, type their username, and approve on their own device. Nobody passes tokens around, and when someone leaves, removing their identity records at your domain ends their access to Argo as well.
How it works
Open oidc.triauth.org and enter your domain. Paste the redirect address,
https://argo.example.com/oauth2/callbackwith your own Argo Server address in place ofargo.example.com, and click Connect app. The bridge gives you a client ID and a client secret.Store the client ID and the client secret in a Kubernetes secret in Argo's namespace:
shkubectl create secret -n argo generic argo-sso \ --from-literal=client-id='<client ID from the bridge>' \ --from-literal=client-secret='<client secret from the bridge>'Add the block below to the
workflow-controller-configmap, with your domain in place ofexample.comand your Argo Server address in place ofargo.example.com, and start the Argo Server with--auth-mode sso.yamlsso: issuer: https://oidc.triauth.org/example.com clientId: name: argo-sso key: client-id clientSecret: name: argo-sso key: client-secret redirectUrl: https://argo.example.com/oauth2/callback scopes: [groups, email, profile] sessionExpiry: 10h rbac: enabled: trueGive a group access by annotating a service account. The rule below lets members of the group
argo-admins@example.compublished at your domain act as that service account.yamlmetadata: annotations: workflows.argoproj.io/rbac-rule: "'argo-admins@example.com' in groups" workflows.argoproj.io/rbac-rule-precedence: "1"Open the Argo Server and click Login.
Checkpoint
The login page's single sign-on box shows Login. Choosing it opens a page from the bridge that asks for the username, and the person's authenticator asks them to approve.
Good to know
- Argo keeps no user records. A person acts as the service account whose rule matches them, so access is written as rules over the groups published at your domain, and a rule that reads
"true"with precedence0gives everyone a read-only account. Someone no rule matches is turned away. - The Argo Server issues its own token for ten hours by default, so nobody signs in again mid-day.
- The
argocommand-line tool uses a token copied from the interface's user page, or a service-account token for automation.
For the person who connects the app
| Setting | Value |
|---|---|
| Redirect address | https://<your-argo-server>/oauth2/callback, under the base href if you set one |
| Where in Argo | the sso key of workflow-controller-configmap, two secrets, and the --auth-mode sso flag of the Argo Server |
| Issuer | https://oidc.triauth.org/<your domain>, and the rest comes from the discovery document |
| Groups | many groups can push the session cookie over its 4 KB limit. filterGroupsRegex keeps only the ones Argo needs |
| Logout | leave logoutRedirectUrl unset. The bridge has no sign-out endpoint, and logging out clears the Argo session |
The Argo Server keeps the client secret, so leave This app can't keep a secret unticked when you connect it on the bridge. The Argo Server SSO guide explains every key and the RBAC rules.
Next steps
- Read the OpenID Connect bridge page for what every connected app gets and what the bridge keeps private.
- Read Roll out to your team to give everyone in your organization an identifier at your domain.
- Read Groups to publish the groups that Argo's rules refer to.
- Read the Argo Server SSO guide for every setting Argo Workflows offers.
All logos and trademarks belong to their respective owners and do not imply affiliation or endorsement of the organization or product by triauth, nor vice versa. The content provided on this page may include information from third-party sources. We do not assume any responsibility for the completeness, correctness, or applicability of the information. You should independently verify any details before relying on them.