-
Notifications
You must be signed in to change notification settings - Fork 92
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
Allow config of TLS cipher suites and min version #256
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wondering if the parameters shouldn't also be applied for gRPC.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, except you should probably drop the replace
now that the PR is merged.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Edit: Oof,linting fails in CI. An updated dependency probably requires a Go upgrade.
Trying to fix the build at #258 |
Add a single parameter for each, not split across HTTP and gRPC. Signed-off-by: Bryan Boreham <[email protected]>
Signed-off-by: Bryan Boreham <[email protected]>
Signed-off-by: Bryan Boreham <[email protected]>
This brings in a few other dependency updates. Signed-off-by: Bryan Boreham <[email protected]>
6cac2df
to
2a2a019
Compare
Add a single parameter for each, not split across HTTP and gRPC.
Requires change upstream - prometheus/exporter-toolkit#110. This PR is temporarily using a
replace
directive to use that code.Downstream projects rely on CLI parameters to generate docstrings, so we add
--server.tls-cipher-suites
and--server.tls-min-version
. Both CLI and yaml require comma-separated lists of cipher suites, which is different to the yaml array format supported byprometheus/exporter-toolkit
.The names accepted are from Go, listed here: https://pkg.go.dev/crypto/tls#pkg-constants
Fixes #248 (partial, but I haven't seen a justification to do the curves, max version, etc).