From 86dd13916f8e1ec3b9ac981c19913ddad89dc343 Mon Sep 17 00:00:00 2001 From: mpriyank Date: Tue, 30 Apr 2024 10:14:26 +0100 Subject: [PATCH] [BUG]Defaults for cps and dmi user and pass - provided default values for DMI_USERNAME and DMI_PASSWORD which is required to set when DMI_AUTH_ENABLED is true - Also provided defaults for CPS_USERNAME and CPS_PASSWORD as its been used in the logback xml file and if not provided then causes an issue with the logger Issue-ID: CPS-2194 Change-Id: I70fdbeca970556c7bd19f27c1b6b5123fd591283 Signed-off-by: mpriyank --- cps-application/src/main/resources/application.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cps-application/src/main/resources/application.yml b/cps-application/src/main/resources/application.yml index 27bc6c618..7873cc459 100644 --- a/cps-application/src/main/resources/application.yml +++ b/cps-application/src/main/resources/application.yml @@ -144,8 +144,8 @@ security: # comma-separated uri patterns which do not require authorization permit-uri: /actuator/**,/swagger-ui.html,/swagger-ui/**,/swagger-resources/**,/api-docs/**,/v3/api-docs/** auth: - username: ${CPS_USERNAME} - password: ${CPS_PASSWORD} + username: ${CPS_USERNAME:cpsuser} + password: ${CPS_PASSWORD:cpsr0cks!} # Actuator management: @@ -175,8 +175,8 @@ ncmp: maximumConnectionsTotal: 100 idleConnectionEvictionThresholdInSeconds: 5 auth: - username: ${DMI_USERNAME} - password: ${DMI_PASSWORD} + username: ${DMI_USERNAME:cpsuser} + password: ${DMI_PASSWORD:cpsr0cks!} enabled: ${DMI_AUTH_ENABLED:true} api: base-path: dmi -- 2.16.6