mirror of
https://github.com/corda/corda.git
synced 2025-01-18 18:56:28 +00:00
Restrict Jolokia JMX access
This commit is contained in:
parent
fce799726f
commit
c436841461
38
src/main/resources/jolokia-access.xml
Normal file
38
src/main/resources/jolokia-access.xml
Normal file
@ -0,0 +1,38 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<!--
|
||||
~ Copyright 2015 Distributed Ledger Group LLC. Distributed as Licensed Company IP to DLG Group Members
|
||||
~ pursuant to the August 7, 2015 Advisory Services Agreement and subject to the Company IP License terms
|
||||
~ set forth therein.
|
||||
~
|
||||
~ All other rights reserved.
|
||||
-->
|
||||
|
||||
<restrict>
|
||||
<http>
|
||||
<method>post</method>
|
||||
<method>get</method>
|
||||
</http>
|
||||
|
||||
<commands>
|
||||
<command>read</command>
|
||||
<command>list</command>
|
||||
</commands>
|
||||
|
||||
<!-- allow anyone to force a garbage collection -->
|
||||
<allow>
|
||||
<mbean>
|
||||
<name>java.lang:type=Memory</name>
|
||||
<operation>gc</operation>
|
||||
</mbean>
|
||||
</allow>
|
||||
|
||||
<!-- in case we ever end up using c3pio connection pooling, this example from the docs prevents the password being exported -->
|
||||
<deny>
|
||||
<mbean>
|
||||
<name>com.mchange.v2.c3p0:type=PooledDataSource,*</name>
|
||||
<attribute>properties</attribute>
|
||||
</mbean>
|
||||
</deny>
|
||||
|
||||
</restrict>
|
Loading…
Reference in New Issue
Block a user