Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Allow JMX rpc to be accessed from within the cluster #58

Merged
merged 7 commits into from
Mar 24, 2020

Conversation

ANeumann82
Copy link
Contributor

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]

@ANeumann82 ANeumann82 requested a review from nfnt February 21, 2020 11:08
Signed-off-by: Andreas Neumann <[email protected]>
Signed-off-by: Andreas Neumann <[email protected]>
operator/params.yaml Outdated Show resolved Hide resolved
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"
Copy link
Contributor

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.

Copy link
Contributor Author

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
Copy link
Contributor

@nfnt nfnt left a 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]>
@ANeumann82 ANeumann82 merged commit 0371979 into master Mar 24, 2020
@ANeumann82 ANeumann82 deleted the an/expose-jmx-in-cluster branch March 24, 2020 17:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants