Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Use Java 17 and upgrade Azure and web3j libraries #530

Merged
merged 11 commits into from
Oct 17, 2023

Conversation

usmansaleem
Copy link
Contributor

@usmansaleem usmansaleem commented Oct 16, 2023

PR Description

  • Use Java 17 to build and at runtime. Update docker image to use Java 17.
  • Upgrade Azure libraries to fix CVE-2023-36415. Suppress CVE for azure-identity 1.10.2 to 1.10.9 as it is only applicable on 1.10.1 and lower.
  • Upgrade web3j core to 4.10.2
  • Override logging-interceptor which fixes okhttp3 dependency for CVE-2023-0833.

Fixed Issue(s)

Documentation

  • I thought about documentation and added the doc-change-required label to this PR if updates are required.

Changelog

  • I thought about adding a changelog entry, and added one if I deemed necessary.

 -- suppress CVE for azure-identity 1.10.2 to 1.10.9 as it is only applicable on 1.10.1 and lower.
 -- Update spotless plugin
 -- Fix javadoc
 -- Update circleci
 -- Update dockerfile
@usmansaleem usmansaleem changed the title Upgrade Azure and web3j libraries Use Java 17 and upgrade Azure and web3j libraries Oct 16, 2023
- Updated Docker image to use the latest Ubuntu LTS image

### Bugs Fixed
- Update grpc to version 1.57.2 to fix CVE-2023-33953
- Update Azure libraries to fix CVE-2023-36415
- Update okhttp logging interceptor version to fix CVE-2023-0833
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need to mention web3j in here too?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we might mention web3j in "features added" ? as we are overriding logging-interceptor anyways ...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

com.squareup.okhttp3:logging-interceptor:4.9.0 // CVE-2023-0833
\--- org.web3j:core:4.10.2
*/
dependency 'com.squareup.okhttp3:logging-interceptor:4.11.0'
Copy link
Contributor

Choose a reason for hiding this comment

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

This is still necessary despite web3j upgrade?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

unfortunately yes ... the fixed version of this library is available as part of web3j latest version ... however, web3j latest version is not compatible with ethsigner anymore due to dependency on signers library. (one of the exception package has changed that signers module is using from web3j).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes...

@usmansaleem usmansaleem added the TeamGroot Identifies a given issue is assigned to the Groot Team label Oct 16, 2023
@usmansaleem usmansaleem self-assigned this Oct 16, 2023
@usmansaleem usmansaleem enabled auto-merge (squash) October 17, 2023 06:31
Copy link
Contributor

@jframe jframe left a comment

Choose a reason for hiding this comment

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

LGTM

@usmansaleem usmansaleem merged commit 9d9e01e into Consensys:master Oct 17, 2023
4 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
TeamGroot Identifies a given issue is assigned to the Groot Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants