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

HADOOP-18197. Upgrade protobuf to 3.21.x through upgraded hadoop-shaded-protobuf jar) #4418

Draft
wants to merge 2 commits into
base: trunk
Choose a base branch
from

Conversation

steveloughran
Copy link
Contributor

Description of PR

This patch bumps up the protobuf version so that Hadoop
is not a vulnerable to CVE-2021-22569.

Depends on a version of hadoop-shaded-protobuf_3_7 with the update;
this PR does this by depending on 1.2.0-SNAPSHOT...this is only going to
work for local builds

How was this patch tested?

non-native build on a local mac against a local build of the thirdparty jar.

none of the docker changes/build instructions have been tested yet

For code changes:

  • Does the title or this PR starts with the corresponding JIRA issue id (e.g. 'HADOOP-17799. Your PR title ...')?
  • Object storage: have the integration tests been executed and the endpoint declared according to the connector-specific documentation?
  • If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
  • If applicable, have you updated the LICENSE, LICENSE-binary, NOTICE-binary files?

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 47m 45s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 codespell 0m 0s codespell was not available.
+0 🆗 detsecrets 0m 0s detect-secrets was not available.
+0 🆗 shellcheck 0m 0s Shellcheck was not available.
+0 🆗 shelldocs 0m 0s Shelldocs was not available.
+0 🆗 hadolint 0m 0s hadolint was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
-1 ❌ test4tests 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ trunk Compile Tests _
+0 🆗 mvndep 14m 25s Maven dependency ordering for branch
+1 💚 mvninstall 28m 26s trunk passed
+1 💚 compile 21m 42s trunk passed
+1 💚 mvnsite 20m 9s trunk passed
+1 💚 javadoc 7m 54s trunk passed
+1 💚 shadedclient 29m 33s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 39s Maven dependency ordering for patch
-1 ❌ mvninstall 1m 11s /patch-mvninstall-root.txt root in the patch failed.
-1 ❌ compile 1m 1s /patch-compile-root.txt root in the patch failed.
-1 ❌ javac 1m 1s /patch-compile-root.txt root in the patch failed.
+1 💚 blanks 0m 0s The patch has no blanks issues.
-1 ❌ mvnsite 0m 51s /patch-mvnsite-root.txt root in the patch failed.
+1 💚 xmllint 0m 0s No new issues.
-1 ❌ javadoc 7m 29s /results-javadoc-javadoc-root.txt root generated 516 new + 2329 unchanged - 0 fixed = 2845 total (was 2329)
-1 ❌ shadedclient 9m 58s patch has errors when building and testing our client artifacts.
_ Other Tests _
-1 ❌ unit 8m 7s /patch-unit-root.txt root in the patch failed.
+1 💚 asflicense 1m 9s The patch does not generate ASF License warnings.
187m 45s
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-4418/1/artifact/out/Dockerfile
GITHUB PR #4418
Optional Tests dupname asflicense codespell detsecrets shellcheck shelldocs hadolint mvnsite unit compile javac javadoc mvninstall shadedclient xmllint
uname Linux 3c012a890e06 4.15.0-175-generic #184-Ubuntu SMP Thu Mar 24 17:48:36 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / 9245560
Default Java Red Hat, Inc.-1.8.0_332-b09
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-4418/1/testReport/
Max. process+thread count 595 (vs. ulimit of 5500)
modules C: hadoop-project . U: .
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-4418/1/console
versions git=2.9.5 maven=3.6.3 xmllint=20901
Powered by Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

