triauth for ConcourseOIDC
Let your engineering team open Concourse with one approval on their own device, and no Concourse passwords.
- 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
Open oidc.triauth.org and enter your domain. Paste Concourse's redirect address,
https://ci.example.com/sky/issuer/callbackwith your own Concourse address in place ofci.example.com, and click Connect app. The bridge gives you a client ID and a client secret.Add the settings below to the environment of the
webnode and restart it. Replaceexample.comwith 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.iniCONCOURSE_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=adminOpen 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, withfly 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. flytalks 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
| Setting | Value |
|---|---|
| Redirect address | https://<your-concourse>/sky/issuer/callback, which must be reachable from the internet |
| Where in Concourse | flags or environment variables of the web node |
| Issuer | CONCOURSE_OIDC_ISSUER takes https://oidc.triauth.org/<your domain>, and the rest comes from the discovery document |
| User name key | name. 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 |
| Scopes | profile,email,groups on top of openid. Setting the variable replaces the default list, so profile and email must be repeated |
| Groups | the 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
- 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 teams and let Concourse teams list them.
- Read Concourse's generic OIDC guide for every setting Concourse 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.