You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "ctubbsii (via GitHub)" <gi...@apache.org> on 2023/09/28 06:24:00 UTC
[GitHub] [accumulo] ctubbsii opened a new pull request, #3787: Clean up Thrift SSL code
ctubbsii opened a new pull request, #3787:
URL: https://github.com/apache/accumulo/pull/3787
* Remove unneeded ProtocolOverridingSSLSocketFactory that was used to support older JDK versions that we no longer support
* Clean up SslConnectionParams class to remove a workaround for a bug that was patched upstream in Thrift
* Use Thrift's provided TSSLTransportFactory.getClientSocket method that allows us to provide custom TSSLTransportParameters and delete the private methods copied from Thrift 0.9.1 that were used to implement this ourselves (methods which were not kept up to date with the improvements in upstream Thrift)
* Rename SslConnectionParams.getTTransportParams to .getTSSLTransportParameters, because the old name for the getter method did not reflect the actual type that it returned, and the old name did not make it clear it was returning a parameters object specifically for SSL / TLS
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [accumulo] EdColeman commented on a diff in pull request #3787: Clean up Thrift SSL code
Posted by "EdColeman (via GitHub)" <gi...@apache.org>.
EdColeman commented on code in PR #3787:
URL: https://github.com/apache/accumulo/pull/3787#discussion_r1340710570
##########
core/src/main/java/org/apache/accumulo/core/rpc/SslConnectionParams.java:
##########
@@ -222,26 +222,12 @@ public String getTrustStoreType() {
return trustStoreType;
}
- // Work around THRIFT-3450 ... fixed with b9641e094...
- static class TSSLTransportParametersHack extends TSSLTransportParameters {
- TSSLTransportParametersHack(String clientProtocol) {
- super(clientProtocol, new String[] {});
- this.cipherSuites = null;
- }
- }
-
- public TSSLTransportParameters getTTransportParams() {
+ public TSSLTransportParameters getTSSLTransportParameters() {
if (useJsse) {
- throw new IllegalStateException("Cannot get TTransportParams for JSEE configuration.");
- }
-
- TSSLTransportParameters params;
- if (cipherSuites != null) {
- params = new TSSLTransportParameters(clientProtocol, cipherSuites);
- } else {
- params = new TSSLTransportParametersHack(clientProtocol);
+ throw new IllegalStateException("Cannot get TTransportParams for JSSE configuration.");
Review Comment:
```suggestion
throw new IllegalStateException("Cannot get TSSLTransportParameters for JSSE configuration.");
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [accumulo] ctubbsii merged pull request #3787: Clean up Thrift SSL code
Posted by "ctubbsii (via GitHub)" <gi...@apache.org>.
ctubbsii merged PR #3787:
URL: https://github.com/apache/accumulo/pull/3787
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [accumulo] ctubbsii commented on pull request #3787: Clean up Thrift SSL code
Posted by "ctubbsii (via GitHub)" <gi...@apache.org>.
ctubbsii commented on PR #3787:
URL: https://github.com/apache/accumulo/pull/3787#issuecomment-1740106248
> Minor suggestion in exception message that you can ignore.
Good catch. Thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [accumulo] ctubbsii commented on pull request #3787: Clean up Thrift SSL code
Posted by "ctubbsii (via GitHub)" <gi...@apache.org>.
ctubbsii commented on PR #3787:
URL: https://github.com/apache/accumulo/pull/3787#issuecomment-1740056497
All the SSL tests pass with these changes.
I did see `org.apache.accumulo.core.util.CompletableFutureUtilTest.testIterateUntil` fail. It seems unrelated, but I created #3790 for that.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org