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

Make single user work with secure components exposed through localhost only #16227

Merged
merged 6 commits into from
Mar 6, 2020

Conversation

metlos
Copy link
Contributor

@metlos metlos commented Mar 4, 2020

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

… 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>
@che-bot che-bot added status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. kind/task Internal things, technical debt, and to-do tasks to be performed. labels Mar 4, 2020
@che-bot
Copy link
Contributor

che-bot commented Mar 4, 2020

✅ E2E Happy path tests succeed 🎉

See Details

Tested with Eclipse Che Multiuser User on K8S (minikube v1.1.1)

@che-bot

This comment has been minimized.

@metlos
Copy link
Contributor Author

metlos commented Mar 4, 2020

[ci-test]

@che-bot
Copy link
Contributor

che-bot commented Mar 4, 2020

E2E tests of Eclipse Che Multiuser on OCP has been successful:

Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
@che-bot
Copy link
Contributor

che-bot commented Mar 5, 2020

✅ 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>
@metlos metlos marked this pull request as ready for review March 5, 2020 10:52
@che-bot
Copy link
Contributor

che-bot commented Mar 5, 2020

✅ E2E Happy path tests succeed 🎉

See Details

Tested with Eclipse Che Multiuser User on K8S (minikube v1.1.1)

@metlos
Copy link
Contributor Author

metlos commented Mar 5, 2020

[ci-build]

Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
@che-bot
Copy link
Contributor

che-bot commented Mar 5, 2020

✅ E2E Happy path tests succeed 🎉

See Details

Tested with Eclipse Che Multiuser User on K8S (minikube v1.1.1)

@metlos
Copy link
Contributor Author

metlos commented Mar 5, 2020

[ci-build]

Copy link
Contributor

@skabashnyuk skabashnyuk left a 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!
Copy link
Contributor

Choose a reason for hiding this comment

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

rofl

@metlos
Copy link
Contributor Author

metlos commented Mar 5, 2020

[ci-test]

@che-bot
Copy link
Contributor

che-bot commented Mar 5, 2020

E2E tests of Eclipse Che Multiuser on OCP has been successful:

Copy link
Contributor

@mshaposhnik mshaposhnik left a 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

@metlos metlos merged commit 333bfcd into eclipse-che:master Mar 6, 2020
@metlos metlos deleted the bug/15651-jwtproxy-in-single-user branch March 6, 2020 15:58
@che-bot che-bot removed the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label Mar 6, 2020
@che-bot che-bot added this to the 7.10.0 milestone Mar 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/task Internal things, technical debt, and to-do tasks to be performed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants