{"action":"created","issue":{"url":"https://api.github.com/repos/coreos/dex/issues/217","labels_url":"https://api.github.com/repos/coreos/dex/issues/217/labels{/name}","comments_url":"https://api.github.com/repos/coreos/dex/issues/217/comments","events_url":"https://api.github.com/repos/coreos/dex/issues/217/events","html_url":"https://github.com/coreos/dex/issues/217","id":122594117,"number":217,"title":"nil pointer panic in overlord","user":{"login":"colhom","id":1075028,"avatar_url":"https://avatars.githubusercontent.com/u/1075028?v=3","gravatar_id":"","url":"https://api.github.com/users/colhom","html_url":"https://github.com/colhom","followers_url":"https://api.github.com/users/colhom/followers","following_url":"https://api.github.com/users/colhom/following{/other_user}","gists_url":"https://api.github.com/users/colhom/gists{/gist_id}","starred_url":"https://api.github.com/users/colhom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colhom/subscriptions","organizations_url":"https://api.github.com/users/colhom/orgs","repos_url":"https://api.github.com/users/colhom/repos","events_url":"https://api.github.com/users/colhom/events{/privacy}","received_events_url":"https://api.github.com/users/colhom/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/coreos/dex/labels/kind/friction","name":"kind/friction","color":"c7def8"},{"url":"https://api.github.com/repos/coreos/dex/labels/low%20hanging%20fruit","name":"low hanging fruit","color":"207de5"},{"url":"https://api.github.com/repos/coreos/dex/labels/priority/P1","name":"priority/P1","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/coreos/dex/milestones/5","html_url":"https://github.com/coreos/dex/milestones/v0.2.1","labels_url":"https://api.github.com/repos/coreos/dex/milestones/5/labels","id":1464081,"number":5,"title":"v0.2.1","description":"","creator":{"login":"ericchiang","id":2342749,"avatar_url":"https://avatars.githubusercontent.com/u/2342749?v=3","gravatar_id":"","url":"https://api.github.com/users/ericchiang","html_url":"https://github.com/ericchiang","followers_url":"https://api.github.com/users/ericchiang/followers","following_url":"https://api.github.com/users/ericchiang/following{/other_user}","gists_url":"https://api.github.com/users/ericchiang/gists{/gist_id}","starred_url":"https://api.github.com/users/ericchiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericchiang/subscriptions","organizations_url":"https://api.github.com/users/ericchiang/orgs","repos_url":"https://api.github.com/users/ericchiang/repos","events_url":"https://api.github.com/users/ericchiang/events{/privacy}","received_events_url":"https://api.github.com/users/ericchiang/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":3,"state":"open","created_at":"2015-12-16T22:59:01Z","updated_at":"2015-12-17T01:20:32Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-12-16T20:26:50Z","updated_at":"2015-12-17T01:46:58Z","closed_at":null,"body":"I'm seeing a panic when key-secrets is empty. (I did this by mistake). This is happening with the latest docker image:\r\n\r\nrepo=quay.io/coreos/dex\r\ntag=031fef508db2\r\n\r\nPossibly related to #130 \r\nHere's the stack trace\r\n\r\n```\r\nINFO: Performed 0 db migrations\r\nINFO: Binding to 0.0.0.0:5557...\r\npanic: runtime error: invalid memory address or nil pointer dereference\r\n[signal 0xb code=0x1 addr=0x0 pc=0x4b837b]\r\n\r\ngoroutine 8 [running]:\r\ngithub.com/coreos/go-oidc/key.(*PrivateKeyRotator).nextRotation(0xc20806a800, 0x0, 0x0, 0x0)\r\n\t/go/src/github.com/coreos/dex/Godeps/_workspace/src/github.com/coreos/go-oidc/key/rotate.go:80 +0x28b\r\ngithub.com/coreos/go-oidc/key.func·002()\r\n\t/go/src/github.com/coreos/dex/Godeps/_workspace/src/github.com/coreos/go-oidc/key/rotate.go:117 +0x6c\r\ncreated by github.com/coreos/go-oidc/key.(*PrivateKeyRotator).Run\r\n\t/go/src/github.com/coreos/dex/Godeps/_workspace/src/github.com/coreos/go-oidc/key/rotate.go:133 +0x19c\r\n\r\ngoroutine 1 [chan receive]:\r\nmain.main()\r\n\t/go/src/github.com/coreos/dex/Godeps/_workspace/src/github.com/coreos/dex/cmd/dex-overlord/main.go:147 +0x1740\r\n\r\ngoroutine 5 [chan receive]:\r\ndatabase/sql.(*DB).connectionOpener(0xc20806cdc0)\r\n\t/usr/src/go/src/database/sql/sql.go:589 +0x4c\r\ncreated by database/sql.Open\r\n\t/usr/src/go/src/database/sql/sql.go:452 +0x31c\r\n\r\ngoroutine 17 [syscall, locked to thread]:\r\nruntime.goexit()\r\n\t/usr/src/go/src/runtime/asm_amd64.s:2232 +0x1\r\n\r\ngoroutine 6 [IO wait]:\r\nnet.(*pollDesc).Wait(0xc2080d4df0, 0x72, 0x0, 0x0)\r\n\t/usr/src/go/src/net/fd_poll_runtime.go:84 +0x47\r\nnet.(*pollDesc).WaitRead(0xc2080d4df0, 0x0, 0x0)\r\n\t/usr/src/go/src/net/fd_poll_runtime.go:89 +0x43\r\nnet.(*netFD).accept(0xc2080d4d90, 0x0, 0x7fd89e724ef0, 0xc2080a2418)\r\n\t/usr/src/go/src/net/fd_unix.go:419 +0x40b\r\nnet.(*TCPListener).AcceptTCP(0xc208032118, 0x479e34, 0x0, 0x0)\r\n\t/usr/src/go/src/net/tcpsock_posix.go:234 +0x4e\r\nnet/http.tcpKeepAliveListener.Accept(0xc208032118, 0x0, 0x0, 0x0, 0x0)\r\n\t/usr/src/go/src/net/http/server.go:1976 +0x4c\r\nnet/http.(*Server).Serve(0xc2080524e0, 0x7fd89e727b10, 0xc208032118, 0x0, 0x0)\r\n\t/usr/src/go/src/net/http/server.go:1728 +0x92\r\nnet/http.(*Server).ListenAndServe(0xc2080524e0, 0x0, 0x0)\r\n\t/usr/src/go/src/net/http/server.go:1718 +0x154\r\nmain.func·001()\r\n\t/go/src/github.com/coreos/dex/Godeps/_workspace/src/github.com/coreos/dex/cmd/dex-overlord/main.go:143 +0x2a\r\ncreated by main.main\r\n\t/go/src/github.com/coreos/dex/Godeps/_workspace/src/github.com/coreos/dex/cmd/dex-overlord/main.go:144 +0x16e9\r\n\r\ngoroutine 7 [select]:\r\ngithub.com/coreos/dex/db.func·002()\r\n\t/go/src/github.com/coreos/dex/Godeps/_workspace/src/github.com/coreos/dex/db/gc.go:59 +0x3db\r\ncreated by github.com/coreos/dex/db.(*GarbageCollector).Run\r\n\t/go/src/github.com/coreos/dex/Godeps/_workspace/src/github.com/coreos/dex/db/gc.go:78 +0xfb\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/coreos/dex/issues/comments/165311234","html_url":"https://github.com/coreos/dex/issues/217#issuecomment-165311234","issue_url":"https://api.github.com/repos/coreos/dex/issues/217","id":165311234,"user":{"login":"bobbyrullo","id":9629,"avatar_url":"https://avatars.githubusercontent.com/u/9629?v=3","gravatar_id":"","url":"https://api.github.com/users/bobbyrullo","html_url":"https://github.com/bobbyrullo","followers_url":"https://api.github.com/users/bobbyrullo/followers","following_url":"https://api.github.com/users/bobbyrullo/following{/other_user}","gists_url":"https://api.github.com/users/bobbyrullo/gists{/gist_id}","starred_url":"https://api.github.com/users/bobbyrullo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobbyrullo/subscriptions","organizations_url":"https://api.github.com/users/bobbyrullo/orgs","repos_url":"https://api.github.com/users/bobbyrullo/repos","events_url":"https://api.github.com/users/bobbyrullo/events{/privacy}","received_events_url":"https://api.github.com/users/bobbyrullo/received_events","type":"User","site_admin":false},"created_at":"2015-12-17T01:46:58Z","updated_at":"2015-12-17T01:46:58Z","body":"\"low hanging fruit\" - so confident!"}}