-
Notifications
You must be signed in to change notification settings - Fork 179
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
Verify oidc token against extended expiration time #12218
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Added function for checking extended expiration time
kyma-bot
added
the
do-not-merge/work-in-progress
Indicates that a PR should not merge because it is a work in progress.
label
Oct 25, 2024
Skipping CI for Draft Pull Request. |
kyma-bot
added
cla: yes
Indicates the PR's author has signed the CLA.
size/M
Denotes a PR that changes 30-99 lines, ignoring generated files.
labels
Oct 25, 2024
Configure extended expiration time through flag
kyma-bot
added
size/L
Denotes a PR that changes 100-499 lines, ignoring generated files.
and removed
size/M
Denotes a PR that changes 30-99 lines, ignoring generated files.
labels
Oct 25, 2024
akiioto
force-pushed
the
extended-expiration
branch
from
October 25, 2024 11:51
de2d75f
to
ccdef29
Compare
revert to Token align with Token
akiioto
force-pushed
the
extended-expiration
branch
from
October 25, 2024 12:09
ccdef29
to
556739f
Compare
Check if expiration timestamp is in the future Test VerifyExtendedExpiration method
dekiel
changed the title
Extended expiration
Verify oidc token against extended expiration time
Oct 25, 2024
kyma-bot
removed
the
do-not-merge/work-in-progress
Indicates that a PR should not merge because it is a work in progress.
label
Oct 25, 2024
akiioto
approved these changes
Oct 25, 2024
/cla |
Successfully reached out to cla-assistant.io to initialize recheck of PR #12218 |
KacperMalachowski
pushed a commit
to KacperMalachowski/test-infra
that referenced
this pull request
Nov 6, 2024
* Allow 10 minutes of grace period before the token expire * test * Split token and claims verification Added function for checking extended expiration time * Use extended expiration when standard expiration was to short * Mask raw token in debug logs Configure extended expiration time through flag * Align with the code structure and test update revert to Token align with Token * Accept ClaimsReader interface in ValidateClaims instead a concrete type Check if expiration timestamp is in the future Test VerifyExtendedExpiration method * cleanup TokenProcessor tests --------- Co-authored-by: Patryk Dobrowolski <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Due to long queued time of ADO pipelines GitHub oidc tokens passed from Image builder GitHub Actions are expiring. This causes failed image builds. To prevent failed builds when high load on ADO is observed oidc token verifier will verify oidc tokens with extended expiration time.
Example error in failed ADO run: https://dev.azure.com/hyperspace-pipelines/kyma/_build/results?buildId=7329713&view=logs&j=3eaab1e8-b99d-54c2-e3b9-c8d721213979&t=94b89c64-0a6c-5eb1-9ee6-a00128da7d80&l=33
Changes proposed in this pull request: