spring-projects / spring-projects/spring-boot

Custom Spring Security firewall is lost when using spring-boot-cloudfoundry and Actuator in a reactive web application

Open
#45,377 9 comments 0 reactions 1 assignee View on GitHub

@wilkinsona is already working on this.

Since Sep 16, 2026.

status: team-only type: bug
Dominant language
Java
Stars
81.5k
Forks
42.7k
Avg merge
2d 4h
Merged PRs (30d)
65

Description

Spring security fixed an issue in WebFilterChainProxy by allowing clients to override the default instance of the firewall field (ServerWebExchangeFirewall) with whatever client wants to or adjust the behavior of the default StrictServerWebExchangeFirewall instance:

https://github.com/spring-projects/spring-security/issues/15974

However ReactiveCloudFoundryActuatorAutoConfiguration in the postProcess method overrides the default WebFilterChainProxy bean with new instance and ignoring any overrides of firewall the old bean had.

This causes apps that run on cloud foundry to not run the same way as they would outside of cloud foundry, and require my to disable cloud foundry management endpoints.

I think that's a bug

management:
  cloudfoundry:
    enabled: false

To test this behavior localy, set the VCAP_APPLICATION environment variable to something, json like.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.