Compare commits

...

4 Commits

Author SHA1 Message Date
renovate[bot]
093f512d8b
fix(deps): update dependency org.springframework.security:spring-security-crypto to v6.5.5 2025-10-09 09:48:06 +00:00
Kavin
c5921f6b70
Merge pull request #817 from gmemstr/patch-1
Allow for valid hibernate environment variables
2025-09-28 01:50:37 +05:30
Gabriel Simmer
946b3762a9
Hibernate environment variables double underscore to period 2025-09-27 11:59:20 +01:00
Gabriel Simmer
e36bbd0445
Allow for valid hibernate environment variables
*nix systems can't have periods in their environment variable names, so we instead look for `HIBERNATE` prefixes, then lowercase and translate underscores to periods. This will allow for better compatibility with *nix systems when configuring likely sensitive hibernate values.
2025-09-27 11:58:52 +01:00
2 changed files with 3 additions and 3 deletions

View File

@ -36,7 +36,7 @@ dependencies {
implementation 'org.liquibase:liquibase-core:4.33.0'
implementation('org.liquibase.ext:liquibase-yugabytedb:4.33.0') { exclude group: 'org.liquibase' }
implementation 'com.zaxxer:HikariCP:6.3.2'
implementation 'org.springframework.security:spring-security-crypto:6.5.3'
implementation 'org.springframework.security:spring-security-crypto:6.5.5'
implementation 'commons-logging:commons-logging:1.3.5'
implementation(platform("com.squareup.okhttp3:okhttp-bom:5.1.0"))
implementation 'com.squareup.okhttp3:okhttp'

View File

@ -166,8 +166,8 @@ public class Constants {
S3_CLIENT = null;
}
System.getenv().forEach((key, value) -> {
if (key.startsWith("hibernate"))
hibernateProperties.put(key, value);
if (key.startsWith("HIBERNATE"))
hibernateProperties.put(key.replace("__", ".").toLowerCase(), value);
});
MATRIX_SERVER = getProperty(prop, "MATRIX_SERVER", "https://matrix-client.matrix.org");
MATRIX_TOKEN = getProperty(prop, "MATRIX_TOKEN");