-
Notifications
You must be signed in to change notification settings - Fork 88
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
feat: Token validity check #1103
Conversation
Skipping CI for Draft Pull Request. |
Thanks to @sparkoo for spotting this. I would have never found this...
/retest |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: metlos, sparkoo, tolusha The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest |
What does this PR do?
This adds a check for token validity on OpenShift in native user mode. This prevents the unauthenticated traffic from even reaching the endpoints backed by the gateway. Note that the workspace endpoints handled by the gateway already contain similar configuration. This PR adds it also to the authenticated server endpoints, like
/api
. The unauthenticated endpoints like/devfile-registry
are not affected.Screenshot/screencast of this PR
N/A
What issues does this PR fix or reference?
eclipse-che/che#20304
How to test this PR?
Follow the instructions on the above mentioned issue. Instead of 500, the server should now return 401 Unauthorized HTTP status code.
PR Checklist
As the author of this Pull Request I made sure that:
What issues does this PR fix or reference
andHow to test this PR
completedReviewers
Reviewers, please comment how you tested the PR when approving it.