Skip to content

Releases: cloudflightio/cloudflight-platform-spring

v1.1.3

29 Sep 11:03
f697e85
Compare
Choose a tag to compare

Upgrade dependencies

  • Spring Boot 2.7.4
  • Sping Cloud 2021.0.4
  • Azure 4.3.0
  • Azure Identity 1.6.0
  • Mockk 1.32.2

v1.1.2

26 Sep 20:10
Compare
Choose a tag to compare

v1.1.1

12 Sep 11:08
110f812
Compare
Choose a tag to compare
  • The ManagementEndpointFilter in ManagementSecurityAutoConfiguration comes with a defined order 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 version 1.1.0 has been renamed to cloudflight.spring.security.use-deprecated-websecurity-configurer in order to make the behaviour behind more obvious.

v1.1.0

07 Sep 07:18
cc6c839
Compare
Choose a tag to compare

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

06 Sep 09:46
014ae64
Compare
Choose a tag to compare

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

02 Aug 13:27
c3d69b5
Compare
Choose a tag to compare
  • Include the org.jetbrains.kotlin:kotlin-bom in the latest version (1.7.10 currently) in order to override then one from the Spring Boot BOM
  • Update to Playtika TestContainers 2.2.5 (fixes a critical bug with the latest version of Azurite)

v1.0.2

02 Aug 05:06
b21b986
Compare
Choose a tag to compare

v1.0.1

01 Aug 10:04
76b3cb8
Compare
Choose a tag to compare
  • new module platform-spring-test-archunit

v1.0.0

06 Jul 05:58
e9c8bcc
Compare
Choose a tag to compare

v0.9.3

06 Jun 17:38
1423533
Compare
Choose a tag to compare
  • Add kotlin-reflect as runtimeOnly dependency to platform-spring-jpa, as Spring Data requires access to that library at runtime.
  • Cleanup constraints inside platform-spring-bom, do not add excludes globally any more for JUnit4, but only on testImplementation