summaryrefslogtreecommitdiffstats
path: root/data-migrator
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2021-02-22 11:20:18 -0500
committerDan Timoney <dtimoney@att.com>2021-02-22 13:56:52 -0500
commit38d8f5f82c952db34e139488dd7619f620ecc742 (patch)
tree546e24c91091dccca66180bf0e9c93a1b9ac4f4d /data-migrator
parent1e1fc55411b7569aae9f550046ca14e5db03d5cb (diff)
Remove embedded passwords
Updated properties files to use env variables instead of embedded default passwords. Change-Id: I7b5a796bbb5d386dda8cba47cbb977ec47838a11 Issue-ID: SDNC-1482 Signed-off-by: Dan Timoney <dtimoney@att.com> Former-commit-id: d0a86a8593f3832f11198e91c2343db6fad5a1a9
Diffstat (limited to 'data-migrator')
-rw-r--r--data-migrator/pom.xml5
-rw-r--r--data-migrator/src/main/java/org/onap/sdnc/oam/datamigrator/common/MigratorConfiguration.java3
2 files changed, 7 insertions, 1 deletions
diff --git a/data-migrator/pom.xml b/data-migrator/pom.xml
index 5c1922ef..48b1a0de 100644
--- a/data-migrator/pom.xml
+++ b/data-migrator/pom.xml
@@ -68,6 +68,11 @@
<version>2.18.0</version>
<scope>test</scope>
</dependency>
+ <dependency>
+ <groupId>org.onap.ccsdk.sli.core</groupId>
+ <artifactId>utils-provider</artifactId>
+ <version>${ccsdk.sli.version}</version>
+ </dependency>
</dependencies>
<build>
diff --git a/data-migrator/src/main/java/org/onap/sdnc/oam/datamigrator/common/MigratorConfiguration.java b/data-migrator/src/main/java/org/onap/sdnc/oam/datamigrator/common/MigratorConfiguration.java
index 40a1b920..9c3f7ac9 100644
--- a/data-migrator/src/main/java/org/onap/sdnc/oam/datamigrator/common/MigratorConfiguration.java
+++ b/data-migrator/src/main/java/org/onap/sdnc/oam/datamigrator/common/MigratorConfiguration.java
@@ -19,6 +19,7 @@
*/
package org.onap.sdnc.oam.datamigrator.common;
+import org.onap.ccsdk.sli.core.utils.common.EnvProperties;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -73,7 +74,7 @@ public class MigratorConfiguration {
+ propFile);
}
- Properties props = new Properties();
+ Properties props = new EnvProperties();
props.load(new FileInputStream(propFile));
this.sourceHost = props.getProperty("org.onap.sdnc.datamigrator.source.host");
this.sourceUser = props.getProperty("org.onap.sdnc.datamigrator.source.user");