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

x509 - cannot parse dnsName #11

Closed
markeijsermans opened this issue Jun 20, 2018 · 2 comments · Fixed by #12
Closed

x509 - cannot parse dnsName #11

markeijsermans opened this issue Jun 20, 2018 · 2 comments · Fixed by #12

Comments

@markeijsermans
Copy link

markeijsermans commented Jun 20, 2018

The current version v0.3.0 on quay.io is compiled with a version of golang that is causing issues with intermediary certs. This effects people running prometheus-operator from the generated manifests

Logs from the proxy running in a node-exporter pod:

config.go:330] Expected to load root CA config from /var/run/secrets/kubernetes.io/serviceaccount/ca.crt, but got err: error reading /var/run/secrets/kubernetes.io/serviceaccount/ca.crt: x509: cannot parse dnsName "Self-Signed Root CA for all Dev Kubernetes Clusters"

The golang issue: golang/go#23995 (comment)

As a result Kubernetes go client has experienced these issues: kubernetes/client-go#371.

I can confirm rebuilding kube-rbac-proxy with make container (now using go v1.10.3) fixes the issue.

Tested on Kubernetes version:

Server Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.3", GitCommit:"2bba0127d85d5a46ab4b778548be28623b32d0b0", GitTreeState:"clean", BuildDate:"2018-05-21T09:05:37Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"linux/amd64"}
@brancz
Copy link
Owner

brancz commented Jun 20, 2018

Thanks for this issue! I will re-compile and release a new version to get this fixed.

@brancz brancz mentioned this issue Jun 20, 2018
@brancz
Copy link
Owner

brancz commented Jun 20, 2018

Released and pushed v0.3.1 and images are available under:

  • quay.io/brancz/kube-rbac-proxy:v0.3.1
  • quay.io/coreos/kube-rbac-proxy:v0.3.1

Again, thanks a lot for reporting this. I'll also submit a PR for kube-prometheus to bump to this version.

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

Successfully merging a pull request may close this issue.

2 participants