Skip to content

[fix][sec] Upgrade prometheus client_golang to v1.12.2 to fix CVE-2022-21698 - #20579

Merged
tisonkun merged 1 commit into
apache:masterfrom
ericsyh:bump-prom-client-go
Jun 16, 2023
Merged

[fix][sec] Upgrade prometheus client_golang to v1.12.2 to fix CVE-2022-21698#20579
tisonkun merged 1 commit into
apache:masterfrom
ericsyh:bump-prom-client-go

Conversation

@ericsyh

@ericsyh ericsyh commented Jun 14, 2023

Copy link
Copy Markdown
Contributor

Fixes #xyz

Master Issue: #xyz

PIP: #xyz

Motivation

Prometheus client_golang v1.11.1 is impacted by the CVE-2022-21698

Modifications

Upgrade the Prometheus client_golang to v1.12.2

Verifying this change

  • Make sure that the change passes the CI checks.

(Please pick either of the following options)

This change is a trivial rework / code cleanup without any test coverage.

(or)

This change is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(example:)

  • Added integration tests for end-to-end deployment with large payloads (10MB)
  • Extended integration test for recovery after broker failure

Does this pull request potentially affect one of the following parts:

If the box was checked, please highlight the changes

  • Dependencies (add or upgrade a dependency)
  • The public API
  • The schema
  • The default values of configurations
  • The threading model
  • The binary protocol
  • The REST endpoints
  • The admin CLI options
  • The metrics
  • Anything that affects deployment

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

Matching PR in forked repository

PR in forked repository:

My local repo CI result:
https://github.com/ericsyh/pulsar/pull/2

Signed-off-by: ericsyh <ericshenyuhao@outlook.com>
@github-actions github-actions Bot added the doc-not-needed Your PR changes do not impact docs label Jun 14, 2023
@ericsyh

ericsyh commented Jun 14, 2023

Copy link
Copy Markdown
Contributor Author

@codelipenghui @freeznet PTAL

@ericsyh ericsyh changed the title [improve][function-go]: upgrade prom client_golang to v1.12.2 to fix CVE-2022-21698 [improve][fn]: upgrade prom client_golang to v1.12.2 to fix CVE-2022-21698 Jun 16, 2023
@codecov-commenter

codecov-commenter commented Jun 16, 2023

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.01%. Comparing base (3069464) to head (acea6c7).
⚠️ Report is 2049 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@              Coverage Diff              @@
##             master   #20579       +/-   ##
=============================================
+ Coverage     31.93%   73.01%   +41.08%     
- Complexity    11776    31978    +20202     
=============================================
  Files          1498     1867      +369     
  Lines        114571   138636    +24065     
  Branches      12422    15231     +2809     
=============================================
+ Hits          36583   101220    +64637     
+ Misses        73149    29383    -43766     
- Partials       4839     8033     +3194     
Flag Coverage Δ
inttests 24.15% <ø> (?)
systests 24.96% <ø> (?)
unittests 72.31% <ø> (+40.38%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 1552 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@tisonkun

Copy link
Copy Markdown
Member

Merging...

Thank you!

I wonder what versions are expected to be cherry-picked.

@tisonkun tisonkun added this to the 3.1.0 milestone Jun 16, 2023
@tisonkun
tisonkun merged commit a85e9df into apache:master Jun 16, 2023
@tisonkun tisonkun changed the title [improve][fn]: upgrade prom client_golang to v1.12.2 to fix CVE-2022-21698 [fix][sec] Upgrade prometheus client_golang to v1.12.2 to fix CVE-2022-21698 Jun 16, 2023
@ericsyh

ericsyh commented Jun 16, 2023

Copy link
Copy Markdown
Contributor Author

Merging...

Thank you!

I wonder what versions are expected to be cherry-picked.

I think 3.0, 2.11, and 2.10 active branches should cherry-pick this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants