|
1 | 1 | import org.springframework.boot.actuate.autoconfigure.security.servlet.EndpointRequest;
|
2 | 2 | import org.springframework.security.config.annotation.web.builders.HttpSecurity;
|
3 | 3 |
|
4 |
| -public class SpringBootActuators { |
| 4 | +public class SpringBootActuatorsTest { |
5 | 5 | protected void configure(HttpSecurity http) throws Exception {
|
6 |
| - http.requestMatcher(EndpointRequest.toAnyEndpoint()).authorizeRequests(requests -> requests.anyRequest().permitAll()); |
| 6 | + http.requestMatcher(EndpointRequest.toAnyEndpoint()).authorizeRequests(requests -> requests.anyRequest().permitAll()); // $ hasExposedSpringBootActuator |
7 | 7 | }
|
8 | 8 |
|
9 | 9 | protected void configure2(HttpSecurity http) throws Exception {
|
10 |
| - http.requestMatcher(EndpointRequest.toAnyEndpoint()).authorizeRequests().requestMatchers(EndpointRequest.toAnyEndpoint()).permitAll(); |
| 10 | + http.requestMatcher(EndpointRequest.toAnyEndpoint()).authorizeRequests().requestMatchers(EndpointRequest.toAnyEndpoint()).permitAll(); // $ hasExposedSpringBootActuator |
11 | 11 | }
|
12 | 12 |
|
13 | 13 | protected void configure3(HttpSecurity http) throws Exception {
|
14 |
| - http.requestMatchers(matcher -> EndpointRequest.toAnyEndpoint()).authorizeRequests().requestMatchers(EndpointRequest.toAnyEndpoint()).permitAll(); |
| 14 | + http.requestMatchers(matcher -> EndpointRequest.toAnyEndpoint()).authorizeRequests().requestMatchers(EndpointRequest.toAnyEndpoint()).permitAll(); // $ hasExposedSpringBootActuator |
15 | 15 | }
|
16 | 16 |
|
17 | 17 | protected void configure4(HttpSecurity http) throws Exception {
|
18 |
| - http.requestMatcher(EndpointRequest.toAnyEndpoint()).authorizeRequests().anyRequest().permitAll(); |
| 18 | + http.requestMatcher(EndpointRequest.toAnyEndpoint()).authorizeRequests().anyRequest().permitAll(); // $ hasExposedSpringBootActuator |
19 | 19 | }
|
20 | 20 |
|
21 | 21 | protected void configure5(HttpSecurity http) throws Exception {
|
22 |
| - http.authorizeRequests().requestMatchers(EndpointRequest.toAnyEndpoint()).permitAll(); |
| 22 | + http.authorizeRequests().requestMatchers(EndpointRequest.toAnyEndpoint()).permitAll(); // $ hasExposedSpringBootActuator |
23 | 23 | }
|
24 | 24 |
|
25 | 25 | protected void configure6(HttpSecurity http) throws Exception {
|
26 |
| - http.authorizeRequests(requests -> requests.requestMatchers(EndpointRequest.toAnyEndpoint()).permitAll()); |
| 26 | + http.authorizeRequests(requests -> requests.requestMatchers(EndpointRequest.toAnyEndpoint()).permitAll()); // $ hasExposedSpringBootActuator |
27 | 27 | }
|
28 | 28 |
|
29 | 29 | protected void configure7(HttpSecurity http) throws Exception {
|
30 |
| - http.requestMatchers(matcher -> EndpointRequest.toAnyEndpoint()).authorizeRequests().anyRequest().permitAll(); |
| 30 | + http.requestMatchers(matcher -> EndpointRequest.toAnyEndpoint()).authorizeRequests().anyRequest().permitAll(); // $ hasExposedSpringBootActuator |
31 | 31 | }
|
32 | 32 |
|
33 | 33 | protected void configureOk1(HttpSecurity http) throws Exception {
|
|
0 commit comments