[BUG]Defaults for cps and dmi user and pass 16/137816/3
authormpriyank <priyank.maheshwari@est.tech>
Tue, 30 Apr 2024 09:14:26 +0000 (10:14 +0100)
committerPriyank Maheshwari <priyank.maheshwari@est.tech>
Tue, 30 Apr 2024 14:34:38 +0000 (14:34 +0000)
- 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 <priyank.maheshwari@est.tech>
cps-application/src/main/resources/application.yml

index 27bc6c6..7873cc4 100644 (file)
@@ -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