@steveloughran steveloughran marked this pull request as draft June 14, 2022 09:08
@steveloughran steveloughran force-pushed the feature/HADOOP-18197-protobuf-upgrade branch from 9245560 to d272048 Compare October 10, 2022 15:01
@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 37m 52s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 codespell 0m 0s codespell was not available.
+0 🆗 detsecrets 0m 0s detect-secrets was not available.
+0 🆗 shellcheck 0m 0s Shellcheck was not available.
+0 🆗 shelldocs 0m 0s Shelldocs was not available.
+0 🆗 hadolint 0m 0s hadolint was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
-1 ❌ test4tests 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ trunk Compile Tests _
+0 🆗 mvndep 15m 37s Maven dependency ordering for branch
+1 💚 mvninstall 27m 5s trunk passed
+1 💚 compile 21m 9s trunk passed
+1 💚 mvnsite 19m 46s trunk passed
+1 💚 javadoc 7m 52s trunk passed
+1 💚 shadedclient 26m 34s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 25s Maven dependency ordering for patch
-1 ❌ mvninstall 0m 48s /patch-mvninstall-root.txt root in the patch failed.
-1 ❌ mvninstall 0m 20s /patch-mvninstall-hadoop-common-project_hadoop-common.txt hadoop-common in the patch failed.
-1 ❌ mvninstall 0m 22s /patch-mvninstall-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-api.txt hadoop-yarn-api in the patch failed.
-1 ❌ compile 0m 40s /patch-compile-root.txt root in the patch failed.
-1 ❌ javac 0m 40s /patch-compile-root.txt root in the patch failed.
+1 💚 blanks 0m 0s The patch has no blanks issues.
-1 ❌ mvnsite 0m 31s /patch-mvnsite-root.txt root in the patch failed.
+1 💚 xmllint 0m 0s No new issues.
-1 ❌ javadoc 0m 33s /patch-javadoc-root.txt root in the patch failed.
-1 ❌ shadedclient 2m 9s patch has errors when building and testing our client artifacts.
_ Other Tests _
-1 ❌ unit 6m 48s /patch-unit-root.txt root in the patch failed.
+1 💚 asflicense 1m 1s The patch does not generate ASF License warnings.
164m 9s
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-4418/2/artifact/out/Dockerfile
GITHUB PR #4418
Optional Tests dupname asflicense codespell detsecrets shellcheck shelldocs hadolint mvnsite unit compile javac javadoc mvninstall shadedclient xmllint
uname Linux 67905c1ae8ab 4.15.0-191-generic #202-Ubuntu SMP Thu Aug 4 01:49:29 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / d272048
Default Java Red Hat, Inc.-1.8.0_345-b01
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-4418/2/testReport/
Max. process+thread count 624 (vs. ulimit of 5500)
modules C: hadoop-project . hadoop-common-project/hadoop-common hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api U: .
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-4418/2/console
versions git=2.9.5 maven=3.6.3 xmllint=20901
Powered by Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

@steveloughran steveloughran changed the title HADOOP-18197. Upgrade protobuf to 3.21.1 HADOOP-18197. Upgrade protobuf to 3.21.7 (through upgraded hadoop-shaded-protobuf jar) Oct 12, 2022
This patch bumps up the protobuf version so that Hadoop
is not a vulnerable to CVE-2021-22569.

Depends on a version of hadoop-shaded-protobuf_3_7 with the update;
this PR does this by depending on 1.2.0-SNAPSHOT...this is only going to
work for local builds

