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

[kong] add SAN to generated webhook certificate #312

Merged
merged 1 commit into from
Mar 11, 2021
Merged

Conversation

rainest
Copy link
Contributor

@rainest rainest commented Mar 10, 2021

What this PR does / why we need it:

Add a SAN equal to the common name to the generated webhook certificate.
As of Go 1.15, certificates that contain a hostname CommonName and no
SubjectAlternativeName are considered invalid:
https://golang.org/cl/243221

Current versions of KIC use Go 1.15 and will complain without this.

Special notes for your reviewer:

Ref http://masterminds.github.io/sprig/crypto.html#gensignedcert for the syntax.

Once in next, we should cherry-pick into a 1.15.1 release also.

Checklist

[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

  • PR is based off the current tip of the next branch and targets next, not main
  • Title of the PR and commit headers start with chart name (e.g. [kong])

Add a SAN equal to the common name to the generated webhook certificate.
As of Go 1.15, certificates that contain a hostname CommonName and no
SubjectAlternativeName are considered invalid:
https://golang.org/cl/243221

Current versions of KIC use Go 1.15.
@rainest rainest requested a review from a team as a code owner March 10, 2021 22:53
@rainest rainest merged commit ebc9219 into next Mar 11, 2021
@rainest rainest deleted the fix/validation-san branch March 11, 2021 17:32
rainest added a commit that referenced this pull request Mar 11, 2021
Add a SAN equal to the common name to the generated webhook certificate.
As of Go 1.15, certificates that contain a hostname CommonName and no
SubjectAlternativeName are considered invalid:
https://golang.org/cl/243221

Current versions of KIC use Go 1.15.
@rainest rainest mentioned this pull request Mar 11, 2021
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants