From 0c25ffe0704d3f20d48ab0757587478e31f3bafe Mon Sep 17 00:00:00 2001 From: Romain Bioteau Date: Wed, 25 Oct 2023 16:38:08 +0200 Subject: [PATCH 1/2] feat(configuration): property source order --- modules/ROOT/pages/release-notes.adoc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/ROOT/pages/release-notes.adoc b/modules/ROOT/pages/release-notes.adoc index b0f7774bcd..e726b31a88 100644 --- a/modules/ROOT/pages/release-notes.adoc +++ b/modules/ROOT/pages/release-notes.adoc @@ -304,6 +304,10 @@ With the new Self-Contained Application (abbr. SCA) approach, creating or updati A new `bonita.runtime.startup.update-only` configuration boolean property has been added to perform an update only startup. When enabled, the application will start, go through its initialization and update phase and exit afterward. Exit status can be successful (`0`) or in error (`1`). +=== Properties source priority order + +A new `bonita.runtime.properties.order.legacy-mode` configuration boolean property has been added. When enabled, properties files from database have a higher priority order over environment and system variables. By default, this property is disabled and properties from the database can be overridden with environment or system variables. + === Runtime property renaming In order to improve Bonita property naming coherence, a work is in progress to change some property names. From 578cfe95825cc76f4293b1131948ad09f841a0b9 Mon Sep 17 00:00:00 2001 From: Romain Bioteau Date: Thu, 26 Oct 2023 09:31:50 +0200 Subject: [PATCH 2/2] Update modules/ROOT/pages/release-notes.adoc Co-authored-by: Adrien Kantcheff <5028967+akantcheff@users.noreply.github.com> --- modules/ROOT/pages/release-notes.adoc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/ROOT/pages/release-notes.adoc b/modules/ROOT/pages/release-notes.adoc index e726b31a88..ca266e869b 100644 --- a/modules/ROOT/pages/release-notes.adoc +++ b/modules/ROOT/pages/release-notes.adoc @@ -306,7 +306,9 @@ When enabled, the application will start, go through its initialization and upda === Properties source priority order -A new `bonita.runtime.properties.order.legacy-mode` configuration boolean property has been added. When enabled, properties files from database have a higher priority order over environment and system variables. By default, this property is disabled and properties from the database can be overridden with environment or system variables. +Prior Bonita 2023.2, properties files from database had priority over environment or system variables. We decide to reverse this order so that you can easily override database properties with environment or system variables, and to be in line with the https://docs.spring.io/spring-boot/docs/current/reference/html/features.html#features.external-config[Spring / Spring Boot philosophy]. + +To be backward compatible, we introduce the boolean property `bonita.runtime.properties.order.legacy-mode` (default: `false`) to enable the previous priority order of properties source. === Runtime property renaming