-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ScyllaDB JMX opens random port on all interfaces #236
Comments
@mykaul the random port blocks security validation for the operator (scylladb/scylla-operator#1759) do we have anyone to assign this to? |
If all goes well, JMX is going to be retired in 6.0 (at least from base installations), as well as java in general. |
As much as I like JMX going away, we'll have to live with the older versions + enterprise for quite a bit :( |
You will need @mykaul to find you somebody who can actually Java, because I can't. |
I wonder if it happens only with IPv6. |
the |
so this bug should be in https://github.com/scylladb/scylla-jmx |
@elcallio @amnonh do you guys remember why there is extra port open and who allocates it after registermbean in https://github.com/scylladb/scylla-jmx/blob/master/src/main/java/com/scylladb/jmx/main/Main.java ? could it be some debug leftover? |
I think I might have an answer - it's about local jconsole connection it seems - https://www.baeldung.com/jmx-ports
might fix this and bind the port to static |
so try to fix here https://github.com/scylladb/scylla-jmx/blob/master/scripts/scylla-jmx#L134 ? |
huh ... and I didn't realize but it says that .local.port is there since JDK 16 only ... d'oh :-( |
@mykaul can you please move this to |
We are deprecating jmx in 6.0 or 6.1 the latest. |
This is Scylla's bug tracker, to be used for reporting bugs only.
If you have a question about Scylla, and not a bug, please ask it in
our mailing-list at [email protected] or in our slack channel.
Installation details
Scylla version (or git commit hash): 5.4.3
Cluster size: 1
OS (RHEL/CentOS/Ubuntu/AWS AMI): container image
Using ScyllaDB container image, the JMX service opens a random port on all interfaces. This is bad for security.
The text was updated successfully, but these errors were encountered: