From 5c5e3ef17ea8149424562b348ff87c6860bba82d Mon Sep 17 00:00:00 2001 From: Ravi Pendurty Date: Fri, 17 Jul 2020 13:20:59 +0200 Subject: Remove password in properties Remove password in properties and use environment variables instead Issue-ID: CCSDK-2569 Signed-off-by: Ravi Pendurty Change-Id: I3c4b1af04cdb570620d90e0c8e65d0dd70083fae --- .../ccsdk/features/sdnr/wt/mountpointregistrar/impl/FaultConfig.java | 4 ++-- .../features/sdnr/wt/mountpointregistrar/impl/GeneralConfig.java | 4 ++-- .../sdnr/wt/mountpointregistrar/impl/PNFRegistrationConfig.java | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'sdnr/wt/mountpoint-registrar') diff --git a/sdnr/wt/mountpoint-registrar/provider/src/main/java/org/onap/ccsdk/features/sdnr/wt/mountpointregistrar/impl/FaultConfig.java b/sdnr/wt/mountpoint-registrar/provider/src/main/java/org/onap/ccsdk/features/sdnr/wt/mountpointregistrar/impl/FaultConfig.java index a6323f270..6477ebbec 100644 --- a/sdnr/wt/mountpoint-registrar/provider/src/main/java/org/onap/ccsdk/features/sdnr/wt/mountpointregistrar/impl/FaultConfig.java +++ b/sdnr/wt/mountpoint-registrar/provider/src/main/java/org/onap/ccsdk/features/sdnr/wt/mountpointregistrar/impl/FaultConfig.java @@ -34,10 +34,10 @@ public class FaultConfig implements Configuration { private static final String DEFAULT_VALUE_CONSUMER_PROTOCOL = "http"; public static final String PROPERTY_KEY_CONSUMER_USERNAME = "username"; - private static final String DEFAULT_VALUE_CONSUMER_USERNAME = "username"; + private static final String DEFAULT_VALUE_CONSUMER_USERNAME = "${DMAAP_FAULT_TOPIC_USERNAME}"; public static final String PROPERTY_KEY_CONSUMER_PASSWORD = "password"; - private static final String DEFAULT_VALUE_CONSUMER_PASSWORD = "password"; + private static final String DEFAULT_VALUE_CONSUMER_PASSWORD = "${DMAAP_FAULT_TOPIC_PASSWORD}"; public static final String PROPERTY_KEY_CONSUMER_HOST_PORT = "host"; private static final String DEFAULT_VALUE_CONSUMER_HOST_PORT = "onap-dmaap:3904"; diff --git a/sdnr/wt/mountpoint-registrar/provider/src/main/java/org/onap/ccsdk/features/sdnr/wt/mountpointregistrar/impl/GeneralConfig.java b/sdnr/wt/mountpoint-registrar/provider/src/main/java/org/onap/ccsdk/features/sdnr/wt/mountpointregistrar/impl/GeneralConfig.java index f0d4323c4..2ad5431be 100644 --- a/sdnr/wt/mountpoint-registrar/provider/src/main/java/org/onap/ccsdk/features/sdnr/wt/mountpointregistrar/impl/GeneralConfig.java +++ b/sdnr/wt/mountpoint-registrar/provider/src/main/java/org/onap/ccsdk/features/sdnr/wt/mountpointregistrar/impl/GeneralConfig.java @@ -35,10 +35,10 @@ public class GeneralConfig implements Configuration { private static final String PROPERTY_KEY_ENABLED = "dmaapEnabled"; //"enabled"; private static final String PROPERTY_KEY_USER = "sdnrUser"; - private static final String DEFAULT_VALUE_USER = "admin"; + private static final String DEFAULT_VALUE_USER = "${SDNRUSERNAME}"; private static final String PROPERTY_KEY_USERPASSWD = "sdnrPasswd"; - private static final String DEFAULT_VALUE_USERPASSWD = "admin"; + private static final String DEFAULT_VALUE_USERPASSWD = "${SDNRPASSWORD}"; private static final String PROPERTY_KEY_BASEURL = "baseUrl"; private static final String DEFAULT_VALUE_BASEURL = "http://localhost:8181"; diff --git a/sdnr/wt/mountpoint-registrar/provider/src/main/java/org/onap/ccsdk/features/sdnr/wt/mountpointregistrar/impl/PNFRegistrationConfig.java b/sdnr/wt/mountpoint-registrar/provider/src/main/java/org/onap/ccsdk/features/sdnr/wt/mountpointregistrar/impl/PNFRegistrationConfig.java index a8e12767f..dd4d2864a 100644 --- a/sdnr/wt/mountpoint-registrar/provider/src/main/java/org/onap/ccsdk/features/sdnr/wt/mountpointregistrar/impl/PNFRegistrationConfig.java +++ b/sdnr/wt/mountpoint-registrar/provider/src/main/java/org/onap/ccsdk/features/sdnr/wt/mountpointregistrar/impl/PNFRegistrationConfig.java @@ -35,10 +35,10 @@ public class PNFRegistrationConfig implements Configuration { private static final String DEFAULT_VALUE_CONSUMER_PROTOCOL = "http"; public static final String PROPERTY_KEY_CONSUMER_USERNAME = "username"; - private static final String DEFAULT_VALUE_CONSUMER_USERNAME = "username"; + private static final String DEFAULT_VALUE_CONSUMER_USERNAME = "${DMAAP_PNFREG_TOPIC_USERNAME}"; public static final String PROPERTY_KEY_CONSUMER_PASSWORD = "password"; - private static final String DEFAULT_VALUE_CONSUMER_PASSWORD = "password"; + private static final String DEFAULT_VALUE_CONSUMER_PASSWORD = "${DMAAP_PNFREG_TOPIC_PASSWORD}"; public static final String PROPERTY_KEY_CONSUMER_HOST_PORT = "host"; private static final String DEFAULT_VALUE_CONSUMER_HOST_PORT = "onap-dmaap:3904"; -- cgit 1.2.3-korg