Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add additional OIDC auth resolvers #2020

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

JessicaJHee
Copy link
Contributor

Description

Adds the oidcSubClaimMatchingKeycloakUserId and oidcSubClaimMatchingPingIdentityUserId resolvers that resolve based on the more secure, sub claim from OIDC.

Which issue(s) does this PR fix

PR acceptance criteria

Please make sure that the following steps are complete:

  • GitHub Actions are completed and successful
  • Unit Tests are updated and passing
  • E2E Tests are updated and passing
  • Documentation is updated if necessary (requirement for new features)
  • Add a screenshot if the change is UX/UI related

@JessicaJHee JessicaJHee requested a review from a team as a code owner November 28, 2024 23:12
@JessicaJHee JessicaJHee changed the title add additional OIDC auth resolvers chore: add additional OIDC auth resolvers Nov 28, 2024
Copy link
Contributor

Copy link
Contributor

Copy link
Member

@kim-tsao kim-tsao left a comment

Choose a reason for hiding this comment

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

This is for 1.5 only. DO NOT BACKPORT

@JessicaJHee
Copy link
Contributor Author

@kim-tsao I found this recommendation in the OIDC specs while looking into the userinfo response:

"Due to the possibility of token substitution attacks (see Section 16.11), the UserInfo Response is not guaranteed to be about the End-User identified by the sub (subject) element of the ID Token. The sub Claim in the UserInfo Response MUST be verified to exactly match the sub Claim in the ID Token; if they do not match, the UserInfo Response values MUST NOT be used."

I've added a check to satisfy this requirement in this PR as well 👍

Copy link
Contributor

github-actions bot commented Dec 2, 2024

@JessicaJHee JessicaJHee force-pushed the add-oidc-resolver branch 2 times, most recently from 8e58de5 to 6ad8b29 Compare December 3, 2024 21:28
Copy link
Contributor

github-actions bot commented Dec 6, 2024

Copy link
Contributor

@kim-tsao
Copy link
Member

kim-tsao commented Jan 7, 2025

/lgtm
/approve

Copy link

openshift-ci bot commented Jan 7, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kim-tsao

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved label Jan 7, 2025
@kim-tsao
Copy link
Member

kim-tsao commented Jan 7, 2025

/retest

Copy link

openshift-ci bot commented Jan 7, 2025

@JessicaJHee: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-tests b9dba8e link true /test e2e-tests

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@JessicaJHee
Copy link
Contributor Author

/retest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants