-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Remote JMX SSL bug fix and updated tests #6275
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
Conversation
Hi @fniephaus here's the fix I was mentioning and also the corresponding test updates. |
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.
Thanks for the follow up PR. I left two minor comments.
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.
Is there anything important in here that needs to be documented?
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.
I've now added some more explanation for why the ssl files are needed and how they were created here. I also added the client.cer file (although it isn't really needed) for completeness.
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.
Could you please document and provide instructions how the files in jmxremoteresources
are created? We need to be able to recreate them. Maybe a README.md
in substratevm/src/com.oracle.svm.test/src/com/oracle/svm/test/jmx/jmxremoteresources
) may actually be better than a code comment (you could reference the README in the code comment).
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.
Okay good idea. I will add that
substratevm/src/com.oracle.svm.test/src/com/oracle/svm/test/jmx/JmxTest.java
Outdated
Show resolved
Hide resolved
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
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.
client.cer
currently uses the following information: Issuer: C = ZZ, ST = GraalVM, L = GraalVM, O = GraalVM, OU = GraalVM, CN = GraalVM
.
I think we should avoid GraalVM
here and use something like JmxTest
instead.
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.
ok I've updated it to use "JmxTest" now :)
5ece524
to
4e063c4
Compare
Hi @fniephaus! I've added a README.md explaining the steps needed to create the supporting dummy SSL and password files. I've also rebased with master, fixed the conflicts, and added the fix from #11568 so that the tests can pass.
Please have another look at this PR when you have time. |
Hi @fniephaus! Thank you for doing that. I've cherry-picked your commit and added a new commit on top of it here. The new commit uses keytool programmatically and creates the ssl files in the temporary directory. |
Thanks for taking care of this, @roberttoyonaga. I have refactored the test some more and now, all files are inlined into the test file and on-the-fly created in the temp directory. if you could reset your branch to this commit and squash all commits, I think this is ready to be integrated. |
27dd37c
to
732ba41
Compare
Great, thank you @fniephaus. I've reset and squashed the commits. |
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, thank you @roberttoyonaga!
This is a follow up to this pull request here: #6250
It adds a reflection configuration that was missing, but needed for a JMX client to connect using SSL. The tests have been updated to connect with SSL and password authentication.
I've included dummy password, access, and SSL files required to configure the JMX properties needed for authentication and SSL.