Skip to content

triauth for ConcourseOIDC

Let your engineering team open Concourse with one approval on their own device, and no Concourse passwords.

  • Code and DevOps
  • Open source
Sign-in through
OpenID Connect bridge
Available in
Every Concourse installation
Set up in
Environment of the web node

About Concourse

Concourse is a continuous integration and delivery system. Pipelines made of jobs and resources run in containers on worker nodes, and a web interface plus the fly command-line tool drive them. Teams are the unit of access: each team lists the people and groups allowed in.

Connect Concourse to triauth

Concourse signs people in through the triauth OpenID Connect bridge. Once connected, the login page shows a button with your domain's name. People on your team click it, type their username, and approve on their own device, in the browser and when fly login opens it. Nobody keeps a Concourse password, and when someone leaves, removing their identity records at your domain ends their access to Concourse as well.

How it works

  1. Open oidc.triauth.org and enter your domain. Paste Concourse's redirect address, https://ci.example.com/sky/issuer/callback with your own Concourse address in place of ci.example.com, and click Connect app. The bridge gives you a client ID and a client secret.

  2. Add the settings below to the environment of the web node and restart it. Replace example.com with your domain, the two placeholders with the client ID and the client secret from the bridge, and the last line with the username of the person who administers the main team.

    ini
    CONCOURSE_OIDC_DISPLAY_NAME=example.com
    CONCOURSE_OIDC_ISSUER=https://oidc.triauth.org/example.com
    CONCOURSE_OIDC_CLIENT_ID=<client ID from the bridge>
    CONCOURSE_OIDC_CLIENT_SECRET=<client secret from the bridge>
    CONCOURSE_OIDC_USER_NAME_KEY=name
    CONCOURSE_OIDC_SCOPE=profile,email,groups
    CONCOURSE_MAIN_TEAM_OIDC_USER=admin
  3. Open Concourse's login page and click the button with your domain's name.

Checkpoint

Concourse's login page shows a button with your domain's name. Choosing it opens a page from the bridge that asks for the username, and the person's authenticator asks them to approve. fly login opens the same page in the browser and receives its token when the sign-in is done.

Good to know

  • Concourse keeps no user records. Anyone with an identity at your domain can sign in, and sees only the teams that list them. A team lists people by username, such as john, with fly set-team --oidc-user, or whole groups published at your domain with --oidc-group.
  • The main team's administrators come from the last line above, or from a group named in CONCOURSE_MAIN_TEAM_OIDC_GROUP.
  • fly talks to Concourse with a Concourse token after the sign-in, so the bridge sees one sign-in per person, not one per command.

For the person who connects the app

SettingValue
Redirect addresshttps://<your-concourse>/sky/issuer/callback, which must be reachable from the internet
Where in Concourseflags or environment variables of the web node
IssuerCONCOURSE_OIDC_ISSUER takes https://oidc.triauth.org/<your domain>, and the rest comes from the discovery document
User name keyname. Concourse requires the claim named here to be present, and its default, username, is not one the bridge sends. The Concourse user name itself is preferred_username, the person's username
Scopesprofile,email,groups on top of openid. Setting the variable replaces the default list, so profile and email must be repeated
Groupsthe claim groups, the default of CONCOURSE_OIDC_GROUPS_KEY

Concourse keeps the client secret, so leave This app can't keep a secret unticked when you connect it on the bridge. Concourse's generic OIDC guide explains every variable and the team configuration.

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.