Releases: cloudflightio/cloudflight-platform-spring
v1.1.3
v1.1.2
v1.1.1
- The ManagementEndpointFilter in
ManagementSecurityAutoConfiguration
comes with a definedorder
now and only matches for all management endpoints in order to not apply for any other HTTP request. - The new property
cloudflight.spring.security.use-websecurity-customizer
from version1.1.0
has been renamed tocloudflight.spring.security.use-deprecated-websecurity-configurer
in order to make the behaviour behind more obvious.
v1.1.0
Support for deprecated Spring Security Code
The version 1.0.4 accidentally introduced a breaking change around Spring Security as we configured the ManagementSecurityAutoConfiguration
with the new SecurityFilterChain
instead of the deprecated WebSecurityConfigurerAdapter
. Anyways, Spring Security does not allow to mix those two classes and therefore if you have still used the old WebSecurityConfigurerAdapter
, your server crashed at startup.
Our clear recommendation is to replace any usage of the WebSecurityConfigurerAdapter
in your application code (see its javadoc for migration instructions) and then you can use this version of the Cloudflight Spring Platform without further adaptions.
If for any reason you can't migrate your code (probably because you are using other libraries like the also deprecated OAuth Resource Server of Spring Security, then the property cloudflight.spring.security.use-websecurity-customizer
which you can use in your application.properties
or application.yaml
. Set this to true
in order to still be able to use the deprecated code.
Please note that this property has been renamed to cloudflight.spring.security.use-deprecated-websecurity-configurer
in version ``1.1.1` (which we kindly ask you to use as it fixes another issue as well)
Explicit order of Cacheable and Transactional advices
With this version we also explicitely set the order of @EnableCaching
and @EnableTransactionManagment
. The default is Ordered.LOWEST_PRECEDENCE
for both advices which leads to the unpredictable situation that you don't know which advices comes first. We want to ensure that caching always comes before transactional (so that you avoid creating a transaction when you have a cache-hit), therefore the order of @EnableCaching
is 1000
and the order of @EnableTransactionManagment
is 2000
.
New defaults for Redis Caches
Per default we also make the caches transaction-aware (see org.springframework.data.redis.cache.RedisCacheManager.RedisCacheManagerBuilder#transactionAware
), that means if you populate caches inside a transaction then this is only being done when the transaction is not being rollbacked.
Additionaly we take the value of spring.cache.redis.time-to-live
into consideration for the default RedisCacheConfiguration
and log a warning if that value is not set.
Renamed properties
The property spring.tx.validate-existing-transaction
has been renamed to cloudflight.spring.tx.validate-existing-transaction
in order to not pollute the spring
namespace and avoid potential future name clashes.
All Spring Boot configuration properties of the Cloudflight Platform for Spring are now below the cloudflight
group.
v1.0.4
Updated dependencies:
- Spring Boot 2.7.3
- Shedlock 4.41.0
- Awaitility 4.2.0
- Playtika TestContainers 2.2.6
- Azure 4.3.0
- Azure Identity 1.5.5
- ArchUnit CleanCode Verifier 0.1.1
ATTENTION: This release accidentally introduced a potential breaking change with Spring Security in connection with the module platform-monitoring
. Version 1.1.0 provides means to address this breaking change including a possibility to stay backwards compatible.
v1.0.3
v1.0.2
- Update to archunit-cleancode-verifier 0.1.0
- Update to Spring Boot 2.7.2
- Update to Auto-Configure Plugin 0.6.0, therefore now using Kotlin 1.7.10
- Built with Gradle 7.5
v1.0.1
v1.0.0
- Update to Spring Boot 2.7.1
- please note that this ships with Flyway 8.5. If you are using Flyway in connection with MySQL or MariaDB, you need to add the dependency
org.flywaydb:flyway-mysql
, see https://flywaydb.org/documentation/database/mysql#java-usage
- please note that this ships with Flyway 8.5. If you are using Flyway in connection with MySQL or MariaDB, you need to add the dependency
- Update to Spring Cloud 2021.0.3
- Update to Kotlin 1.7.0
- Update to Spring Azure 4.2.0