diff options
author | Ravi Pendurty <ravi.pendurty@highstreet-technologies.com> | 2020-07-17 13:20:59 +0200 |
---|---|---|
committer | Ravi Pendurty <ravi.pendurty@highstreet-technologies.com> | 2020-07-17 13:21:33 +0200 |
commit | 5c5e3ef17ea8149424562b348ff87c6860bba82d (patch) | |
tree | 6c632b6e3feecc4e85d5352937d1ef1acf1e083a /sdnr/wt/mountpoint-registrar | |
parent | 96aeff5a753e008add7a879198ba3229f4b6016b (diff) |
Remove password in properties
Remove password in properties and use environment variables instead
Issue-ID: CCSDK-2569
Signed-off-by: Ravi Pendurty <ravi.pendurty@highstreet-technologies.com>
Change-Id: I3c4b1af04cdb570620d90e0c8e65d0dd70083fae
Diffstat (limited to 'sdnr/wt/mountpoint-registrar')
3 files changed, 6 insertions, 6 deletions
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"; |