You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@cassandra.apache.org by GitBox <gi...@apache.org> on 2022/06/27 20:37:02 UTC
[GitHub] [cassandra] jonmeredith commented on a diff in pull request #1703: CASSANDRA-17700 Remove usage of deprecated IP based authenticate method call
jonmeredith commented on code in PR #1703:
URL: https://github.com/apache/cassandra/pull/1703#discussion_r907772429
##########
src/java/org/apache/cassandra/locator/ReconnectableSnitchHelper.java:
##########
@@ -18,6 +18,7 @@
package org.apache.cassandra.locator;
+import java.net.InetAddress;
Review Comment:
Unused import - guessing it got automatically added for the javadoc below?
##########
src/java/org/apache/cassandra/locator/ReconnectableSnitchHelper.java:
##########
@@ -61,10 +64,22 @@ private void reconnect(InetAddressAndPort publicAddress, VersionedValue localAdd
}
}
+ /**
+ * {@link org.apache.cassandra.auth.IInternodeAuthenticator#authenticate(InetAddress, int)} method is deprecated to
+ * support certificate based authentication.
+ *
+ * Non-certificate based authenticator implementations can do IP/PORT check in authenticate method.
+ *
+ * Certificate based authenticators can let authenticate method succeed if connection is REDIRECT as there are no
+ * certificates at this point to verify. Authentication check happens again in
+ * {@link org.apache.cassandra.net.OutboundConnectionInitiator.ServerAuthenticationHandler} after connection
+ * establishment in certificate based auth.
+ */
Review Comment:
This comment block is more about the implementation inside `reconnect`, not information callers of the snitch method would need. Better to document RECONNECT behavior at the enum, or the default method for `IInternodeAuthenticator.authenticate`.
--
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: pr-unsubscribe@cassandra.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org