spring-boot/spring-boot-project
Andy Wilkinson 4bd3534b7d Adapt to change in Security's filtering behavior
Spring Security now filters every dispatch by default and not only
once-per-request. Security configuration has been updated in a number of
places to restore the old behavior as needed for the tests to pass.
gh-31703 has been opened to review this and to investigate if we can
now remove the error page security filter and rely on the filtering of
every dispatch instead.

In addition to switching to once-per-request filtering where needed,
this commit also restructures the configuration of the error page
security filter. The restructuring was necessary to ensure that the
privilege evaluator bean has been defined before the conditions on the
error page security filter are evaluated. Without the change, the filter
was no longer being configured as the privilege evaluator hadn't been
defined before the on bean condition was evaluated. We may want to back
port this change as the ordering doesn't appear to have been defined
before and we were just getting lucky.

See gh-31622
See spring-projects/spring-security#11466
2022-07-13 12:09:46 +01:00
..
spring-boot Name RuntimeHintsRegistrar implementations consistently 2022-07-12 19:50:26 +02:00
spring-boot-actuator Revert actuator changes related to path pattern parsing 2022-07-12 15:25:41 -07:00
spring-boot-actuator-autoconfigure Revert actuator changes related to path pattern parsing 2022-07-12 15:25:41 -07:00
spring-boot-autoconfigure Adapt to change in Security's filtering behavior 2022-07-13 12:09:46 +01:00
spring-boot-cli Use pattern matching for instanceof where appropriate 2022-06-20 17:55:36 +01:00
spring-boot-dependencies Upgrade to Reactor 2022.0.0-M4 2022-07-13 12:28:46 +02:00
spring-boot-devtools Upgrade to Hibernate 6.1.1.Final 2022-07-12 09:36:34 +01:00
spring-boot-docs Reinstate support for Hibernate Metrics 2022-07-12 09:36:54 +01:00
spring-boot-parent Upgrade to Native Build Tools Plugin 0.9.13 2022-07-12 13:05:00 +02:00
spring-boot-properties-migrator Use pattern matching for instanceof where appropriate 2022-06-20 17:55:36 +01:00
spring-boot-starters Enable GraalVM reachability metadata repository 2022-07-12 14:25:38 +02:00
spring-boot-test Align with breaking changes in spring-test 2022-06-26 09:55:36 +01:00
spring-boot-test-autoconfigure Upgrade to Hibernate 6.1.1.Final 2022-07-12 09:36:34 +01:00
spring-boot-tools Enable GraalVM reachability metadata repository 2022-07-12 14:25:38 +02:00