prometheus-adapter icon indicating copy to clipboard operation
prometheus-adapter copied to clipboard

Upgrade dependencies for otel vuln fix

Open cerberus20 opened this issue 1 year ago • 4 comments

Bump otelhttp/grpc , custom metrics apiserver. and k8s dependencies

cerberus20 avatar Apr 10 '24 06:04 cerberus20

Hi @cerberus20. 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 Apr 10 '24 06:04 k8s-ci-robot

Thanks so much for the CL cerberus20!

Should we also update the go version as part of this CL? https://github.com/kubernetes-sigs/prometheus-adapter/blob/master/Makefile#L11

jaybooth4 avatar Apr 12 '24 18:04 jaybooth4

yeah, updated @jaybooth4

cerberus20 avatar Apr 13 '24 05:04 cerberus20

Nit @cerberus20 could we update go version to 1.22.2 to include the latest HTTP fixes? https://go.dev/doc/devel/release#go1.22.0

jaybooth4 avatar Apr 18 '24 14:04 jaybooth4

@dgrisonnet @olivierlemasle can we possibly get a quick review for these changes to improve security/vulns? Thanks!

jaybooth4 avatar Apr 18 '24 14:04 jaybooth4

/assign @dgrisonnet /triage accepted

logicalhan avatar Apr 18 '24 16:04 logicalhan

/lgtm

CatherineF-dev avatar Apr 18 '24 19:04 CatherineF-dev

LGTM. Tests will be triggered.

CatherineF-dev avatar Apr 18 '24 19:04 CatherineF-dev

@cerberus20 could you please run make update-lint, it should make the verify test happy.

dgrisonnet avatar Apr 19 '24 17:04 dgrisonnet

FWIW, prometheus-adapter is not impacted by the otel CVE

dgrisonnet avatar Apr 19 '24 17:04 dgrisonnet

and I will most likely wait for https://github.com/kubernetes-sigs/custom-metrics-apiserver/pull/168 before cutting a new release of prometheus-adapter

dgrisonnet avatar Apr 19 '24 17:04 dgrisonnet

New changes are detected. LGTM label has been removed.

k8s-ci-robot avatar Apr 28 '24 02:04 k8s-ci-robot

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: cerberus20 Once this PR has been reviewed and has the lgtm label, please ask for approval from dgrisonnet. 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 Apr 28 '24 02:04 k8s-ci-robot

@cerberus20: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/retest-required

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 28 '24 02:04 k8s-ci-robot

@dgrisonnet @CatherineF-dev Can we please retrigger failed test? thank you

cerberus20 avatar Apr 28 '24 03:04 cerberus20

/test pull-prometheus-adapter-verify

cerberus20 avatar Apr 28 '24 03:04 cerberus20

@cerberus20: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/test pull-prometheus-adapter-verify

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 28 '24 03:04 k8s-ci-robot

/ok-to-test

CatherineF-dev avatar Apr 28 '24 18:04 CatherineF-dev

/retest

jaybooth4 avatar Apr 28 '24 19:04 jaybooth4

@jaybooth4: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/retest

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 28 '24 19:04 k8s-ci-robot

/retest

CatherineF-dev avatar Apr 28 '24 20:04 CatherineF-dev

@cerberus20: 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-prometheus-adapter-verify 85f9fe6d943d2a87c051c7b7d7bc84c3797780e1 link true /test pull-prometheus-adapter-verify

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 Apr 28 '24 20:04 k8s-ci-robot

Any updates here? I'd like to get these upgrades submitted to address vulnerabilities in this project.

chc5 avatar May 13 '24 19:05 chc5

Superseded by https://github.com/kubernetes-sigs/prometheus-adapter/pull/659

dgrisonnet avatar May 16 '24 17:05 dgrisonnet