Change-Id: Id280936f7a19d6730a8267299741eb4bac65aaa2
Change-Id: Icc92767db4e0feafe8000d9aac8e77984562eb9e
@steveloughran steveloughran force-pushed the feature/HADOOP-18197-protobuf-upgrade branch from d272048 to 4f05bf4 Compare October 20, 2022 12:32
@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 46m 14s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 codespell 0m 0s codespell was not available.
+0 🆗 detsecrets 0m 0s detect-secrets was not available.
+0 🆗 shellcheck 0m 0s Shellcheck was not available.
+0 🆗 shelldocs 0m 0s Shelldocs was not available.
+0 🆗 hadolint 0m 0s hadolint was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
-1 ❌ test4tests 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ trunk Compile Tests _
+0 🆗 mvndep 15m 45s Maven dependency ordering for branch
+1 💚 mvninstall 29m 26s trunk passed
+1 💚 compile 22m 17s trunk passed
+1 💚 mvnsite 20m 45s trunk passed
+1 💚 javadoc 7m 57s trunk passed
+1 💚 shadedclient 30m 33s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 34s Maven dependency ordering for patch
-1 ❌ mvninstall 1m 11s /patch-mvninstall-root.txt root in the patch failed.
-1 ❌ compile 0m 59s /patch-compile-root.txt root in the patch failed.
-1 ❌ javac 0m 59s /patch-compile-root.txt root in the patch failed.
+1 💚 blanks 0m 0s The patch has no blanks issues.
-1 ❌ mvnsite 0m 48s /patch-mvnsite-root.txt root in the patch failed.
+1 💚 xmllint 0m 0s No new issues.
-1 ❌ javadoc 7m 33s /results-javadoc-javadoc-root.txt root generated 534 new + 2269 unchanged - 0 fixed = 2803 total (was 2269)
-1 ❌ shadedclient 9m 53s patch has errors when building and testing our client artifacts.
_ Other Tests _
-1 ❌ unit 7m 42s /patch-unit-root.txt root in the patch failed.
+1 💚 asflicense 1m 1s The patch does not generate ASF License warnings.
189m 56s
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-4418/3/artifact/out/Dockerfile
GITHUB PR #4418
Optional Tests dupname asflicense codespell detsecrets shellcheck shelldocs hadolint mvnsite unit compile javac javadoc mvninstall shadedclient xmllint
uname Linux eeeb6886f515 4.15.0-191-generic #202-Ubuntu SMP Thu Aug 4 01:49:29 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / 4f05bf4
Default Java Red Hat, Inc.-1.8.0_345-b01
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-4418/3/testReport/
Max. process+thread count 530 (vs. ulimit of 5500)
modules C: hadoop-project . U: .
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-4418/3/console
versions git=2.9.5 maven=3.6.3 xmllint=20901
Powered by Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

<protoc.path>${env.HADOOP_PROTOC_PATH}</protoc.path>

<hadoop-thirdparty.version>1.1.1</hadoop-thirdparty.version>
<hadoop-thirdparty.version>1.2.0-SNAPSHOT</hadoop-thirdparty.version>

Choose a reason for hiding this comment

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

reminder

* Protocol Buffers 3.21.1 (required to compile native code)
$ wget https://github.com/protocolbuffers/protobuf/releases/download/v3.21.1/protobuf-java-3.21.1.tar.gz
$ mkdir -p protobuf-3.21 && tar zxvf protobuf-java-3.21.1.tar.gz --strip-components 1 -C protobuf-3.21
$ cd protobuf-3.721
Copy link

@xizhu-mstr xizhu-mstr Mar 30, 2023

Choose a reason for hiding this comment

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

Typo. Should be protobuf-3.21

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah

@steveloughran
Copy link
Contributor Author

@xizhu-mstr @tooptoop4 i'm not actively working on this; too many pressing issues and after getting 3.3.5 out the door I'm catching up with the internal stuff. Either of you two want to take it on?

I'd also like to get #4996 in; if anyone wants to run with that, I'd be very happy. We shouldn't need protobuf 2.5 on the CP given we aren't using it

@abhishekagarwal87
Copy link

@steveloughran - is this a genuine CVE in hadoop-shaded-protobuf or is it just to please the scanner gods? :)

@steveloughran
Copy link
Contributor Author

usual ongoing protobuf issues; AFAIK none of them lethal. YMMV

I do want #4996 in so we can get protobuf 2.5 off the classpath. if you could take that up, it'd be good. that PR doesn't cut it, only make it optional. a followup would cut it.

@janjwerner-confluent
Copy link

@steveloughran
The title states upgrade protobuf to 3.21.7 while the version downloaded is 3.21.1. hope you can bump it up whenever you'll get back to this.

@steveloughran steveloughran changed the title HADOOP-18197. Upgrade protobuf to 3.21.7 (through upgraded hadoop-shaded-protobuf jar) HADOOP-18197. Upgrade protobuf to 3.21.x through upgraded hadoop-shaded-protobuf jar) Aug 21, 2023
@steveloughran
Copy link
Contributor Author

says 3.21.x... we should take the latest one we can which doesn't include other surprises...pr and jira can be set to the final version which goes in as it is merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants