Skip to content

Commit bf65929

Browse files
committed
AMQ-9201 - Update Jolokia default access configuration
(cherry picked from commit 6120169)
1 parent 5e12551 commit bf65929

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

assembly/src/release/conf/jolokia-access.xml

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,35 @@
2222
<strict-checking/>
2323
</cors>
2424

25-
<!-- deny calling operations or getting attributes from these mbeans -->
25+
<!-- By default don't allow write or exec operations -->
26+
<commands>
27+
<command>read</command>
28+
<command>list</command>
29+
<command>version</command>
30+
<command>search</command>
31+
</commands>
32+
33+
<allow>
34+
<!-- Allow all operations for the broker itself -->
35+
<mbean>
36+
<name>org.apache.activemq:*</name>
37+
<attribute>*</attribute>
38+
<operation>*</operation>
39+
</mbean>
40+
<!-- Allow all operations for Jolokia Config -->
41+
<mbean>
42+
<name>jolokia:type=Config</name>
43+
<operation>*</operation>
44+
</mbean>
45+
</allow>
46+
47+
<!-- deny all operations or getting attributes from these mbeans -->
2648
<deny>
49+
<mbean>
50+
<name>org.apache.logging.log4j2:*</name>
51+
<attribute>*</attribute>
52+
<operation>*</operation>
53+
</mbean>
2754
<mbean>
2855
<name>com.sun.management:type=DiagnosticCommand</name>
2956
<attribute>*</attribute>
@@ -34,6 +61,11 @@
3461
<attribute>*</attribute>
3562
<operation>*</operation>
3663
</mbean>
64+
<mbean>
65+
<name>jdk.management.jfr:type=FlightRecorder</name>
66+
<attribute>*</attribute>
67+
<operation>*</operation>
68+
</mbean>
3769
</deny>
3870

3971
</restrict>

0 commit comments

Comments
 (0)