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

Generate self-sign cert with SHA256 #8

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

anattapol
Copy link

Summary

When apply a pod, I faced this error.

$ kubectl -n $ns apply -f dev/manifests/pods/bad-name.pod.yaml
Error from server (InternalError): error when creating "dev/manifests/pods/bad-name.pod.yaml": Internal error occurred: failed calling webhook "simple-kubernetes-webhook.acme.com": failed to call webhook: Post "https://simple-kubernetes-webhook.default.svc:443/mutate-pods?timeout=2s": x509: certificate signed by unknown authority (possibly because of "x509: cannot verify signature: insecure algorithm SHA1-RSA (temporarily override with GODEBUG=x509sha1=1)" while trying to verify candidate authority certificate "simple-kubernetes-webhook")

The cert used the insecure algorithm SHA1-RSA.
That will be blocked by crypto/x509. golang/go#41682

Requirements (place an x in each [ ])

The following point can be removed after setting up CI (such as Travis) with coverage reports (such as Codecov)

  • I've written tests to cover the new code and functionality included in this PR.

The following point can be removed after setting up a CLA reporting tool such as cla-assistant.io

@CLAassistant
Copy link

CLAassistant commented Feb 26, 2023

CLA assistant check
All committers have signed the CLA.

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 this pull request may close these issues.

2 participants