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

error unmarshaling JSON: unknown connector type "openshift" #3436

Closed
3 tasks done
sharif-rahman opened this issue Apr 17, 2020 · 3 comments
Closed
3 tasks done

error unmarshaling JSON: unknown connector type "openshift" #3436

sharif-rahman opened this issue Apr 17, 2020 · 3 comments
Labels
bug Something isn't working invalid Not a valid bug

Comments

@sharif-rahman
Copy link

sharif-rahman commented Apr 17, 2020

Checklist:

  • I've searched in the docs and FAQ for my answer: http://bit.ly/argocd-faq.
  • I've included steps to reproduce the bug.
  • I've pasted the output of argocd version.

The problem is related to connection
iam trying OpenShift Authentication Integration with ArgoCD

A clear and concise description of what the bug is.

To Reproduce

Dex-Server Service account Setting:
  annotations:
    serviceaccounts.openshift.io/1oauth-redirecturi.argocd: >-
      http://argocd-ocp-argocd.apps.cluster-9030.9030.sandbox205.opentlc.com/api/dex/callback

kind: ServiceAccount
apiVersion: v1
metadata:
name: argocd-dex-server
namespace: ocp-argocd
selfLink: /api/v1/namespaces/ocp-argocd/serviceaccounts/argocd-dex-server
uid: cbf0a43f-5616-4bb4-9eff-adb8ce28a548
resourceVersion: '2002430'
creationTimestamp: '2020-04-17T10:22:00Z'
labels:
app.kubernetes.io/component: dex-server
app.kubernetes.io/name: argocd-dex-server
app.kubernetes.io/part-of: argocd
annotations:
serviceaccounts.openshift.io/oauth-redirecturi.argocd: 'http://argocd-ocp-argocd.apps.cluster-9030.9030.sandbox205.opentlc.com/api/dex/callback'

A list of the steps required to reproduce the issue. Best of all, give us the URL to a repository that exhibits this issue.

Expected behavior
Redirect after the Login is done
ArgoCD Login Page --> Redirect (Openshift Login Page) --> Return back to ArgoCD

Version

argocd version: v1.5.2
quay.io/dexidp/dex:v2.21.0

Logs

error parse config file /tmp/dex.yaml: error unmarshaling JSON: unknown connector type "openshift"
@sharif-rahman sharif-rahman added the bug Something isn't working label Apr 17, 2020
@jannfis
Copy link
Member

jannfis commented Apr 17, 2020

Hi @sharif-rahman, according to Dex release notes, OpenShift support was first introduced with v2.22.0 (refer to https://github.com/dexidp/dex/releases/tag/v2.22.0), while ArgoCD yet bundles v2.21.0.

Updating bundled Dex to latest version is planned, see #3339

I'm closing this bug as invalid, please follow the enhancement request above and re-open this issue if OpenShift support fails when Dex has been upgraded.

@jannfis jannfis closed this as completed Apr 17, 2020
@jannfis jannfis added the invalid Not a valid bug label Apr 17, 2020
@sharif-rahman
Copy link
Author

Thanks for your update. if thats the problem then why the Basic argocd version: v1.5.2 document examplains to use dex:v2.21.0?

@absynth76
Copy link

Thanks for your update. if thats the problem then why the Basic argocd version: v1.5.2 document examplains to use dex:v2.21.0?

I completely agree, look here: https://argocd-operator.readthedocs.io/en/stable/reference/argocd/#dex-example
documentation should be updated at least

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working invalid Not a valid bug
Projects
None yet
Development

No branches or pull requests

3 participants