Skip to content

Commit 4206c91

Browse files
committed
Add MutualTls authenticators to defaultApprovedAuthenticators
Allow MutualTlsWithPasswordFallbackAuthenticator and MutualTlsAuthenticator as possible authenticators. MutualTlsWithPasswordFallbackAuthenticator should behave functionally the same as PasswordAuthenticator. MutualTlsAuthenticator's current implementation doesn't send AUTHENTICATE messages to the client, but felt it was worth including here in case it is ever enhanced to possibly also require credentials. patch by Andy Tolbert; reviewed by <Reviewers> for CASSANDRA-19858
1 parent a67eebb commit 4206c91

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

conn.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ import (
4646
var (
4747
defaultApprovedAuthenticators = []string{
4848
"org.apache.cassandra.auth.PasswordAuthenticator",
49+
"org.apache.cassandra.auth.MutualTlsAuthenticator",
50+
"org.apache.cassandra.auth.MutualTlsWithPasswordFallbackAuthenticator",
4951
"com.instaclustr.cassandra.auth.SharedSecretAuthenticator",
5052
"com.datastax.bdp.cassandra.auth.DseAuthenticator",
5153
"io.aiven.cassandra.auth.AivenAuthenticator",

conn_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ const (
5656
func TestApprove(t *testing.T) {
5757
tests := map[bool]bool{
5858
approve("org.apache.cassandra.auth.PasswordAuthenticator", []string{}): true,
59+
approve("org.apache.cassandra.auth.MutualTlsWithPasswordFallbackAuthenticator", []string{}): true,
60+
approve("org.apache.cassandra.auth.MutualTlsAuthenticator", []string{}): true,
5961
approve("com.instaclustr.cassandra.auth.SharedSecretAuthenticator", []string{}): true,
6062
approve("com.datastax.bdp.cassandra.auth.DseAuthenticator", []string{}): true,
6163
approve("io.aiven.cassandra.auth.AivenAuthenticator", []string{}): true,

0 commit comments

Comments
 (0)