-
Notifications
You must be signed in to change notification settings - Fork 69
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
Adding min version and cipher suite variables to tls client configuration #217
Conversation
9160365
to
a5d88fe
Compare
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.
Just commenting on some nits, but you also need to fix the build (linting fails) and to sign the CLA.
a5d88fe
to
ee3c31e
Compare
Thanks @aknuds1 ! |
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.
Thank you for your PR.
Is this the same change (roughly) as weaveworks/common#256 ? Oh I see, this is client, while the Still, we should make the naming consistent, and I coded the other PR to avoid bringing in Kubernetes as a dependency. |
Hello @bboreham @pstibrany, Yes, this is more or less the same (goal-wise of allowing a configurable TLS config) as the weaveworks PR. I had just pulled in the K8s dependency for an easier look up, but I can make a map for all the values for a lookup table instead. |
This is different in that it configures client side rather than server. |
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.
I think it looks pretty good now, thanks for dropping the new dependency!
Leaving some suggestions that come to mind.
ed372fc
to
6bf3fe3
Compare
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.
Thank you for addressing my feedback.
68d2c08
to
30dd973
Compare
Hello @pstibrany , your comments have been addressed. |
Thank you for your work on this. I would like to make sure that this PR and grafana/mimir#2898 end up using same constants and help strings. /cc @bboreham I have tried to integrate this PR into Mimir to see what the documentation and help string will look like. Here is an example for CLI flags:
and documentation:
|
That list of strings seems way too long for help text, to me. |
In Mimir we can extract it to a single doc block so that it doesn't repeat. Would that help? (I agree it's a bit long, and this is quite low-level option, so not many people will need it.) |
So, should I revert the help text change on the |
I still think it's valuable to have it in the help without the need for additional lookup in another documentation. Please keep it. In Mimir we will try to minimise the repetition by introducing new doc block. |
Okay, so then I just need to fix the conflict in the |
30dd973
to
01a19ad
Compare
Hello @pstibrany, I was just what is the status of this PR? Is there anything more I need to do in order to get this PR through? |
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.
Good job! CLI flags naming and supported values match the server side ones (weaveworks/common#256) so I'm happy with it 👍
Signed-off-by: Marco Pracucci <[email protected]>
What this PR does:
This PR adds
MinVersion
andCipherSuites
to the TLS configuration. This allows these TLS configuration paramters to be configurable outside of the defaults set by golang.Which issue(s) this PR fixes:
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]