Skip to content

Conversation

skarsaune
Copy link
Contributor

@skarsaune skarsaune commented Jul 12, 2025

Note: The majority of the work in this PR is to make it work well with RMI connections. For Jolokia however, it should work out of the box as setting the env var will force https.


Progress

  • Commit message must refer to an issue
  • Change must be properly reviewed (1 review required, with at least 1 Committer)

Issue

  • JMC-8365: Jolokia - Additional support for security mechanisms related to SSL / authentication, discovery restrictions (Bug - P3)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jmc.git pull/665/head:pull/665
$ git checkout pull/665

Update a local copy of the PR:
$ git checkout pull/665
$ git pull https://git.openjdk.org/jmc.git pull/665/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 665

View PR using the GUI difftool:
$ git pr show -t 665

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jmc/pull/665.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Jul 12, 2025

👋 Welcome back skarsaune! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.


fieldStack = new Composite(inner, SWT.NONE);
fieldStack.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
fieldStack.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false, 2, 1));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Appearance:
image

@openjdk
Copy link

openjdk bot commented Jul 12, 2025

@skarsaune This change now passes all automated pre-integration checks.

ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details.

After integration, the commit message for the final commit will be:

8365: Jolokia - Additional support for security mechanisms related to SSL / authentication, discovery restrictions

Reviewed-by: aptmac

You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been no new commits pushed to the master branch. If another commit should be pushed before you perform the /integrate command, your PR will be automatically rebased. If you prefer to avoid any potential automatic rebasing, please check the documentation for the /integrate command for further details.

As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@aptmac) but any other Committer may sponsor as well.

➡️ To flag this PR as ready for integration with the above commit message, type /integrate in a new comment. (Afterwards, your sponsor types /sponsor in a new comment to perform the integration).

// FIXME: Show stacktrace? (Need to show our own ExceptionDialog in that case, or maybe create our own DetailsAreaProvider, see WorkbenchStatusDialogManager.setDetailsAreaProvider)
return new Status(IStatus.ERROR, ConsolePlugin.PLUGIN_ID, IStatus.ERROR,
NLS.bind(Messages.ConsoleEditor_COULD_NOT_CONNECT, getEditorInput().getName(), e.getMessage()),
NLS.bind(e.getLocalizedMessage(), getEditorInput().getName(), e.getMessage()),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apparently all the more detailed error message is in this method on the exception class

JolokiaServiceManager serviceManager = JolokiaServiceManagerFactory.createJolokiaServiceManager(configuration,
new JulLogHandler(PLUGIN_ID), new AllowAllRestrictor(),
() -> new TreeSet<ServerDetector>(Arrays.asList(ServerDetector.FALLBACK)));
logHandler -> new TreeSet<ServerDetector>(Arrays.asList(ServerDetector.FALLBACK)));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated compiltion erro

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reverted this to separate concerns

@skarsaune skarsaune changed the title JMC-8365: Add option to require secure JMX connection and give hint in error message if it fails JMC-8365: Jolokia - Additional support for security mechanisms related to SSL / authentication, discovery restrictions Jul 12, 2025
@openjdk openjdk bot changed the title JMC-8365: Jolokia - Additional support for security mechanisms related to SSL / authentication, discovery restrictions 8365: Jolokia - Additional support for security mechanisms related to SSL / authentication, discovery restrictions Jul 12, 2025
@skarsaune skarsaune marked this pull request as ready for review July 29, 2025 10:53
@openjdk openjdk bot added the rfr label Jul 29, 2025
@mlbridge
Copy link

mlbridge bot commented Jul 29, 2025

Webrevs

@bridgekeeper
Copy link

bridgekeeper bot commented Aug 26, 2025

@skarsaune This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply issue a /touch or /keepalive command to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

@skarsaune
Copy link
Contributor Author

skarsaune commented Aug 27, 2025

Is this perhaps something you might have a look at @aptmac ?

@bridgekeeper
Copy link

bridgekeeper bot commented Sep 24, 2025

@skarsaune This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply issue a /touch or /keepalive command to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

Copy link
Member

@aptmac aptmac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good to me, commented with a couple of minor things

@openjdk openjdk bot added the ready label Oct 14, 2025
@skarsaune
Copy link
Contributor Author

/integrate

@openjdk openjdk bot added the sponsor label Oct 14, 2025
@openjdk
Copy link

openjdk bot commented Oct 14, 2025

@skarsaune
Your change (at version 850a233) is now ready to be sponsored by a Committer.

@aptmac
Copy link
Member

aptmac commented Oct 14, 2025

/sponsor

@openjdk
Copy link

openjdk bot commented Oct 14, 2025

Going to push as commit 2bb16fa.

@openjdk
Copy link

openjdk bot commented Oct 14, 2025

@aptmac @skarsaune Pushed as commit 2bb16fa.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants