Skip to content

Fixes FPs in SpringBootActuators query - #3506

Merged
aschackmull merged 1 commit into
github:masterfrom
ggolawski:spring-actuators-fix
May 25, 2020
Merged

Fixes FPs in SpringBootActuators query#3506
aschackmull merged 1 commit into
github:masterfrom
ggolawski:spring-actuators-fix

Conversation

@ggolawski

Copy link
Copy Markdown
Contributor

This PR fixes FPs in SpringBootActuators query, as pointed out in #2901 (comment).

  • No evidence that Spring Actuators are being used, e.g. http.authorizeRequests().anyRequest().permitAll()
    --> The query now makes sure that the permitAll() refers to Spring Actuators (EndpointRequest)
  • Only safe Actuators are enabled, e.g. EndpointRequest.to("health", "info")
    --> The query now raises the flag only if EndpointRequest.toAnyEndpoint() is being used.

More tests to handle the above cases are added.

No evidence that Spring Actuators are being used, e.g. `http.authorizeRequests().anyRequest().permitAll()`
Only safe Actuators are enabled, e.g. `EndpointRequest.to("health", "info")`
@aschackmull
aschackmull merged commit 0d75c6a into github:master May 25, 2020
@ggolawski
ggolawski deleted the spring-actuators-fix branch June 3, 2020 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2 participants