Skip to content

Grpc get localhost certificate programically #4212

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

Merged
merged 2 commits into from
Jan 21, 2025

Conversation

mstoykov
Copy link
Contributor

What?

Get the localhost certificate programatically instead of having a hard copy of it from within stdlib

Why?

This localhost certificate was update in golang/go@6783377 and this broke this tests in a none obvious way.

Big part of the problem is that the httptest stdlib package always use the in stdlib certificate.

But this test had a copy of this, but it is not obvious that the problem was this Certificate instead of something else.

Checklist

  • I have performed a self-review of my code.
  • I have added tests for my changes.
  • I have run linter locally (make lint) and all checks pass.
  • I have run tests locally (make tests) and all tests pass.
  • I have commented on my code, particularly in hard-to-understand areas.

Related PR(s)/Issue(s)

Instead of having it copied from within the go stdlib which broke after
golang/go@6783377
@mstoykov mstoykov added the tests label Jan 21, 2025
@mstoykov mstoykov added this to the v0.57.0 milestone Jan 21, 2025
@mstoykov mstoykov requested a review from a team as a code owner January 21, 2025 14:25
@mstoykov mstoykov requested review from inancgumus and ankur22 and removed request for a team January 21, 2025 14:25
@mstoykov
Copy link
Contributor Author

This also reverts #4211 as this now fixes the specific issue.

@mstoykov mstoykov merged commit 6b4be5f into master Jan 21, 2025
29 checks passed
@mstoykov mstoykov deleted the grpcGetLocalhostCertificateProgramically branch January 21, 2025 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants