Remove CLM issues with commons-collections 87/33687/1
authorPamela Dragosh <pdragosh@research.att.com>
Thu, 1 Mar 2018 22:11:20 +0000 (17:11 -0500)
committerPamela Dragosh <pdragosh@research.att.com>
Thu, 1 Mar 2018 22:11:27 +0000 (17:11 -0500)
We know that we are not configuring an LDAP PIP in our
use of the XACML open source. The LDAP implementation
uses Apache Velocity, which uses a very old version
of commons-collections that has security issues. So
we can exclude commons-collections from the build.

Issue-ID: POLICY-504
Change-Id: I6d90731e601f58c8edaca6fe02df30ee2a090c2f
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
controlloop/common/eventmanager/pom.xml
controlloop/common/guard/pom.xml
controlloop/packages/artifacts/pom.xml
controlloop/templates/template.demo/pom.xml

index d0ce651..6264e7e 100644 (file)
       <artifactId>xacml</artifactId>
       <version>1.0.1</version>
       <scope>provided</scope>
+      <exclusions>
+        <!-- The LDAP PIP uses velocity which pulls this insecure jar in. We
+        are not using that PIP and can safely exclude this jar to resolve CLM issue.
+         -->
+        <exclusion>
+          <groupId>commons-collections</groupId>
+          <artifactId>commons-collections</artifactId>
+        </exclusion>
+      </exclusions>
     </dependency>
     <dependency>
       <groupId>org.onap.policy.drools-applications.controlloop.common.actors</groupId>
index 36c7e19..ae3dbde 100644 (file)
       <groupId>com.att.research.xacml</groupId>
       <artifactId>xacml-pdp</artifactId>
       <version>1.0.1</version>
+      <exclusions>
+        <!-- The LDAP PIP uses velocity which pulls this insecure jar in. We
+        are not using that PIP and can safely exclude this jar to resolve CLM issue.
+         -->
+        <exclusion>
+          <groupId>commons-collections</groupId>
+          <artifactId>commons-collections</artifactId>
+        </exclusion>
+      </exclusions>
     </dependency>
     <dependency>
       <groupId>junit</groupId>
index 0965fa0..3b49a75 100644 (file)
       <artifactId>xacml-pdp</artifactId>
       <version>1.0.1</version>
       <type>jar</type>
+      <exclusions>
+        <!-- The LDAP PIP uses velocity which pulls this insecure jar in. We
+        are not using that PIP and can safely exclude this jar to resolve CLM issue.
+         -->
+        <exclusion>
+          <groupId>commons-collections</groupId>
+          <artifactId>commons-collections</artifactId>
+        </exclusion>
+      </exclusions>
     </dependency>
   </dependencies>
 </project>
index f2700e7..ab69975 100644 (file)
       <artifactId>xacml</artifactId>
       <version>1.0.1</version>
       <scope>test</scope>
+      <exclusions>
+        <!-- The LDAP PIP uses velocity which pulls this insecure jar in. We
+        are not using that PIP and can safely exclude this jar to resolve CLM issue.
+         -->
+        <exclusion>
+          <groupId>commons-collections</groupId>
+          <artifactId>commons-collections</artifactId>
+        </exclusion>
+      </exclusions>
     </dependency>
     <dependency>
       <groupId>com.att.research.xacml</groupId>