{"action":"created","issue":{"url":"https://api.github.com/repos/mintel/dex-k8s-authenticator/issues/68","repository_url":"https://api.github.com/repos/mintel/dex-k8s-authenticator","labels_url":"https://api.github.com/repos/mintel/dex-k8s-authenticator/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/mintel/dex-k8s-authenticator/issues/68/comments","events_url":"https://api.github.com/repos/mintel/dex-k8s-authenticator/issues/68/events","html_url":"https://github.com/mintel/dex-k8s-authenticator/issues/68","id":354760272,"node_id":"MDU6SXNzdWUzNTQ3NjAyNzI=","number":68,"title":"[Question] How to get Dex to reload config file into CRDs?","user":{"login":"luispollo","id":1323478,"node_id":"MDQ6VXNlcjEzMjM0Nzg=","avatar_url":"https://avatars3.githubusercontent.com/u/1323478?v=4","gravatar_id":"","url":"https://api.github.com/users/luispollo","html_url":"https://github.com/luispollo","followers_url":"https://api.github.com/users/luispollo/followers","following_url":"https://api.github.com/users/luispollo/following{/other_user}","gists_url":"https://api.github.com/users/luispollo/gists{/gist_id}","starred_url":"https://api.github.com/users/luispollo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luispollo/subscriptions","organizations_url":"https://api.github.com/users/luispollo/orgs","repos_url":"https://api.github.com/users/luispollo/repos","events_url":"https://api.github.com/users/luispollo/events{/privacy}","received_events_url":"https://api.github.com/users/luispollo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-28T14:34:26Z","updated_at":"2018-08-28T15:29:38Z","closed_at":null,"author_association":"NONE","body":"Hi @nabadger, sorry to open an issue to ask a question, but I was hoping you may have experience with this scenario and might be able to point me in the right direction...\r\n\r\nWe've been using your charts for dex and dex-k8s-authenticator (thanks again for those!), and everything was working fine until we had to add a new OAuth2 Client in dex's config. We can't seem to make dex pick up new values in the file, and so are getting a \"Redirect URL not registered\" error during the authentication flow, or at least that's my theory... I've recreated the dex pod to force it to re-read config, but no luck.\r\n\r\nI'm not very experienced with Kubernetes Custom Resource Definitions (which is the dex storage implementation I'm using), or with dex's internals, but when I query the API for OAuth2Clients I get an empty list:\r\n```commandline\r\n$ kubectl get --raw \"/apis/dex.coreos.com/v1/oauth2clients/\"\r\n{\"apiVersion\":\"dex.coreos.com/v1\",\"items\":[],\"kind\":\"OAuth2ClientList\",\"metadata\":{\"continue\":\"\",\"resourceVersion\":\"3326407\",\"selfLink\":\"/apis/dex.coreos.com/v1/oauth2clients/\"}}\r\n```\r\n...which can't be true because I'm still able to complete the flow for another client I had previously configured in the file.\r\n\r\nMaybe there's something else I'm missing or messed up in my config. Was just curious if you ever came across this and could help me debug.\r\n\r\nFeel free to close this whenever you like."},"comment":{"url":"https://api.github.com/repos/mintel/dex-k8s-authenticator/issues/comments/416631288","html_url":"https://github.com/mintel/dex-k8s-authenticator/issues/68#issuecomment-416631288","issue_url":"https://api.github.com/repos/mintel/dex-k8s-authenticator/issues/68","id":416631288,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNjYzMTI4OA==","user":{"login":"nabadger","id":28828562,"node_id":"MDQ6VXNlcjI4ODI4NTYy","avatar_url":"https://avatars3.githubusercontent.com/u/28828562?v=4","gravatar_id":"","url":"https://api.github.com/users/nabadger","html_url":"https://github.com/nabadger","followers_url":"https://api.github.com/users/nabadger/followers","following_url":"https://api.github.com/users/nabadger/following{/other_user}","gists_url":"https://api.github.com/users/nabadger/gists{/gist_id}","starred_url":"https://api.github.com/users/nabadger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nabadger/subscriptions","organizations_url":"https://api.github.com/users/nabadger/orgs","repos_url":"https://api.github.com/users/nabadger/repos","events_url":"https://api.github.com/users/nabadger/events{/privacy}","received_events_url":"https://api.github.com/users/nabadger/received_events","type":"User","site_admin":false},"created_at":"2018-08-28T15:29:38Z","updated_at":"2018-08-28T15:29:38Z","author_association":"CONTRIBUTOR","body":"My initial hope was that Dex would support `sighup`, but sadly it doesn't, so no way to get the config reloaded (it might be worth raising an issue with the CoreOS guys to see if that can be supported?)"}}
{"actor":{"display_login":"nabadger"}}