-
Notifications
You must be signed in to change notification settings - Fork 3
Allow JMX rpc to be accessed from within the cluster #58
Conversation
Signed-off-by: Andreas Neumann <[email protected]>
Signed-off-by: Andreas Neumann <[email protected]>
Signed-off-by: Andreas Neumann <[email protected]>
JVM_OPTS="$JVM_OPTS -Dcassandra.jmx.remote.port=$JMX_PORT" | ||
# if ssl is enabled the same port cannot be used for both jmx and rmi so either | ||
# pick another value for this property or comment out to use a random port (though see CASSANDRA-7087 for origins) | ||
JVM_OPTS="$JVM_OPTS -Dcom.sun.management.jmxremote.rmi.port=$JMX_PORT" | ||
|
||
# turn on JMX authentication. See below for further options | ||
JVM_OPTS="$JVM_OPTS -Dcom.sun.management.jmxremote.authenticate=true" | ||
JVM_OPTS="$JVM_OPTS -Dcom.sun.management.jmxremote.authenticate=false" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Disabling authentication and SSL seems very insecure. This should be configurable and enabled by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is an explicit ticket for this. I'd prefer to focus on the actual backup & restore for now, as this might lead to bigger changes in the operator itself.
I do agree that this should be configurable and be enabled by default though.
Added Dockerfile change to template Signed-off-by: Andreas Neumann <[email protected]>
# Conflicts: # tests/suites/sanity/sanity_test.go
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, as SSL has an extra ticket.
Signed-off-by: Andreas Neumann <[email protected]>
This is prework for backup/restore, so we can control the cluster/node from outside the running pod.
Signed-off-by: Andreas Neumann [email protected]