mirror of https://github.com/apache/cassandra
Uses ParameterizedClass for IAuthorizer, INetworkAuthorizer, and IRoleManager implementations enabling those to be configurable from parameters specified directly in cassandra.yaml. Opportunistically makes consistent the initialization and setting of all auth-related implementations and removes code duplication. Notes: * IInternodeAuthenticator implementations are expected to be set as default directly in DatabaseDescriptor instead of done via AuthConfig.applyAuth(). This is assumed in tests and client logic. For instance ReconnectableSnitchHelperTest fetches this authenticator before calling daemonInitialize(). Also, BulkLoader fetches this directly when creating an outbound connection. * Changing this behavior in BulkLoader causes a cascade of changes. First, one would need to add AuthConfig.applyAuth() directly in clientInitialize() and then would need to enable all the additional classes that this change causes. Long term this might be justified as if we're depending on the auth logic to be properly set. However, in the context of this change it was decided to postpone further changes. * Standardize auth-related configurations by using a short-form with the class name instead of the full qualified class name containing the package name. patch by Tiago Alves; reviewed by Mick Semb Wever, Stefan Miklosovic for CASSANDRA-19946 |
||
|---|---|---|
| .. | ||
| version=3.0.0-alpha1.yml | ||
| version=3.11.0.yml | ||
| version=4.0-alpha1.yml | ||
| version=4.1-alpha1.yml | ||
| version=5.0-alpha1.yml | ||