Controlling access to JMX MBeans
Set up access to MBeans for authenticated JMX users.
Many monitoring and administrative tools use Management Beans (MBeans) to perform actions on the DataStax Enterprise (DSE) cluster.
When JMX authentication is enabled, non-superuser roles require access to MBeans to
use nodetool
and other DataStax Enterprise (DSE) utilities. Also
access to MBeans may be required by third-party monitoring tools or other custom
management utilities that interact with the database using JMX.
Many of the DSE utilities use the same or similar MBeans, therefore it can be
difficult to create permission sets that limit the commands a user can run. For
example, , , , , and others, require
EXECUTE permissions on the
StorageService
MBean. Important: All nodetool commands require DESCRIBE on all
MBeans.
Access denied error when permission required
When the role
martin
tries to execute
without access to
MBeans,nodetool -u martin -pw password status
the request is
denied.
nodetool: Failed to connect to '127.0.0.1:7199' - SecurityException: 'Access Denied'.
Procedure
-
Create an MBEAN administrator role:
-
Minimal permission required for a role to run nodetool commands: