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

Getting "failed to create offline session" using CRDs for kubernetes storage #1070

Closed
kiich opened this issue Sep 19, 2017 · 1 comment
Closed
Assignees

Comments

@kiich
Copy link

kiich commented Sep 19, 2017

When using dex 2.7.0 with CRDs instead of TPRs, when using example-app and doing a callback to it throws the following in dex log

{"level":"error","msg":"failed to create offline session: POST https://10.0.0.1:443/apis/dex.coreos.com/v1/namespaces/kube-system/offlinesessionses Unprocessable Entity: response from server \"{\"kind\":\"Status\",\"apiVersion\":\"v1\",\"metadata\":{},\"status\":\"Failure\",\"message\":\"OfflineSessions.dex.coreos.com \\\"bsdoozmwzmsuo\\\" is invalid: kind: Invalid value: \\\"OfflineSessions\\\": must be OfflineSession\",\"reason\":\"Invalid\",\"details\":{\"name\":\"bsdoozmwzmsuo\",\"group\":\"dex.coreos.com\",\"kind\":\"OfflineSessions\",\"causes\":[{\"reason\":\"FieldValueInvalid\",\"message\":\"Invalid value: \\\"OfflineSessions\\\": must be OfflineSession\",\"field\":\"kind\"}]},\"code\":422}\"","time":"2017-09-19T17:30:17Z"}

The CRDs seems to have been created fine.

{"level":"info","msg":"custom resource already created authcodes.dex.coreos.com","time":"2017-09-19T17:13:31Z"}
{"level":"info","msg":"custom resource already created authrequests.dex.coreos.com","time":"2017-09-19T17:13:31Z"}
{"level":"info","msg":"custom resource already created oauth2clients.dex.coreos.com","time":"2017-09-19T17:13:31Z"}
{"level":"info","msg":"custom resource already created signingkeies.dex.coreos.com","time":"2017-09-19T17:13:31Z"}
{"level":"info","msg":"custom resource already created refreshtokens.dex.coreos.com","time":"2017-09-19T17:13:31Z"}
{"level":"info","msg":"custom resource already created passwords.dex.coreos.com","time":"2017-09-19T17:13:31Z"}
{"level":"info","msg":"custom resource already created offlinesessionses.dex.coreos.com","time":"2017-09-19T17:13:31Z"}
{"level":"info","msg":"custom resource already created connectors.dex.coreos.com","time":"2017-09-19T17:13:31Z"}

Reverting back to TPRs makes everything work again.

@ericchiang
Copy link
Contributor

cc @rithujohn191

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants