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

oc >= 3.7.0-rc.0 cannot talk to OpenShift servers < 3.6.0-rc.0 #17648

Open
elyscape opened this issue Dec 7, 2017 · 5 comments
Open

oc >= 3.7.0-rc.0 cannot talk to OpenShift servers < 3.6.0-rc.0 #17648

elyscape opened this issue Dec 7, 2017 · 5 comments
Assignees
Labels
area/usability component/cli kind/bug Categorizes issue or PR as related to a bug. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. priority/P1

Comments

@elyscape
Copy link
Contributor

elyscape commented Dec 7, 2017

Attempting to log in to an OpenShift server running any version prior to 3.6.0-rc.0 using oc with version of 3.7.0-rc.0 or newer fails with an error.

Version
oc v3.7.0+7ed6862
kubernetes v1.7.6+a08f5eeb62
features: Basic-Auth

Server [REDACTED]
openshift v1.3.3
kubernetes v1.3.0+52492b4
Steps To Reproduce
  1. Set up an OpenShift server running version 1.5.1 or older
  2. Using oc version 3.7.0, run oc login
Current Result
scapeless:~ elyscape$ oc login [REDACTED]
error: Missing configuration - verify you have provided the correct host and port and that the server is currently running.
error: Missing configuration
Expected Result

Login is able to proceed.

Additional Information

The issue stems from this commit, which added PKCE support to oc. Unfortunately, the implementation now requires that the server offers a document from the OAuth metadata endpoint (/.well-known/oauth-authorization-server). That endpoint was added in this commit, which first shipped in 3.6.0-rc.0. Ideally, oc should be able to fall back to the old behavior if the OAuth metadata endpoint is not present.

@pweil- pweil- added area/usability component/cli kind/bug Categorizes issue or PR as related to a bug. priority/P1 labels Dec 7, 2017
@openshift-bot
Copy link
Contributor

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci-robot openshift-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Mar 7, 2018
@openshift-bot
Copy link
Contributor

Stale issues rot after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle rotten
/remove-lifecycle stale

@openshift-ci-robot openshift-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Apr 7, 2018
@elyscape
Copy link
Contributor Author

/remove-lifecycle rotten

@openshift-ci-robot openshift-ci-robot removed the lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. label Apr 10, 2018
@openshift-bot
Copy link
Contributor

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci-robot openshift-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jul 9, 2018
@elyscape
Copy link
Contributor Author

elyscape commented Jul 9, 2018

/lifecycle frozen

@openshift-ci-robot openshift-ci-robot added lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Jul 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/usability component/cli kind/bug Categorizes issue or PR as related to a bug. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. priority/P1
Projects
None yet
Development

No branches or pull requests

5 participants