Merge "Upgrade xacml engine to 3.1.0"
authorLiam Fallon <liam.fallon@est.tech>
Thu, 8 Sep 2022 12:59:10 +0000 (12:59 +0000)
committerGerrit Code Review <gerrit@onap.org>
Thu, 8 Sep 2022 12:59:10 +0000 (12:59 +0000)
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