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: consul-webhook-cert-manager is unable to put correct caBundle in consul-controller-mutating-webhook-configuration on consul update #808

Closed
amit106679 opened this issue Oct 27, 2021 · 3 comments · Fixed by #837
Labels
type/bug Something isn't working

Comments

@amit106679
Copy link

amit106679 commented Oct 27, 2021

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request. Searching for pre-existing feature requests helps us consolidate datapoints for identical requirements into a single place, thank you!
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.

Overview of the Issue

Upgrading any parameter in consul via helm in a kubernetes cluster starts giving error: Internal error occurred: failed calling webhook "mutate-servicerouter.consul.hashicorp.com": Post "https://consul-consul-controller-webhook.consul.svc:443/mutate-v1alpha1-servicerouter?timeout=10s": x509: certificate signed by unknown authority.

Reproduction Steps

Install consul 1.10.2 via helm.
Update any small parameter like affinity in the config yaml and update via helm.

Cause of the issue & Workaround

Updating consul resets caBundle value in consul-controller-mutating-webhook-configuration to the default value. Restarting the consul-webhook-cert-manager deployment mitigates the issue by putting correct value of caBundle again in the above mutatingwebhookconfiguration.

The expected behaviour should be that webhook-cert-manager reloads the caBundle correctly but on upgrade it is not able to till it is restarted.

@amit106679 amit106679 added the type/bug Something isn't working label Oct 27, 2021
@amit106679 amit106679 changed the title consul-webhook-cert-manager is unable to put correct caBundle in consul-controller-mutating-webhook-configuration on upgrade. x509: consul-webhook-cert-manager is unable to put correct caBundle in consul-controller-mutating-webhook-configuration on upgrade. Oct 27, 2021
@amit106679 amit106679 changed the title x509: consul-webhook-cert-manager is unable to put correct caBundle in consul-controller-mutating-webhook-configuration on upgrade. x509: consul-webhook-cert-manager is unable to put correct caBundle in consul-controller-mutating-webhook-configuration on consul update Oct 27, 2021
@lkysow
Copy link
Member

lkysow commented Nov 3, 2021

I've reproduced this and we're working on a fix now.

@amit106679
Copy link
Author

amit106679 commented Nov 9, 2021

@lkysow thanks for the fix - any timeline when this will be released on helm charts?

Also we faced another issue:
x509: certificate has expired or is not yet valid: current time 2021-11-09T05:37:48Z is after 2021-11-08T19:40:44Z

Please let me know if this is fixed or should I create another ticket for this?

@lkysow
Copy link
Member

lkysow commented Nov 9, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants