Skip to content

idtoken: emit a jti claim - #9693

Merged
taylorsilva merged 3 commits into
concourse:masterfrom
baloo42:feature/idtoken-jti-claim
Sep 4, 2026
Merged

taylorsilva merged 3 commits into
concourse:masterfrom
baloo42:feature/idtoken-jti-claim

Conversation

@baloo42

@baloo42 baloo42 commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor

Changes proposed by this PR

Closes #9692

  • idtoken: emit a jti claim
  • idtoken: advertise jti in the OpenID discovery document

Notes to reviewer

Discussion: https://github.com/orgs/concourse/discussions/9690

A config knob is deliberately not implemented. This was discussed in the above discussion but rejected.

@linux-foundation-easycla

linux-foundation-easycla Bot commented Aug 29, 2026 •

Copy link
Copy Markdown

CLA Signed
The committers listed above are authorized under a signed CLA.

@taylorsilva

Copy link
Copy Markdown
Member

Final decision regarding adding a knob: don't want a knob, always include a jti.

Mark the PR as ready to review at your leisure. TY!

@baloo42
baloo42 marked this pull request as ready for review August 31, 2026 22:14
changed the code to instead call what uuid.NewString() calls. If there's
an error we safely catch and return the error. Causing a panic on the
web node is generally a bad idea. Calling uuid.NewRandom() is what we do
everywhere else that we use the uuid package.

nit: Updated the tests to not use Succeed() as the matcher for errors.
It reads weird and isn't the convention we follow in our tests.

Signed-off-by: Taylor Silva <[email protected]>

@taylorsilva taylorsilva left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I pushed a commit to change how the uuid is generated. Using uuid.NewString() could result in a panic if there's an error generating the uuid. Everywhere else we use uuid in the code we instead call uuid.NewRandom() to catch and handle the error ourselves.

Otherwise this LGTM! I'll merge once the PR checks pass.

@taylorsilva taylorsilva moved this from Todo to In Progress in Pull Requests Sep 4, 2026
@taylorsilva
taylorsilva merged commit 5278c17 into concourse:master Sep 4, 2026
11 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Pull Requests Sep 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

idtoken var source: emit a jti claim so relying parties can do replay prevention

2 participants