diff --git a/quarkus/runtime/src/main/java/org/keycloak/quarkus/runtime/configuration/QuarkusPropertiesConfigSource.java b/quarkus/runtime/src/main/java/org/keycloak/quarkus/runtime/configuration/QuarkusPropertiesConfigSource.java index b04878816bad..d433739540d6 100644 --- a/quarkus/runtime/src/main/java/org/keycloak/quarkus/runtime/configuration/QuarkusPropertiesConfigSource.java +++ b/quarkus/runtime/src/main/java/org/keycloak/quarkus/runtime/configuration/QuarkusPropertiesConfigSource.java @@ -57,7 +57,10 @@ public static boolean isSameSource(ConfigValue value) { return false; } - return NAME.equals(value.getConfigSourceName()); + // workaround for https://github.com/smallrye/smallrye-config/issues/1207 + // replace by the following line when fixed: + // return NAME.equals(value.getConfigSourceName()); + return value.getConfigSourceName() != null && value.getConfigSourceName().endsWith(FILE_NAME); } public static Path getConfigurationFile() {