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

Upgrade grpc and protobuf to address CVE-2023-32732 #3992

Merged
merged 2 commits into from
Jun 20, 2023

Conversation

lhotari
Copy link
Member

@lhotari lhotari commented Jun 19, 2023

Motivation

OWASP dependency check fails because of CVE-2023-32732 in grpc.

Changes

  • Upgrade grpc to 1.56.0
  • Upgrade protobuf to 3.22.3 to match the version used in grpc 1.56.0
  • Upgrade other grpc/protobuf related libs

Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 thanks

@zymap zymap added dependencies Pull requests that update a dependency file release/4.16.2 labels Jun 20, 2023
@zymap zymap added this to the 4.17.0 milestone Jun 20, 2023
@zymap zymap merged commit e188ed8 into apache:master Jun 20, 2023
zymap pushed a commit that referenced this pull request Jun 20, 2023
### Motivation

OWASP dependency check fails because of CVE-2023-32732 in grpc.

### Changes

* Upgrade grpc to 1.56.0
* Upgrade protobuf to 3.22.3 to match the version used in grpc 1.56.0
* Upgrade other grpc/protobuf related libs

(cherry picked from commit e188ed8)
@lhotari
Copy link
Member Author

lhotari commented Jun 20, 2023

Unfortunately there seems to be a breaking change in grpc-java at this location grpc/grpc-java@fcb5c54#r118953940 .
This showed up in apache/pulsar#20602 (comment) .
I guess we don't have compatibility tests for the BK client that would test using it with a newer grpc-java version.
@zymap @hangc0276 Any ideas about how to handle this?

@lhotari
Copy link
Member Author

lhotari commented Jun 20, 2023

I think I found a solution. I'll send a PR.

@lhotari
Copy link
Member Author

lhotari commented Jun 20, 2023

#3997 contains the fix for the binary compatibility, it is necessary to merge that too.

zymap pushed a commit that referenced this pull request Jun 21, 2023
…me in the bookkeeper client. (#3997)

### Motivation

- grpc version was upgraded to 1.56.0 in #3992
- that breaks binary compatibility for DnsNameResolverProvider class
  - see grpc/grpc-java@fcb5c54#diff-b04e884de51ed12ff79482f600a2d4ec18e405ee189a4952ae35f4d2742b7160L50

### Changes

- make the field type NameResolverProvider instead of DnsNameResolverProvider
  - this prevents possible NoSuchMethodError errors about DnsNameResolverProvider.newNameResolver method
zymap pushed a commit that referenced this pull request Jun 21, 2023
…me in the bookkeeper client. (#3997)

### Motivation

- grpc version was upgraded to 1.56.0 in #3992
- that breaks binary compatibility for DnsNameResolverProvider class
  - see grpc/grpc-java@fcb5c54#diff-b04e884de51ed12ff79482f600a2d4ec18e405ee189a4952ae35f4d2742b7160L50

### Changes

- make the field type NameResolverProvider instead of DnsNameResolverProvider
  - this prevents possible NoSuchMethodError errors about DnsNameResolverProvider.newNameResolver method

(cherry picked from commit ffc8e8b)
zymap pushed a commit that referenced this pull request Dec 7, 2023
### Motivation

OWASP dependency check fails because of CVE-2023-32732 in grpc.

### Changes

* Upgrade grpc to 1.56.0
* Upgrade protobuf to 3.22.3 to match the version used in grpc 1.56.0
* Upgrade other grpc/protobuf related libs

(cherry picked from commit e188ed8)
zymap pushed a commit that referenced this pull request Dec 7, 2023
…me in the bookkeeper client. (#3997)

### Motivation

- grpc version was upgraded to 1.56.0 in #3992
- that breaks binary compatibility for DnsNameResolverProvider class
  - see grpc/grpc-java@fcb5c54#diff-b04e884de51ed12ff79482f600a2d4ec18e405ee189a4952ae35f4d2742b7160L50

### Changes

- make the field type NameResolverProvider instead of DnsNameResolverProvider
  - this prevents possible NoSuchMethodError errors about DnsNameResolverProvider.newNameResolver method

(cherry picked from commit ffc8e8b)
Ghatage pushed a commit to sijie/bookkeeper that referenced this pull request Jul 12, 2024
### Motivation

OWASP dependency check fails because of CVE-2023-32732 in grpc.

### Changes

* Upgrade grpc to 1.56.0
* Upgrade protobuf to 3.22.3 to match the version used in grpc 1.56.0
* Upgrade other grpc/protobuf related libs
Ghatage pushed a commit to sijie/bookkeeper that referenced this pull request Jul 12, 2024
…me in the bookkeeper client. (apache#3997)

### Motivation

- grpc version was upgraded to 1.56.0 in apache#3992
- that breaks binary compatibility for DnsNameResolverProvider class
  - see grpc/grpc-java@fcb5c54#diff-b04e884de51ed12ff79482f600a2d4ec18e405ee189a4952ae35f4d2742b7160L50

### Changes

- make the field type NameResolverProvider instead of DnsNameResolverProvider
  - this prevents possible NoSuchMethodError errors about DnsNameResolverProvider.newNameResolver method
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.

4 participants