mirror of https://github.com/apache/cassandra
Merge branch 'cassandra-4.0' into cassandra-4.1
This commit is contained in:
commit
fb7e4e7c48
|
|
@ -1,5 +1,6 @@
|
|||
4.1.4
|
||||
Merged from 4.0:
|
||||
* Fix BulkLoader ignoring cipher suites options (CASSANDRA-18582)
|
||||
* Migrate Python optparse to argparse (CASSANDRA-17914)
|
||||
Merged from 3.11:
|
||||
Merged from 3.0:
|
||||
|
|
|
|||
|
|
@ -404,6 +404,11 @@ public class EncryptionOptions
|
|||
return ap == null ? new String[0] : ap.toArray(new String[0]);
|
||||
}
|
||||
|
||||
public String[] cipherSuitesArray()
|
||||
{
|
||||
return cipher_suites == null ? null : cipher_suites.toArray(new String[0]);
|
||||
}
|
||||
|
||||
public TlsEncryptionPolicy tlsEncryptionPolicy()
|
||||
{
|
||||
if (getOptional())
|
||||
|
|
|
|||
|
|
@ -273,8 +273,9 @@ public class BulkLoader
|
|||
|
||||
// Temporarily override newSSLEngine to set accepted protocols until it is added to
|
||||
// RemoteEndpointAwareJdkSSLOptions. See CASSANDRA-13325 and CASSANDRA-16362.
|
||||
RemoteEndpointAwareJdkSSLOptions sslOptions = new RemoteEndpointAwareJdkSSLOptions(sslContext, null)
|
||||
RemoteEndpointAwareJdkSSLOptions sslOptions = new RemoteEndpointAwareJdkSSLOptions(sslContext, clientEncryptionOptions.cipherSuitesArray())
|
||||
{
|
||||
@Override
|
||||
protected SSLEngine newSSLEngine(SocketChannel channel, InetSocketAddress remoteEndpoint)
|
||||
{
|
||||
SSLEngine engine = super.newSSLEngine(channel, remoteEndpoint);
|
||||
|
|
|
|||
|
|
@ -98,6 +98,7 @@ public class SSTableLoaderEncryptionOptionsTest extends AbstractEncryptionOption
|
|||
"--truststore", validTrustStorePath,
|
||||
"--truststore-password", validTrustStorePassword,
|
||||
"--conf-path", "test/conf/sstableloader_with_encryption.yaml",
|
||||
"--ssl-ciphers", "TLS_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_256_CBC_SHA",
|
||||
sstables_to_upload.absolutePath());
|
||||
tool.assertOnCleanExit();
|
||||
assertTrue(tool.getStdout().contains("Summary statistics"));
|
||||
|
|
|
|||
|
|
@ -165,8 +165,9 @@ public class JavaDriverClient
|
|||
|
||||
// Temporarily override newSSLEngine to set accepted protocols until it is added to
|
||||
// RemoteEndpointAwareJdkSSLOptions. See CASSANDRA-13325 and CASSANDRA-16362.
|
||||
RemoteEndpointAwareJdkSSLOptions sslOptions = new RemoteEndpointAwareJdkSSLOptions(sslContext, null)
|
||||
RemoteEndpointAwareJdkSSLOptions sslOptions = new RemoteEndpointAwareJdkSSLOptions(sslContext, encryptionOptions.cipherSuitesArray())
|
||||
{
|
||||
@Override
|
||||
protected SSLEngine newSSLEngine(SocketChannel channel, InetSocketAddress remoteEndpoint)
|
||||
{
|
||||
SSLEngine engine = super.newSSLEngine(channel, remoteEndpoint);
|
||||
|
|
|
|||
Loading…
Reference in New Issue