Skip to content
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

Bump google.golang.org/protobuf from 1.28.1 to 1.33.0 #825

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 13, 2024

Bumps google.golang.org/protobuf from 1.28.1 to 1.33.0.

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Bumps google.golang.org/protobuf from 1.28.1 to 1.33.0.

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Mar 13, 2024
@mikerevellesciplay
Copy link

mikerevellesciplay commented Apr 24, 2024

When is this going to be approved and merged? Is it safe to bump it in modules.txt and go.mod locally until it is?

@Civil
Copy link
Member

Civil commented Apr 24, 2024

It doesn't sound important, because it problem in a part of protobuf library that carbonapi doesn't use. So I probably would bump all dependencies at once when I will be preparing a new release.

@mikerevellesciplay
Copy link

mikerevellesciplay commented Apr 24, 2024

@Civil thanks

@Civil
Copy link
Member

Civil commented Apr 24, 2024

why include libraries that aren't needed at all? it's a bad practice.

Carbonapi uses protobuf library, just not the part that had a security bug.

Bug that depenadbot wanted to fix is in protobuf's json parsing library (protojson.Unmarshal to be precise) and carbonapi doesn't use that functionality of the library (and there are some extras that needs to be used to trigger the DoS).

Protobufs are used heavily by carbonapi (main message format for backend communications), but we only use binary protocol.

Dependabot is somewhat stupid - it parses go.mod, see reference to google.golang.org/protobuf potentially vulnurable version and bumps it. It doesn't check if any of the code actually uses vulnurable codepaths.

@Civil
Copy link
Member

Civil commented Apr 24, 2024

Also about the question you've asked before:

Is it safe to bump it in modules.txt and go.mod locally until it is?

Also about that - it should ok to update all modules within the same major version. In last 6-7 years I don't remember any events when even bumping all modules to latest version broke anything.

@mikerevellesciplay
Copy link

@Civil thanks! is there going to be an artifact for this available in the RHEL9 repo?

@Civil
Copy link
Member

Civil commented Apr 25, 2024

Autobuilds for RHEL9 should work for some time. And release will be added after I tag a new release.

But honestly, it should be ok to use RHEL8 builds, carbonapi only uses cairo and libc from system libraries.

@mikerevellesciplay
Copy link

@Civil sorry I don't understand - there is no carbonapi in the RHEL8 or 9 repo.

@Civil
Copy link
Member

Civil commented Apr 25, 2024

I can see carbonapi for el/7, 8 and 9 in autobuilds:
CleanShot 2024-04-25 at 23 35 54

And I can see stable 0.16.0 for rhel8:
CleanShot 2024-04-25 at 23 34 24

@Civil
Copy link
Member

Civil commented Apr 25, 2024

Hm... There should've been 0.16.1 in stable, but I guess my autoclean script removed it by mistake... Well, I think 0.17.0 is coming anyway soon, so I won't bother rebuilding 0.16.1 again.

@Civil
Copy link
Member

Civil commented Apr 25, 2024

Also #831 should update protobuf to 1.33.0 as part of huge vendored dependencies update.

@mikerevellesciplay
Copy link

@Civil thanks I just wget'd the rpm down. fwiw the package definitely isn't available from the repo via yum. not sure what the deal is. thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants