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 2021/07/06 08:50:50 UTC

[GitHub] [cassandra] blerer commented on a change in pull request #950: CASSANDRA-16404. Provide a nodetool way of invalidating auth caches.

blerer commented on a change in pull request #950:
URL: https://github.com/apache/cassandra/pull/950#discussion_r664363829



##########
File path: src/java/org/apache/cassandra/auth/jmx/AuthorizationProxy.java
##########
@@ -490,5 +491,17 @@ protected JMXPermissionsCache()
                   AuthorizationProxy::loadPermissions,
                   () -> true);
         }
+
+        public void invalidatePermissions(String roleName)
+        {
+            invalidate(RoleResource.role(roleName));
+        }
+    }
+
+    public static interface JmxPermissionsCacheMBean extends AuthCacheMBean
+    {
+        public static final String CACHE_NAME = "JMXPermissionsCache";

Review comment:
       We need to keep backward compatibility for the JMX names. Some applications might be relying on them.




-- 
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