[ 
https://issues.apache.org/jira/browse/KARAF-7312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17683739#comment-17683739
 ] 

Jean-Baptiste Onofré commented on KARAF-7312:
---------------------------------------------

[~sshikov] the fix only works with JDK 11. If you use JDK8, JDK8 will include 
CREDENTIALS_FILTER_PATTERN soon (JDK-8159377). So in the meantime, I would 
recommend to bind RMI server to only localhost and secure (credentials) access. 
As soon as JDK8 will include CREDENTIALS_FILTER_PATTERN, I will do the fix on 
Karaf 4.2.x too.

> Add support for JMX RMI credentials filter pattern
> --------------------------------------------------
>
>                 Key: KARAF-7312
>                 URL: https://issues.apache.org/jira/browse/KARAF-7312
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf
>            Reporter: Jean-Baptiste Onofré
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>             Fix For: 4.4.0, 4.3.6
>
>
> We should configure an ObjectInputFilter for the JMX service.
> This can be done by setting a suitable filter configuration for the 
> {{jmx.remote.rmi.server.credentials.filter.pattern}} key that can be 
> specified within the environment variables when creating a new JMX server 
> instance. 
> For Karaf, it should be done in the connector factory.
> An example can be found here: 
> [https://github.com/openjdk/jdk/blob/master/src/jd]k.management.agent/share/classes/sun/management/jmxremote/ConnectorBootstrap.java#L525



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to