micahhausler / k8s-oidc-helper

Helper tool for authenticating to Kubernetes using Google's OpenID Connect
MIT License
201 stars 86 forks source link

Running inside of docker results in SIGSEGV #12

Closed rposborne closed 6 years ago

rposborne commented 6 years ago

Given this docker command

docker run -it -v $(pwd)/client_secret.json:/client_secret.json micahhausler/k8s-oidc-helper:latest bin/k8s-oidc-helper -c /client_secret.json

I expect a successful run, instead I get.

[signal SIGSEGV: segmentation violation code=0x1 addr=0x40 pc=0x74c352]

goroutine 1 [running]:
github.com/micahhausler/k8s-oidc-helper/internal/helper.GetToken(0xc4203d2a00, 0x49, 0xc42037dca0, 0x18, 0xc420462d90, 0x1, 0x0, 0x0, 0x0)
    /go/src/github.com/micahhausler/k8s-oidc-helper/internal/helper/helper.go:54 +0x542
main.main()
    /go/src/github.com/micahhausler/k8s-oidc-helper/main.go:74 +0x5e6

Context

OSX machine running docker edge 18.02.0-ce-rc2-mac51 (22446) The tool runs fine outside of the docker context with the same client secret file.

If there is more context that would be useful I am more than happy to provide.

rposborne commented 6 years ago

Looking at the error it maybe possible that #10 may result in better error messages and something else is wrong.