Skip to content

triauth for Argo WorkflowsOIDC

Let your platform team open the Argo Workflows interface with one approval on their own device, and no shared tokens.

  • Code and DevOps
  • Open source
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

  1. Open oidc.triauth.org and enter your domain. Paste the redirect address, https://argo.example.com/oauth2/callback with your own Argo Server address in place of argo.example.com, and click Connect app. The bridge gives you a client ID and a client secret.

  2. Store the client ID and the client secret in a Kubernetes secret in Argo's namespace:

    sh
    kubectl 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>'
  3. Add the block below to the workflow-controller-configmap, with your domain in place of example.com and your Argo Server address in place of argo.example.com, and start the Argo Server with --auth-mode sso.

    yaml
    sso:
      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: true
  4. Give a group access by annotating a service account. The rule below lets members of the group argo-admins@example.com published at your domain act as that service account.

    yaml
    metadata:
      annotations:
        workflows.argoproj.io/rbac-rule: "'argo-admins@example.com' in groups"
        workflows.argoproj.io/rbac-rule-precedence: "1"
  5. 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 precedence 0 gives 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 argo command-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

SettingValue
Redirect addresshttps://<your-argo-server>/oauth2/callback, under the base href if you set one
Where in Argothe sso key of workflow-controller-configmap, two secrets, and the --auth-mode sso flag of the Argo Server
Issuerhttps://oidc.triauth.org/<your domain>, and the rest comes from the discovery document
Groupsmany groups can push the session cookie over its 4 KB limit. filterGroupsRegex keeps only the ones Argo needs
Logoutleave 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

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.