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

Fix OpenShift OAuth Proxy config #1379

Merged
merged 1 commit into from
May 9, 2022
Merged

Fix OpenShift OAuth Proxy config #1379

merged 1 commit into from
May 9, 2022

Conversation

olexii4
Copy link
Contributor

@olexii4 olexii4 commented May 6, 2022

Signed-off-by: Oleksii Orel oorel@redhat.com

What does this PR do?

Fix OpenShift OAuth Proxy config.

We already have several openshift/oauth-proxy issues with redirection:

These issues depend on setting skip-provider-button=true. It could always redirect to oauth/start.

I suggest using skip-provider-button=false as a quick fix until oauth-proxy PRs are waiting to be merged.

What issues does this PR fix or reference?

fixes eclipse-che/che#21352

How to test this PR?

It could be tested with platform OpenShift and this che-operator image: docker.io/olexii4dockerid/che-operator:next.

  1. Deploy Che.

Example:

chectl server:deploy \
    --installer=operator \
    --platform=openshift \
    --che-operator-image=docker.io/olexii4dockerid/che-operator:next
  1. Try to accept factory with URL without being logged in, like
    $CHE_HOST#https://github.com/che-samples/java-spring-petclinic/tree/devfilev2.
  2. Check that Dashboard is opened with factory flow
    $CHE_HOST/dashboard/#/load-factory?url=https://github.com/che-samples/java-spring-petclinic/tree/devfilev2. And the load-factory page has loaded without any errors.
  3. Open the second tab with the dashboard.
  4. Logout on the second tab and refresh the first one. You will see OAuth pages on bought tabs.
  5. Try to login on bought tabs. login should be successful on bought tabs.

2022-04-28_20_58_12

https://youtu.be/T7AqfANoA9c

PR Checklist

As the author of this Pull Request I made sure that:

Reviewers

Reviewers, please comment how you tested the PR when approving it.

Signed-off-by: Oleksii Orel <oorel@redhat.com>
@tolusha
Copy link
Contributor

tolusha commented May 9, 2022

/test v9-devworkspace-happy-path

1 similar comment
@tolusha
Copy link
Contributor

tolusha commented May 9, 2022

/test v9-devworkspace-happy-path

@openshift-ci
Copy link

openshift-ci bot commented May 9, 2022

@olexii4: 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/v9-devworkspace-happy-path 9e024e2 link true /test v9-devworkspace-happy-path

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/test-infra repository. I understand the commands that are listed here.

@openshift-ci
Copy link

openshift-ci bot commented May 9, 2022

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: ibuziuk, olexii4, 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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@olexii4 olexii4 merged commit cce1ecc into main May 9, 2022
@olexii4 olexii4 deleted the CHE-21352_1 branch May 9, 2022 13:04
@che-bot che-bot added this to the 7.48 milestone May 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

My daily authentication dance
5 participants