-
Notifications
You must be signed in to change notification settings - Fork 494
Enable optional TLS on nodecache metrics endpoint #694
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
base: master
Are you sure you want to change the base?
Enable optional TLS on nodecache metrics endpoint #694
Conversation
Signed-off-by: Nuutti Hakala <[email protected]>
Welcome @nuhakala! |
Hi @nuhakala. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: nuhakala The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Unknown CLA label state. Rechecking for CLA labels. Send feedback to sig-contributor-experience at kubernetes/community. /check-cla |
The committers listed above are authorized under a signed CLA. |
it would be great to have some reviews on this one and move it forward. /cc @DamianSawicki |
/ok-to-test |
Personally, I won't be able to have a look at it at the moment. I see 3 open PRs touching the |
This PR is self-contained and primarily focuses on updates to The implementation is designed to be non-intrusive and does not alter existing functionality. As such, reviewing this PR does not require familiarity with other open pull requests. |
PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Fixes #692. Chose to do the configuration with flags instead of extra config file because thought that it will be simpler and more in line with the project overall.
Adapted the implementation for CoreDNS metrics TLS support to nodecache. The original PR here coredns/coredns#7255
New command line flags
tls-cert-file
default value/etc/ssl/tls.crt
tls-private-key-file
default value/etc/ssl/tls.key
client-auth-type
default valueNoClientCert
client-ca-file
default value emptytls-min-version
default value TLS version 13tls-enabled
default value falseIn order to use the feature, one needs to give as flag
-tls-enabled=1
. The defaults are used and the existence of TLS key-files is checked and error is thrown if no files are found. The defaults can be changed by using the corresponding flags.