Skip to content

Commit

Permalink
Update tuweni to 2.0.0 and add ALLOWLIST truststore type (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
usmansaleem authored Jan 7, 2022
1 parent ff46b59 commit 4fa27ca
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog
## 1.0.25
### Features Added
- Update Tuweni libraries to 2.0.0
- Add ALLOWLIST as Hashicorp TrustStore type.

---
## 1.0.24
### Bugs Fixed
- Updated to log4j 2.17.1. Resolves two potential vulnerabilities which are only exploitable when using custom log4j configurations that are either writable by untrusted users or log data from the `ThreadContext`.
Expand Down
10 changes: 6 additions & 4 deletions gradle/versions.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,12 @@ dependencyManagement {
entry 'log4j-slf4j-impl'
}

dependency 'org.apache.tuweni:tuweni-bytes:0.10.0'
dependency 'org.apache.tuweni:tuweni-crypto:0.10.0'
dependency 'org.apache.tuweni:tuweni-net:0.10.0'
dependency 'org.apache.tuweni:tuweni-toml:0.10.0'
dependencySet(group: 'org.apache.tuweni', version: '2.0.0') {
entry 'tuweni-bytes'
entry 'tuweni-crypto'
entry 'tuweni-net'
entry 'tuweni-toml'
}

dependency 'org.assertj:assertj-core:3.15.0'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,11 @@ private void setTrustOptions(
new PemTrustOptions().addCertPath(tlsOptions.getTrustStorePath().toString()));
break;
case WHITELIST:
case ALLOWLIST:
// Tuweni throws an NPE if the trustStorePath has no directory prefix, thus requiring
// the use of absolutePath.
httpClientOptions.setTrustOptions(
VertxTrustOptions.whitelistServers(
VertxTrustOptions.allowlistServers(
tlsOptions.getTrustStorePath().toAbsolutePath(), false));
break;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public enum TrustStoreType {
JKS(true),
PKCS12(true),
WHITELIST(false),
ALLOWLIST(false),
PEM(false);

private boolean passwordRequired;
Expand Down

0 comments on commit 4fa27ca

Please sign in to comment.