Skip to content

Commit

Permalink
Security / Jolokia update. (#7501)
Browse files Browse the repository at this point in the history
Avoid authenticated user to access more info than needed.
  • Loading branch information
fxprunayre authored Nov 20, 2023
1 parent 393e95b commit e364da5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1610,7 +1610,7 @@
<log4j2.version>2.17.2</log4j2.version>
<slf4j.version>1.8.0-beta2</slf4j.version>
<xbean.version>4.22</xbean.version>
<jolokia.version>1.6.0</jolokia.version>
<jolokia.version>1.7.2</jolokia.version>
<httpcomponents.version>4.5.14</httpcomponents.version>
<jasypt.version>1.9.3</jasypt.version>
<jupiter.version>5.9.1</jupiter.version>
Expand Down
8 changes: 1 addition & 7 deletions web/src/main/resources/jolokia-access.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>

<restrict>

<commands>
<command>read</command>
<command>list</command>
<command>version</command>
<command>search</command>
</commands>

</restrict>
</restrict>
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
<list>
<!-- TODO: This needs to be secured to not access private info -->
<sec:filter-chain pattern="/index/**" filters=""/>
<sec:filter-chain pattern="/jolokia/**" filters="securityContextPersistenceFilter, authenticatedUserFilter"/>
<sec:filter-chain pattern="/jolokia" filters="securityContextPersistenceFilter, authenticatedUserFilter"/>
<sec:filter-chain pattern="/jolokia/read/geonetwork-**" filters="securityContextPersistenceFilter, authenticatedUserFilter"/>
<sec:filter-chain pattern="/dashboards/**" filters="securityContextPersistenceFilter, basicAuthenticationFilter, authenticatedUserFilter"/>
<sec:filter-chain pattern="/doc/**" filters=""/>
<sec:filter-chain pattern="/api/**" filters=""/>
Expand Down

0 comments on commit e364da5

Please sign in to comment.