Skip to content

Conversation

marcusdacoregio
Copy link
Contributor

Closes gh-10902

@marcusdacoregio marcusdacoregio added in: config An issue in spring-security-config type: enhancement A general enhancement type: breaks-passivity A change that breaks passivity with the previous release labels Sep 29, 2022
@marcusdacoregio marcusdacoregio added this to the 6.0.0-RC1 milestone Sep 29, 2022
@marcusdacoregio marcusdacoregio self-assigned this Sep 29, 2022
@marcusdacoregio
Copy link
Contributor Author

marcusdacoregio commented Sep 30, 2022

I've updated the PR based on @sjohnr comment. I have also run the Spring Security Samples test against the current artifact and the build passes.

@marcusdacoregio marcusdacoregio force-pushed the gh-10902 branch 6 times, most recently from e061095 to 54ec96d Compare October 3, 2022 15:05
@marcusdacoregio marcusdacoregio merged commit 35f7e46 into spring-projects:main Oct 4, 2022
@donhuvy
Copy link
Contributor

donhuvy commented Dec 3, 2022

j-sandy added a commit to j-sandy/fiat that referenced this pull request Jan 3, 2025
….x to 6.x with spring boot upgrade to 3.x

With spring boot upgrade, spring security also upgrades from 5.x to 6.x. As per the migration [steps](https://www.baeldung.com/spring-security-migrate-5-to-6), `WebSecurityConfigurerAdapter` has been removed. So, it is not required to be extended, instead bean can be registered.

`WebMvcConfigurerAdapter` class has been deprecated in Spring 5.0 and subsequently removed from spring 6.0. So, replacing it with `WebMvcConfigurer` interface for direct implementation.
https://docs.spring.io/spring-framework/docs/5.0.0.RELEASE/javadoc-api/org/springframework/web/servlet/config/annotation/WebMvcConfigurerAdapter.html

Removing bean of WebSecurityConfigurerAdapter, as in spring security 6.0 it is no more required.
spring-projects/spring-security#11923
https://www.baeldung.com/spring-security-migrate-5-to-6#2-websecurityconfigureradapter
j-sandy added a commit to j-sandy/fiat that referenced this pull request Jan 31, 2025
….x to 6.x with spring boot upgrade to 3.x

With spring boot upgrade, spring security also upgrades from 5.x to 6.x. As per the migration [steps](https://www.baeldung.com/spring-security-migrate-5-to-6), `WebSecurityConfigurerAdapter` has been removed. So, it is not required to be extended, instead bean can be registered.

`WebMvcConfigurerAdapter` class has been deprecated in Spring 5.0 and subsequently removed from spring 6.0. So, replacing it with `WebMvcConfigurer` interface for direct implementation.
https://docs.spring.io/spring-framework/docs/5.0.0.RELEASE/javadoc-api/org/springframework/web/servlet/config/annotation/WebMvcConfigurerAdapter.html

Removing bean of WebSecurityConfigurerAdapter, as in spring security 6.0 it is no more required.
spring-projects/spring-security#11923
https://www.baeldung.com/spring-security-migrate-5-to-6#2-websecurityconfigureradapter
j-sandy added a commit to j-sandy/halyard that referenced this pull request Mar 10, 2025
… cloud from 2021.0.x to 2022.0.x

Upgrading spring boot 2.7.18 to 3.0.13 and spring cloud 2021.0.8 to 2022.0.5.
Spring cloud release 2022.0.x is compatible with spring boot 3.0.x.
https://github.com/spring-cloud/spring-cloud-release/wiki/Supported-Versions#supported-releases

Removing bean of WebSecurityConfigurerAdapter, as in spring security 6.0 it is no more required.
spring-projects/spring-security#11923
https://www.baeldung.com/spring-security-migrate-5-to-6#2-websecurityconfigureradapter

===============================================================================================

refactor(dependency): replace javax with jakarta during upgrade of spring boot 3.0.x

Spring Boot 3.0 has migrated from Java EE to Jakarta EE APIs for all dependencies.
https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0-Release-Notes#third-party-library-upgrades
So, replacing the imports with `javax` to `jakarta`.

===============================================================================================

refactor(dependency): migrate rxjava to rxjava3 during upgrade of spring boot 3.0.x

Spring boot 3.x deprecated and removed rxjava, and rxjava3 has been added. So, update the dependency.
https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0-Migration-Guide#rxjava

And refactored the code to accomodate changes required by rxjava2 and rxjava3 following the changelogs.
https://github.com/ReactiveX/RxJava/wiki/What's-different-in-2.0
https://github.com/ReactiveX/RxJava/wiki/What%27s-different-in-3.0

================================================================================================

refactor(util): replace SocketUtils with TestSocketUtils during upgrade of spring boot 3.0.x

`org.springframework.util.SocketUtils` has been deprecated in spring framework 5.3.x and removed from 6.0.
`org.springframework.test.util.TestSocketUtils` has been introduced as a replacement of `SocketUtils`.

spring-projects/spring-framework#28052
spring-projects/spring-framework#28210
j-sandy added a commit to j-sandy/halyard that referenced this pull request Mar 10, 2025
… cloud from 2021.0.x to 2022.0.x

Upgrading spring boot 2.7.18 to 3.0.13 and spring cloud 2021.0.8 to 2022.0.5.
Spring cloud release 2022.0.x is compatible with spring boot 3.0.x.
https://github.com/spring-cloud/spring-cloud-release/wiki/Supported-Versions#supported-releases

Removing bean of WebSecurityConfigurerAdapter, as in spring security 6.0 it is no more required.
spring-projects/spring-security#11923
https://www.baeldung.com/spring-security-migrate-5-to-6#2-websecurityconfigureradapter

===============================================================================================

refactor(dependency): replace javax with jakarta during upgrade of spring boot 3.0.x

Spring Boot 3.0 has migrated from Java EE to Jakarta EE APIs for all dependencies.
https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0-Release-Notes#third-party-library-upgrades
So, replacing the imports with `javax` to `jakarta`.

===============================================================================================

refactor(dependency): migrate rxjava to rxjava3 during upgrade of spring boot 3.0.x

Spring boot 3.x deprecated and removed rxjava, and rxjava3 has been added. So, update the dependency.
https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0-Migration-Guide#rxjava

And refactored the code to accomodate changes required by rxjava2 and rxjava3 following the changelogs.
https://github.com/ReactiveX/RxJava/wiki/What's-different-in-2.0
https://github.com/ReactiveX/RxJava/wiki/What%27s-different-in-3.0

================================================================================================

refactor(util): replace SocketUtils with TestSocketUtils during upgrade of spring boot 3.0.x

`org.springframework.util.SocketUtils` has been deprecated in spring framework 5.3.x and removed from 6.0.
`org.springframework.test.util.TestSocketUtils` has been introduced as a replacement of `SocketUtils`.

spring-projects/spring-framework#28052
spring-projects/spring-framework#28210
rahul-chekuri pushed a commit to j-sandy/fiat that referenced this pull request Apr 29, 2025
….x to 6.x with spring boot upgrade to 3.x

With spring boot upgrade, spring security also upgrades from 5.x to 6.x. As per the migration [steps](https://www.baeldung.com/spring-security-migrate-5-to-6), `WebSecurityConfigurerAdapter` has been removed. So, it is not required to be extended, instead bean can be registered.

`WebMvcConfigurerAdapter` class has been deprecated in Spring 5.0 and subsequently removed from spring 6.0. So, replacing it with `WebMvcConfigurer` interface for direct implementation.
https://docs.spring.io/spring-framework/docs/5.0.0.RELEASE/javadoc-api/org/springframework/web/servlet/config/annotation/WebMvcConfigurerAdapter.html

Removing bean of WebSecurityConfigurerAdapter, as in spring security 6.0 it is no more required.
spring-projects/spring-security#11923
https://www.baeldung.com/spring-security-migrate-5-to-6#2-websecurityconfigureradapter
rahul-chekuri added a commit to rahul-chekuri/spinnaker that referenced this pull request Aug 11, 2025
…m javax to jakarta packages for SpringBoot 3 compatibility

Addressed build failure by replacing jakarta with javax. This issue arises as Spring Boot 3 now relies on Jakarta packages instead of javax.
Reference Links:
https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0-Migration-Guide#jakarta-ee

Removing bean of WebSecurityConfigurerAdapter, as in spring security 6.0 it is no more required.
spring-projects/spring-security#11923
https://www.baeldung.com/spring-security-migrate-5-to-6#2-websecurityconfigureradapter
rahul-chekuri pushed a commit to rahul-chekuri/spinnaker that referenced this pull request Sep 15, 2025
….x to 6.x with spring boot upgrade to 3.x

With spring boot upgrade, spring security also upgrades from 5.x to 6.x. As per the migration [steps](https://www.baeldung.com/spring-security-migrate-5-to-6), `WebSecurityConfigurerAdapter` has been removed. So, it is not required to be extended, instead bean can be registered.

`WebMvcConfigurerAdapter` class has been deprecated in Spring 5.0 and subsequently removed from spring 6.0. So, replacing it with `WebMvcConfigurer` interface for direct implementation.
https://docs.spring.io/spring-framework/docs/5.0.0.RELEASE/javadoc-api/org/springframework/web/servlet/config/annotation/WebMvcConfigurerAdapter.html

Removing bean of WebSecurityConfigurerAdapter, as in spring security 6.0 it is no more required.
spring-projects/spring-security#11923
https://www.baeldung.com/spring-security-migrate-5-to-6#2-websecurityconfigureradapter
rahul-chekuri pushed a commit to rahul-chekuri/spinnaker that referenced this pull request Sep 15, 2025
… cloud from 2021.0.x to 2022.0.x

Upgrading spring boot 2.7.18 to 3.0.13 and spring cloud 2021.0.8 to 2022.0.5.
Spring cloud release 2022.0.x is compatible with spring boot 3.0.x.
https://github.com/spring-cloud/spring-cloud-release/wiki/Supported-Versions#supported-releases

Removing bean of WebSecurityConfigurerAdapter, as in spring security 6.0 it is no more required.
spring-projects/spring-security#11923
https://www.baeldung.com/spring-security-migrate-5-to-6#2-websecurityconfigureradapter

===============================================================================================

refactor(dependency): replace javax with jakarta during upgrade of spring boot 3.0.x

Spring Boot 3.0 has migrated from Java EE to Jakarta EE APIs for all dependencies.
https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0-Release-Notes#third-party-library-upgrades
So, replacing the imports with `javax` to `jakarta`.

===============================================================================================

refactor(dependency): migrate rxjava to rxjava3 during upgrade of spring boot 3.0.x

Spring boot 3.x deprecated and removed rxjava, and rxjava3 has been added. So, update the dependency.
https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0-Migration-Guide#rxjava

And refactored the code to accomodate changes required by rxjava2 and rxjava3 following the changelogs.
https://github.com/ReactiveX/RxJava/wiki/What's-different-in-2.0
https://github.com/ReactiveX/RxJava/wiki/What%27s-different-in-3.0

================================================================================================

refactor(util): replace SocketUtils with TestSocketUtils during upgrade of spring boot 3.0.x

`org.springframework.util.SocketUtils` has been deprecated in spring framework 5.3.x and removed from 6.0.
`org.springframework.test.util.TestSocketUtils` has been introduced as a replacement of `SocketUtils`.

spring-projects/spring-framework#28052
spring-projects/spring-framework#28210
rahul-chekuri added a commit to rahul-chekuri/spinnaker that referenced this pull request Sep 15, 2025
…m javax to jakarta packages for SpringBoot 3 compatibility

Addressed build failure by replacing jakarta with javax. This issue arises as Spring Boot 3 now relies on Jakarta packages instead of javax.
Reference Links:
https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0-Migration-Guide#jakarta-ee

Removing bean of WebSecurityConfigurerAdapter, as in spring security 6.0 it is no more required.
spring-projects/spring-security#11923
https://www.baeldung.com/spring-security-migrate-5-to-6#2-websecurityconfigureradapter
rahul-chekuri pushed a commit to rahul-chekuri/spinnaker that referenced this pull request Sep 15, 2025
….x to 6.x with spring boot upgrade to 3.x

With spring boot upgrade, spring security also upgrades from 5.x to 6.x. As per the migration [steps](https://www.baeldung.com/spring-security-migrate-5-to-6), `WebSecurityConfigurerAdapter` has been removed. So, it is not required to be extended, instead bean can be registered.

`WebMvcConfigurerAdapter` class has been deprecated in Spring 5.0 and subsequently removed from spring 6.0. So, replacing it with `WebMvcConfigurer` interface for direct implementation.
https://docs.spring.io/spring-framework/docs/5.0.0.RELEASE/javadoc-api/org/springframework/web/servlet/config/annotation/WebMvcConfigurerAdapter.html

Removing bean of WebSecurityConfigurerAdapter, as in spring security 6.0 it is no more required.
spring-projects/spring-security#11923
https://www.baeldung.com/spring-security-migrate-5-to-6#2-websecurityconfigureradapter
rahul-chekuri pushed a commit to rahul-chekuri/spinnaker that referenced this pull request Sep 15, 2025
… cloud from 2021.0.x to 2022.0.x

Upgrading spring boot 2.7.18 to 3.0.13 and spring cloud 2021.0.8 to 2022.0.5.
Spring cloud release 2022.0.x is compatible with spring boot 3.0.x.
https://github.com/spring-cloud/spring-cloud-release/wiki/Supported-Versions#supported-releases

Removing bean of WebSecurityConfigurerAdapter, as in spring security 6.0 it is no more required.
spring-projects/spring-security#11923
https://www.baeldung.com/spring-security-migrate-5-to-6#2-websecurityconfigureradapter

===============================================================================================

refactor(dependency): replace javax with jakarta during upgrade of spring boot 3.0.x

Spring Boot 3.0 has migrated from Java EE to Jakarta EE APIs for all dependencies.
https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0-Release-Notes#third-party-library-upgrades
So, replacing the imports with `javax` to `jakarta`.

===============================================================================================

refactor(dependency): migrate rxjava to rxjava3 during upgrade of spring boot 3.0.x

Spring boot 3.x deprecated and removed rxjava, and rxjava3 has been added. So, update the dependency.
https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0-Migration-Guide#rxjava

And refactored the code to accomodate changes required by rxjava2 and rxjava3 following the changelogs.
https://github.com/ReactiveX/RxJava/wiki/What's-different-in-2.0
https://github.com/ReactiveX/RxJava/wiki/What%27s-different-in-3.0

================================================================================================

refactor(util): replace SocketUtils with TestSocketUtils during upgrade of spring boot 3.0.x

`org.springframework.util.SocketUtils` has been deprecated in spring framework 5.3.x and removed from 6.0.
`org.springframework.test.util.TestSocketUtils` has been introduced as a replacement of `SocketUtils`.

spring-projects/spring-framework#28052
spring-projects/spring-framework#28210
rahul-chekuri added a commit to rahul-chekuri/spinnaker that referenced this pull request Sep 15, 2025
…m javax to jakarta packages for SpringBoot 3 compatibility

Addressed build failure by replacing jakarta with javax. This issue arises as Spring Boot 3 now relies on Jakarta packages instead of javax.
Reference Links:
https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0-Migration-Guide#jakarta-ee

Removing bean of WebSecurityConfigurerAdapter, as in spring security 6.0 it is no more required.
spring-projects/spring-security#11923
https://www.baeldung.com/spring-security-migrate-5-to-6#2-websecurityconfigureradapter
rahul-chekuri pushed a commit to rahul-chekuri/spinnaker that referenced this pull request Sep 22, 2025
….x to 6.x with spring boot upgrade to 3.x

With spring boot upgrade, spring security also upgrades from 5.x to 6.x. As per the migration [steps](https://www.baeldung.com/spring-security-migrate-5-to-6), `WebSecurityConfigurerAdapter` has been removed. So, it is not required to be extended, instead bean can be registered.

`WebMvcConfigurerAdapter` class has been deprecated in Spring 5.0 and subsequently removed from spring 6.0. So, replacing it with `WebMvcConfigurer` interface for direct implementation.
https://docs.spring.io/spring-framework/docs/5.0.0.RELEASE/javadoc-api/org/springframework/web/servlet/config/annotation/WebMvcConfigurerAdapter.html

Removing bean of WebSecurityConfigurerAdapter, as in spring security 6.0 it is no more required.
spring-projects/spring-security#11923
https://www.baeldung.com/spring-security-migrate-5-to-6#2-websecurityconfigureradapter
rahul-chekuri pushed a commit to rahul-chekuri/spinnaker that referenced this pull request Sep 22, 2025
… cloud from 2021.0.x to 2022.0.x

Upgrading spring boot 2.7.18 to 3.0.13 and spring cloud 2021.0.8 to 2022.0.5.
Spring cloud release 2022.0.x is compatible with spring boot 3.0.x.
https://github.com/spring-cloud/spring-cloud-release/wiki/Supported-Versions#supported-releases

Removing bean of WebSecurityConfigurerAdapter, as in spring security 6.0 it is no more required.
spring-projects/spring-security#11923
https://www.baeldung.com/spring-security-migrate-5-to-6#2-websecurityconfigureradapter

===============================================================================================

refactor(dependency): replace javax with jakarta during upgrade of spring boot 3.0.x

Spring Boot 3.0 has migrated from Java EE to Jakarta EE APIs for all dependencies.
https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0-Release-Notes#third-party-library-upgrades
So, replacing the imports with `javax` to `jakarta`.

===============================================================================================

refactor(dependency): migrate rxjava to rxjava3 during upgrade of spring boot 3.0.x

Spring boot 3.x deprecated and removed rxjava, and rxjava3 has been added. So, update the dependency.
https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0-Migration-Guide#rxjava

And refactored the code to accomodate changes required by rxjava2 and rxjava3 following the changelogs.
https://github.com/ReactiveX/RxJava/wiki/What's-different-in-2.0
https://github.com/ReactiveX/RxJava/wiki/What%27s-different-in-3.0

================================================================================================

refactor(util): replace SocketUtils with TestSocketUtils during upgrade of spring boot 3.0.x

`org.springframework.util.SocketUtils` has been deprecated in spring framework 5.3.x and removed from 6.0.
`org.springframework.test.util.TestSocketUtils` has been introduced as a replacement of `SocketUtils`.

spring-projects/spring-framework#28052
spring-projects/spring-framework#28210
rahul-chekuri added a commit to rahul-chekuri/spinnaker that referenced this pull request Sep 22, 2025
…m javax to jakarta packages for SpringBoot 3 compatibility

Addressed build failure by replacing jakarta with javax. This issue arises as Spring Boot 3 now relies on Jakarta packages instead of javax.
Reference Links:
https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0-Migration-Guide#jakarta-ee

Removing bean of WebSecurityConfigurerAdapter, as in spring security 6.0 it is no more required.
spring-projects/spring-security#11923
https://www.baeldung.com/spring-security-migrate-5-to-6#2-websecurityconfigureradapter
rahul-chekuri pushed a commit to rahul-chekuri/spinnaker that referenced this pull request Oct 14, 2025
….x to 6.x with spring boot upgrade to 3.x

With spring boot upgrade, spring security also upgrades from 5.x to 6.x. As per the migration [steps](https://www.baeldung.com/spring-security-migrate-5-to-6), `WebSecurityConfigurerAdapter` has been removed. So, it is not required to be extended, instead bean can be registered.

`WebMvcConfigurerAdapter` class has been deprecated in Spring 5.0 and subsequently removed from spring 6.0. So, replacing it with `WebMvcConfigurer` interface for direct implementation.
https://docs.spring.io/spring-framework/docs/5.0.0.RELEASE/javadoc-api/org/springframework/web/servlet/config/annotation/WebMvcConfigurerAdapter.html

Removing bean of WebSecurityConfigurerAdapter, as in spring security 6.0 it is no more required.
spring-projects/spring-security#11923
https://www.baeldung.com/spring-security-migrate-5-to-6#2-websecurityconfigureradapter
rahul-chekuri pushed a commit to rahul-chekuri/spinnaker that referenced this pull request Oct 14, 2025
… cloud from 2021.0.x to 2022.0.x

Upgrading spring boot 2.7.18 to 3.0.13 and spring cloud 2021.0.8 to 2022.0.5.
Spring cloud release 2022.0.x is compatible with spring boot 3.0.x.
https://github.com/spring-cloud/spring-cloud-release/wiki/Supported-Versions#supported-releases

Removing bean of WebSecurityConfigurerAdapter, as in spring security 6.0 it is no more required.
spring-projects/spring-security#11923
https://www.baeldung.com/spring-security-migrate-5-to-6#2-websecurityconfigureradapter

===============================================================================================

refactor(dependency): replace javax with jakarta during upgrade of spring boot 3.0.x

Spring Boot 3.0 has migrated from Java EE to Jakarta EE APIs for all dependencies.
https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0-Release-Notes#third-party-library-upgrades
So, replacing the imports with `javax` to `jakarta`.

===============================================================================================

refactor(dependency): migrate rxjava to rxjava3 during upgrade of spring boot 3.0.x

Spring boot 3.x deprecated and removed rxjava, and rxjava3 has been added. So, update the dependency.
https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0-Migration-Guide#rxjava

And refactored the code to accomodate changes required by rxjava2 and rxjava3 following the changelogs.
https://github.com/ReactiveX/RxJava/wiki/What's-different-in-2.0
https://github.com/ReactiveX/RxJava/wiki/What%27s-different-in-3.0

================================================================================================

refactor(util): replace SocketUtils with TestSocketUtils during upgrade of spring boot 3.0.x

`org.springframework.util.SocketUtils` has been deprecated in spring framework 5.3.x and removed from 6.0.
`org.springframework.test.util.TestSocketUtils` has been introduced as a replacement of `SocketUtils`.

spring-projects/spring-framework#28052
spring-projects/spring-framework#28210
rahul-chekuri added a commit to rahul-chekuri/spinnaker that referenced this pull request Oct 14, 2025
…m javax to jakarta packages for SpringBoot 3 compatibility

Addressed build failure by replacing jakarta with javax. This issue arises as Spring Boot 3 now relies on Jakarta packages instead of javax.
Reference Links:
https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0-Migration-Guide#jakarta-ee

Removing bean of WebSecurityConfigurerAdapter, as in spring security 6.0 it is no more required.
spring-projects/spring-security#11923
https://www.baeldung.com/spring-security-migrate-5-to-6#2-websecurityconfigureradapter
rahul-chekuri pushed a commit to rahul-chekuri/spinnaker that referenced this pull request Oct 14, 2025
….x to 6.x with spring boot upgrade to 3.x

With spring boot upgrade, spring security also upgrades from 5.x to 6.x. As per the migration [steps](https://www.baeldung.com/spring-security-migrate-5-to-6), `WebSecurityConfigurerAdapter` has been removed. So, it is not required to be extended, instead bean can be registered.

`WebMvcConfigurerAdapter` class has been deprecated in Spring 5.0 and subsequently removed from spring 6.0. So, replacing it with `WebMvcConfigurer` interface for direct implementation.
https://docs.spring.io/spring-framework/docs/5.0.0.RELEASE/javadoc-api/org/springframework/web/servlet/config/annotation/WebMvcConfigurerAdapter.html

Removing bean of WebSecurityConfigurerAdapter, as in spring security 6.0 it is no more required.
spring-projects/spring-security#11923
https://www.baeldung.com/spring-security-migrate-5-to-6#2-websecurityconfigureradapter
rahul-chekuri pushed a commit to rahul-chekuri/spinnaker that referenced this pull request Oct 14, 2025
… cloud from 2021.0.x to 2022.0.x

Upgrading spring boot 2.7.18 to 3.0.13 and spring cloud 2021.0.8 to 2022.0.5.
Spring cloud release 2022.0.x is compatible with spring boot 3.0.x.
https://github.com/spring-cloud/spring-cloud-release/wiki/Supported-Versions#supported-releases

Removing bean of WebSecurityConfigurerAdapter, as in spring security 6.0 it is no more required.
spring-projects/spring-security#11923
https://www.baeldung.com/spring-security-migrate-5-to-6#2-websecurityconfigureradapter

===============================================================================================

refactor(dependency): replace javax with jakarta during upgrade of spring boot 3.0.x

Spring Boot 3.0 has migrated from Java EE to Jakarta EE APIs for all dependencies.
https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0-Release-Notes#third-party-library-upgrades
So, replacing the imports with `javax` to `jakarta`.

===============================================================================================

refactor(dependency): migrate rxjava to rxjava3 during upgrade of spring boot 3.0.x

Spring boot 3.x deprecated and removed rxjava, and rxjava3 has been added. So, update the dependency.
https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0-Migration-Guide#rxjava

And refactored the code to accomodate changes required by rxjava2 and rxjava3 following the changelogs.
https://github.com/ReactiveX/RxJava/wiki/What's-different-in-2.0
https://github.com/ReactiveX/RxJava/wiki/What%27s-different-in-3.0

================================================================================================

refactor(util): replace SocketUtils with TestSocketUtils during upgrade of spring boot 3.0.x

`org.springframework.util.SocketUtils` has been deprecated in spring framework 5.3.x and removed from 6.0.
`org.springframework.test.util.TestSocketUtils` has been introduced as a replacement of `SocketUtils`.

spring-projects/spring-framework#28052
spring-projects/spring-framework#28210
rahul-chekuri added a commit to rahul-chekuri/spinnaker that referenced this pull request Oct 14, 2025
…m javax to jakarta packages for SpringBoot 3 compatibility

Addressed build failure by replacing jakarta with javax. This issue arises as Spring Boot 3 now relies on Jakarta packages instead of javax.
Reference Links:
https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0-Migration-Guide#jakarta-ee

Removing bean of WebSecurityConfigurerAdapter, as in spring security 6.0 it is no more required.
spring-projects/spring-security#11923
https://www.baeldung.com/spring-security-migrate-5-to-6#2-websecurityconfigureradapter
rahul-chekuri pushed a commit to rahul-chekuri/spinnaker that referenced this pull request Oct 14, 2025
….x to 6.x with spring boot upgrade to 3.x

With spring boot upgrade, spring security also upgrades from 5.x to 6.x. As per the migration [steps](https://www.baeldung.com/spring-security-migrate-5-to-6), `WebSecurityConfigurerAdapter` has been removed. So, it is not required to be extended, instead bean can be registered.

`WebMvcConfigurerAdapter` class has been deprecated in Spring 5.0 and subsequently removed from spring 6.0. So, replacing it with `WebMvcConfigurer` interface for direct implementation.
https://docs.spring.io/spring-framework/docs/5.0.0.RELEASE/javadoc-api/org/springframework/web/servlet/config/annotation/WebMvcConfigurerAdapter.html

Removing bean of WebSecurityConfigurerAdapter, as in spring security 6.0 it is no more required.
spring-projects/spring-security#11923
https://www.baeldung.com/spring-security-migrate-5-to-6#2-websecurityconfigureradapter
rahul-chekuri pushed a commit to rahul-chekuri/spinnaker that referenced this pull request Oct 14, 2025
… cloud from 2021.0.x to 2022.0.x

Upgrading spring boot 2.7.18 to 3.0.13 and spring cloud 2021.0.8 to 2022.0.5.
Spring cloud release 2022.0.x is compatible with spring boot 3.0.x.
https://github.com/spring-cloud/spring-cloud-release/wiki/Supported-Versions#supported-releases

Removing bean of WebSecurityConfigurerAdapter, as in spring security 6.0 it is no more required.
spring-projects/spring-security#11923
https://www.baeldung.com/spring-security-migrate-5-to-6#2-websecurityconfigureradapter

===============================================================================================

refactor(dependency): replace javax with jakarta during upgrade of spring boot 3.0.x

Spring Boot 3.0 has migrated from Java EE to Jakarta EE APIs for all dependencies.
https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0-Release-Notes#third-party-library-upgrades
So, replacing the imports with `javax` to `jakarta`.

===============================================================================================

refactor(dependency): migrate rxjava to rxjava3 during upgrade of spring boot 3.0.x

Spring boot 3.x deprecated and removed rxjava, and rxjava3 has been added. So, update the dependency.
https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0-Migration-Guide#rxjava

And refactored the code to accomodate changes required by rxjava2 and rxjava3 following the changelogs.
https://github.com/ReactiveX/RxJava/wiki/What's-different-in-2.0
https://github.com/ReactiveX/RxJava/wiki/What%27s-different-in-3.0

================================================================================================

refactor(util): replace SocketUtils with TestSocketUtils during upgrade of spring boot 3.0.x

`org.springframework.util.SocketUtils` has been deprecated in spring framework 5.3.x and removed from 6.0.
`org.springframework.test.util.TestSocketUtils` has been introduced as a replacement of `SocketUtils`.

spring-projects/spring-framework#28052
spring-projects/spring-framework#28210
rahul-chekuri added a commit to rahul-chekuri/spinnaker that referenced this pull request Oct 14, 2025
…m javax to jakarta packages for SpringBoot 3 compatibility

Addressed build failure by replacing jakarta with javax. This issue arises as Spring Boot 3 now relies on Jakarta packages instead of javax.
Reference Links:
https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0-Migration-Guide#jakarta-ee

Removing bean of WebSecurityConfigurerAdapter, as in spring security 6.0 it is no more required.
spring-projects/spring-security#11923
https://www.baeldung.com/spring-security-migrate-5-to-6#2-websecurityconfigureradapter
rahul-chekuri pushed a commit to rahul-chekuri/spinnaker that referenced this pull request Oct 15, 2025
….x to 6.x with spring boot upgrade to 3.x

With spring boot upgrade, spring security also upgrades from 5.x to 6.x. As per the migration [steps](https://www.baeldung.com/spring-security-migrate-5-to-6), `WebSecurityConfigurerAdapter` has been removed. So, it is not required to be extended, instead bean can be registered.

`WebMvcConfigurerAdapter` class has been deprecated in Spring 5.0 and subsequently removed from spring 6.0. So, replacing it with `WebMvcConfigurer` interface for direct implementation.
https://docs.spring.io/spring-framework/docs/5.0.0.RELEASE/javadoc-api/org/springframework/web/servlet/config/annotation/WebMvcConfigurerAdapter.html

Removing bean of WebSecurityConfigurerAdapter, as in spring security 6.0 it is no more required.
spring-projects/spring-security#11923
https://www.baeldung.com/spring-security-migrate-5-to-6#2-websecurityconfigureradapter
rahul-chekuri pushed a commit to rahul-chekuri/spinnaker that referenced this pull request Oct 15, 2025
… cloud from 2021.0.x to 2022.0.x

Upgrading spring boot 2.7.18 to 3.0.13 and spring cloud 2021.0.8 to 2022.0.5.
Spring cloud release 2022.0.x is compatible with spring boot 3.0.x.
https://github.com/spring-cloud/spring-cloud-release/wiki/Supported-Versions#supported-releases

Removing bean of WebSecurityConfigurerAdapter, as in spring security 6.0 it is no more required.
spring-projects/spring-security#11923
https://www.baeldung.com/spring-security-migrate-5-to-6#2-websecurityconfigureradapter

===============================================================================================

refactor(dependency): replace javax with jakarta during upgrade of spring boot 3.0.x

Spring Boot 3.0 has migrated from Java EE to Jakarta EE APIs for all dependencies.
https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0-Release-Notes#third-party-library-upgrades
So, replacing the imports with `javax` to `jakarta`.

===============================================================================================

refactor(dependency): migrate rxjava to rxjava3 during upgrade of spring boot 3.0.x

Spring boot 3.x deprecated and removed rxjava, and rxjava3 has been added. So, update the dependency.
https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0-Migration-Guide#rxjava

And refactored the code to accomodate changes required by rxjava2 and rxjava3 following the changelogs.
https://github.com/ReactiveX/RxJava/wiki/What's-different-in-2.0
https://github.com/ReactiveX/RxJava/wiki/What%27s-different-in-3.0

================================================================================================

refactor(util): replace SocketUtils with TestSocketUtils during upgrade of spring boot 3.0.x

`org.springframework.util.SocketUtils` has been deprecated in spring framework 5.3.x and removed from 6.0.
`org.springframework.test.util.TestSocketUtils` has been introduced as a replacement of `SocketUtils`.

spring-projects/spring-framework#28052
spring-projects/spring-framework#28210
rahul-chekuri added a commit to rahul-chekuri/spinnaker that referenced this pull request Oct 15, 2025
…m javax to jakarta packages for SpringBoot 3 compatibility

Addressed build failure by replacing jakarta with javax. This issue arises as Spring Boot 3 now relies on Jakarta packages instead of javax.
Reference Links:
https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0-Migration-Guide#jakarta-ee

Removing bean of WebSecurityConfigurerAdapter, as in spring security 6.0 it is no more required.
spring-projects/spring-security#11923
https://www.baeldung.com/spring-security-migrate-5-to-6#2-websecurityconfigureradapter
rahul-chekuri pushed a commit to rahul-chekuri/spinnaker that referenced this pull request Oct 16, 2025
….x to 6.x with spring boot upgrade to 3.x

With spring boot upgrade, spring security also upgrades from 5.x to 6.x. As per the migration [steps](https://www.baeldung.com/spring-security-migrate-5-to-6), `WebSecurityConfigurerAdapter` has been removed. So, it is not required to be extended, instead bean can be registered.

`WebMvcConfigurerAdapter` class has been deprecated in Spring 5.0 and subsequently removed from spring 6.0. So, replacing it with `WebMvcConfigurer` interface for direct implementation.
https://docs.spring.io/spring-framework/docs/5.0.0.RELEASE/javadoc-api/org/springframework/web/servlet/config/annotation/WebMvcConfigurerAdapter.html

Removing bean of WebSecurityConfigurerAdapter, as in spring security 6.0 it is no more required.
spring-projects/spring-security#11923
https://www.baeldung.com/spring-security-migrate-5-to-6#2-websecurityconfigureradapter
rahul-chekuri pushed a commit to rahul-chekuri/spinnaker that referenced this pull request Oct 16, 2025
… cloud from 2021.0.x to 2022.0.x

Upgrading spring boot 2.7.18 to 3.0.13 and spring cloud 2021.0.8 to 2022.0.5.
Spring cloud release 2022.0.x is compatible with spring boot 3.0.x.
https://github.com/spring-cloud/spring-cloud-release/wiki/Supported-Versions#supported-releases

Removing bean of WebSecurityConfigurerAdapter, as in spring security 6.0 it is no more required.
spring-projects/spring-security#11923
https://www.baeldung.com/spring-security-migrate-5-to-6#2-websecurityconfigureradapter

===============================================================================================

refactor(dependency): replace javax with jakarta during upgrade of spring boot 3.0.x

Spring Boot 3.0 has migrated from Java EE to Jakarta EE APIs for all dependencies.
https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0-Release-Notes#third-party-library-upgrades
So, replacing the imports with `javax` to `jakarta`.

===============================================================================================

refactor(dependency): migrate rxjava to rxjava3 during upgrade of spring boot 3.0.x

Spring boot 3.x deprecated and removed rxjava, and rxjava3 has been added. So, update the dependency.
https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0-Migration-Guide#rxjava

And refactored the code to accomodate changes required by rxjava2 and rxjava3 following the changelogs.
https://github.com/ReactiveX/RxJava/wiki/What's-different-in-2.0
https://github.com/ReactiveX/RxJava/wiki/What%27s-different-in-3.0

================================================================================================

refactor(util): replace SocketUtils with TestSocketUtils during upgrade of spring boot 3.0.x

`org.springframework.util.SocketUtils` has been deprecated in spring framework 5.3.x and removed from 6.0.
`org.springframework.test.util.TestSocketUtils` has been introduced as a replacement of `SocketUtils`.

spring-projects/spring-framework#28052
spring-projects/spring-framework#28210
rahul-chekuri added a commit to rahul-chekuri/spinnaker that referenced this pull request Oct 16, 2025
…m javax to jakarta packages for SpringBoot 3 compatibility

Addressed build failure by replacing jakarta with javax. This issue arises as Spring Boot 3 now relies on Jakarta packages instead of javax.
Reference Links:
https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0-Migration-Guide#jakarta-ee

Removing bean of WebSecurityConfigurerAdapter, as in spring security 6.0 it is no more required.
spring-projects/spring-security#11923
https://www.baeldung.com/spring-security-migrate-5-to-6#2-websecurityconfigureradapter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in: config An issue in spring-security-config type: breaks-passivity A change that breaks passivity with the previous release type: enhancement A general enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove WebSecurityConfigurerAdapter

3 participants