Allow overrides of guard xacml.properties 63/130763/1
authorjhh <jorge.hernandez-herrero@att.com>
Tue, 6 Sep 2022 17:16:31 +0000 (12:16 -0500)
committerjhh <jorge.hernandez-herrero@att.com>
Tue, 6 Sep 2022 17:16:31 +0000 (12:16 -0500)
Issue-ID: POLICY-4340
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: Ifa59a52114a774ed94b33da06f7f0df1007d3c20

packages/policy-xacmlpdp-docker/src/main/docker/policy-pdpx-pg.sh
packages/policy-xacmlpdp-docker/src/main/docker/policy-pdpx.sh

index 838cfa5..b715c97 100644 (file)
@@ -67,6 +67,11 @@ if [ -f "${POLICY_HOME}/etc/mounted/db-pg.sql" ]; then
     cp -f "${POLICY_HOME}"/etc/mounted/db-pg.sql "${POLICY_HOME}"/postgress/sql/
 fi
 
+if [ -f "${POLICY_HOME}/etc/mounted/guard.xacml.properties" ]; then
+    echo "overriding guard application xacml.properties"
+    cp -f "${POLICY_HOME}"/etc/mounted/guard.xacml.properties "${POLICY_HOME}"/apps/guard/xacml.properties
+fi
+
 # Create operationshistory table
 "${POLICY_HOME}"/postgres/bin/create-guard-table-pg.sh
 
index 0c7b98b..537f234 100644 (file)
@@ -67,6 +67,11 @@ if [ -f "${POLICY_HOME}/etc/mounted/db.sql" ]; then
     cp -f "${POLICY_HOME}"/etc/mounted/db.sql "${POLICY_HOME}"/mysql/sql/
 fi
 
+if [ -f "${POLICY_HOME}/etc/mounted/guard.xacml.properties" ]; then
+    echo "overriding guard application xacml.properties"
+    cp -f "${POLICY_HOME}"/etc/mounted/guard.xacml.properties "${POLICY_HOME}"/apps/guard/xacml.properties
+fi
+
 # Create operationshistory table
 "${POLICY_HOME}"/mysql/bin/create-guard-table.sh