metrics-server icon indicating copy to clipboard operation
metrics-server copied to clipboard

set --tls-cipher-suites option in metrics-server for CVE-2016-2183

Open athlonreg opened this issue 1 year ago • 12 comments

What this PR does / why we need it: The startup parameter setting --tls-cipher-suites for metrics-server can avoid the security vulnerability CVE-2016-2183. Without it, scanning port 4443 using nmap would result in the following

image

With this parameter, scanning port 4443 using nmap would result in the following

image

This parameter specifies a list of encryption suites, which is generated by removing the insecure C-level suites from the default parameter list.

Introduction to this vulnerability can be found at https://segmentfault.com/a/1190000038486901.

Meanwhile, this patch has also been validated in KubeSphere.

athlonreg avatar Jun 12 '23 07:06 athlonreg

CLA Signed

The committers listed above are authorized under a signed CLA.

  • :white_check_mark: login: athlonreg / name: 套陆 (e6a73f52495f5e6e027bc7c4a3cd8eddd00dea0a)

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: athlonreg Once this PR has been reviewed and has the lgtm label, please assign serathius for approval. For more information see the Kubernetes Code Review Process.

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 /approve in a comment Approvers can cancel approval by writing /approve cancel in a comment

k8s-ci-robot avatar Jun 12 '23 07:06 k8s-ci-robot

Welcome @athlonreg!

It looks like this is your first PR to kubernetes-sigs/metrics-server 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes-sigs/metrics-server has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. :smiley:

k8s-ci-robot avatar Jun 12 '23 07:06 k8s-ci-robot

Hi @athlonreg. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

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/test-infra repository.

k8s-ci-robot avatar Jun 12 '23 07:06 k8s-ci-robot

@athlonreg wouldn't it be better to open a PR to change the Metrics Server defaults rather than update the deployment manifests?

stevehipwell avatar Jun 12 '23 09:06 stevehipwell

@athlonreg wouldn't it be better to open a PR to change the Metrics Server defaults rather than update the deployment manifests?

Without this parameter, the default Go cipher suites will be used. If the default parameters are set and there are changes to this list in Go, it may cause some issues. Therefore, I believe it is more appropriate to set this parameter in the manifest file. The best way may be to use the default list provided in Go.

athlonreg avatar Jun 12 '23 12:06 athlonreg

/triage accepted /assign @dgrisonnet

logicalhan avatar Jun 15 '23 16:06 logicalhan

/ok-to-test

cpanato avatar Nov 28 '23 19:11 cpanato

@athlonreg: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-metrics-server-test-e2e-ha e6a73f52495f5e6e027bc7c4a3cd8eddd00dea0a link true /test pull-metrics-server-test-e2e-ha

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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/test-infra repository. I understand the commands that are listed here.

k8s-ci-robot avatar Nov 28 '23 19:11 k8s-ci-robot

@athlonreg if this is the approach being taken I think the Helm pattern should come from a value rather than being hard coded.

stevehipwell avatar Nov 28 '23 20:11 stevehipwell

The Kubernetes project currently lacks enough contributors to adequately respond to all PRs.

This bot triages PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the PR is closed

You can:

  • Mark this PR as fresh with /remove-lifecycle stale
  • Close this PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

k8s-triage-robot avatar Feb 26 '24 20:02 k8s-triage-robot

The Kubernetes project currently lacks enough active contributors to adequately respond to all PRs.

This bot triages PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the PR is closed

You can:

  • Mark this PR as fresh with /remove-lifecycle rotten
  • Close this PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

k8s-triage-robot avatar Mar 27 '24 21:03 k8s-triage-robot

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the PR is closed

You can:

  • Reopen this PR with /reopen
  • Mark this PR as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/close

k8s-triage-robot avatar Apr 26 '24 22:04 k8s-triage-robot

@k8s-triage-robot: Closed this PR.

In response to this:

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the PR is closed

You can:

  • Reopen this PR with /reopen
  • Mark this PR as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/close

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/test-infra repository.

k8s-ci-robot avatar Apr 26 '24 22:04 k8s-ci-robot