diff options
author | Kajur, Harish (vk250x) <vk250x@att.com> | 2019-05-20 15:29:54 -0400 |
---|---|---|
committer | Kajur, Harish (vk250x) <vk250x@att.com> | 2019-05-20 15:30:06 -0400 |
commit | 48b2d5f22e2b155559bc656d4c62fc01f58c2ae2 (patch) | |
tree | 09da8dc77d0c748fc4558b70f60f4d18fca5cd93 | |
parent | 48d76b552efaa7f3ac068519a0c06ab1ad65f2ea (diff) |
Update the graphgraph to use obfuscated passwords
Issue-ID: AAI-531
Change-Id: I45d2687a97415d3a4e4c9731df5f59dab7da6eaf
Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
-rw-r--r-- | src/main/java/org/onap/aai/graphgraph/App.java | 5 | ||||
-rw-r--r-- | src/main/resources/application.properties | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/src/main/java/org/onap/aai/graphgraph/App.java b/src/main/java/org/onap/aai/graphgraph/App.java index 42effa1..002876c 100644 --- a/src/main/java/org/onap/aai/graphgraph/App.java +++ b/src/main/java/org/onap/aai/graphgraph/App.java @@ -25,6 +25,7 @@ import org.onap.aai.edges.EdgeIngestor; import org.onap.aai.introspection.MoxyLoader; import org.onap.aai.introspection.exceptions.AAIUnknownObjectException; import org.onap.aai.nodes.NodeIngestor; +import org.onap.aai.restclient.PropertyPasswordConfiguration; import org.onap.aai.setup.SchemaVersion; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @@ -47,7 +48,9 @@ public class App{ } public static void main( String[] args ) { - ConfigurableApplicationContext context = SpringApplication.run(App.class, args); + SpringApplication app = new SpringApplication(App.class); + app.addInitializers(new PropertyPasswordConfiguration()); + ConfigurableApplicationContext context = app.run(args); loadSchemes(context); edgeIngestor = (EdgeIngestor) context.getBean("edgeIngestor"); } diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index c152118..060041a 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -39,9 +39,9 @@ schema.service.versions.override=false schema.service.ssl.enabled-protocols=TLSv1.1,TLSv1.2 schema.service.ssl.key-store=${server.local.startpath}etc/auth/aai_keystore -schema.service.ssl.key-store-password=changeit +schema.service.ssl.key-store-password=password(OBF:1vn21ugu1saj1v9i1v941sar1ugw1vo0) schema.service.ssl.trust-store=${server.local.startpath}etc/auth/aai_keystore -schema.service.ssl.trust-store-password=changeit +schema.service.ssl.trust-store-password=password(OBF:1vn21ugu1saj1v9i1v941sar1ugw1vo0) schema.service.ssl.client-auth=want schema.service.ssl.key-store-type=JKS |