Explicitly disable security on management endpoints if requested

Previously the management endpoint filter was applied to all requests
if the user had disabled security.management.enabled, but since it
had no security applied it was letting all requests through.

The fix was to explicitly exclude the whole enclosing configuration
and carefully ignore the management endpoints in the normal security
chain.

Fixes gh-100.
This commit is contained in:
Dave Syer
2013-10-31 18:46:39 +00:00
parent 5e9b8c3340
commit 63a2d06767
3 changed files with 145 additions and 20 deletions

View File

@@ -2,4 +2,5 @@
<configuration>
<include resource="org/springframework/boot/logging/logback/base.xml"/>
<!-- logger name="org.springframework.boot" level="DEBUG"/-->
<!-- logger name="org.springframework.security" level="DEBUG"/-->
</configuration>