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
|
4.1.4
|
||||||
Merged from 4.0:
|
Merged from 4.0:
|
||||||
|
* Fix BulkLoader ignoring cipher suites options (CASSANDRA-18582)
|
||||||
* Migrate Python optparse to argparse (CASSANDRA-17914)
|
* Migrate Python optparse to argparse (CASSANDRA-17914)
|
||||||
Merged from 3.11:
|
Merged from 3.11:
|
||||||
Merged from 3.0:
|
Merged from 3.0:
|
||||||
|
|
|
||||||
|
|
@ -404,6 +404,11 @@ public class EncryptionOptions
|
||||||
return ap == null ? new String[0] : ap.toArray(new String[0]);
|
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()
|
public TlsEncryptionPolicy tlsEncryptionPolicy()
|
||||||
{
|
{
|
||||||
if (getOptional())
|
if (getOptional())
|
||||||
|
|
|
||||||
|
|
@ -273,8 +273,9 @@ public class BulkLoader
|
||||||
|
|
||||||
// Temporarily override newSSLEngine to set accepted protocols until it is added to
|
// Temporarily override newSSLEngine to set accepted protocols until it is added to
|
||||||
// RemoteEndpointAwareJdkSSLOptions. See CASSANDRA-13325 and CASSANDRA-16362.
|
// 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)
|
protected SSLEngine newSSLEngine(SocketChannel channel, InetSocketAddress remoteEndpoint)
|
||||||
{
|
{
|
||||||
SSLEngine engine = super.newSSLEngine(channel, remoteEndpoint);
|
SSLEngine engine = super.newSSLEngine(channel, remoteEndpoint);
|
||||||
|
|
|
||||||
|
|
@ -98,6 +98,7 @@ public class SSTableLoaderEncryptionOptionsTest extends AbstractEncryptionOption
|
||||||
"--truststore", validTrustStorePath,
|
"--truststore", validTrustStorePath,
|
||||||
"--truststore-password", validTrustStorePassword,
|
"--truststore-password", validTrustStorePassword,
|
||||||
"--conf-path", "test/conf/sstableloader_with_encryption.yaml",
|
"--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());
|
sstables_to_upload.absolutePath());
|
||||||
tool.assertOnCleanExit();
|
tool.assertOnCleanExit();
|
||||||
assertTrue(tool.getStdout().contains("Summary statistics"));
|
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
|
// Temporarily override newSSLEngine to set accepted protocols until it is added to
|
||||||
// RemoteEndpointAwareJdkSSLOptions. See CASSANDRA-13325 and CASSANDRA-16362.
|
// 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)
|
protected SSLEngine newSSLEngine(SocketChannel channel, InetSocketAddress remoteEndpoint)
|
||||||
{
|
{
|
||||||
SSLEngine engine = super.newSSLEngine(channel, remoteEndpoint);
|
SSLEngine engine = super.newSSLEngine(channel, remoteEndpoint);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue