-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Make single user work with secure components exposed through localhost only #16227
Make single user work with secure components exposed through localhost only #16227
Conversation
… into the workspace pod. Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
to the hardcoded values in the che-jwtproxy image. Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
any authentication out. Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
✅ E2E Happy path tests succeed 🎉 See Details
Tested with Eclipse Che Multiuser User on K8S (minikube v1.1.1) |
This comment has been minimized.
This comment has been minimized.
[ci-test] |
E2E tests of Eclipse Che Multiuser on OCP has been successful: |
...re-api-model/src/main/java/org/eclipse/che/api/core/model/workspace/config/ServerConfig.java
Show resolved
Hide resolved
...java/org/eclipse/che/workspace/infrastructure/kubernetes/server/secure/ProxyProvisioner.java
Show resolved
Hide resolved
...re/kubernetes/server/secure/jwtproxy/factory/PassThroughProxySecureServerExposerFactory.java
Outdated
Show resolved
Hide resolved
.../workspace/infrastructure/kubernetes/server/secure/jwtproxy/PassThroughProxyProvisioner.java
Show resolved
Hide resolved
Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
✅ E2E Happy path tests succeed 🎉 See Details
Tested with Eclipse Che Multiuser User on K8S (minikube v1.1.1) |
…ents. Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
✅ E2E Happy path tests succeed 🎉 See Details
Tested with Eclipse Che Multiuser User on K8S (minikube v1.1.1) |
[ci-build] |
Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
✅ E2E Happy path tests succeed 🎉 See Details
Tested with Eclipse Che Multiuser User on K8S (minikube v1.1.1) |
[ci-build] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in general it looks good.
private final boolean detectCookieAuth; | ||
|
||
/** | ||
* Constructor! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rofl
.../workspace/infrastructure/kubernetes/server/secure/jwtproxy/PassThroughProxyProvisioner.java
Show resolved
Hide resolved
[ci-test] |
E2E tests of Eclipse Che Multiuser on OCP has been successful: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add @Singleton
annotation on classes where it is suitable
What does this PR do?
This PR makes the default single user deployment configure jwt proxy in such a way that it essentially acts as a passthrough proxy (excluding
/
from auth).Some code consolidation has been done to make this DRY.
Additionally, the JWT proxy is made to honor the side car image pull policy setting and completely configures the JWT proxy pod so that we don't depend on the defaults hardcoded in the jwt proxy image.
What issues does this PR fix or reference?
#15651 #16053