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

Fix tls tests for go 1.18 #388

Merged

Conversation

simonpasquier
Copy link
Member

No description provided.

The TLS certificates were signed using SHA-1 and Go 1.18 rejects them by
default [1]. This commit provides certificates signed with SHA-256. The
code to generate the certificates is based on existing code from the
prometheus-operator project [2].

[1] https://tip.golang.org/doc/go1.18#sha1
[2] https://github.com/prometheus-operator/prometheus-operator/blob/main/scripts/certs/generate.go

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
@simonpasquier simonpasquier force-pushed the fix-tls-tests-for-go-1.18 branch 3 times, most recently from 2adc267 to e1c2076 Compare July 8, 2022 10:14
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
@simonpasquier simonpasquier marked this pull request as ready for review July 8, 2022 10:27
Copy link
Member

@roidelapluie roidelapluie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

@simonpasquier simonpasquier merged commit d75e027 into prometheus:main Jul 8, 2022
@simonpasquier simonpasquier deleted the fix-tls-tests-for-go-1.18 branch July 8, 2022 11:35
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.

None yet

2 participants