Skip to content

Commit

Permalink
Revert "remove unnecessary elasticsearch dependencies to fix CVE regr…
Browse files Browse the repository at this point in the history
…essions (apache#15443)"

This reverts commit b854058.
  • Loading branch information
LakshSingla committed Feb 12, 2024
1 parent 281a396 commit bed59ac
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 63 deletions.
42 changes: 1 addition & 41 deletions extensions-core/druid-ranger-security/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,6 @@
<relativePath>../../pom.xml</relativePath>
</parent>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.fasterxml.woodstox</groupId>
<artifactId>woodstox-core</artifactId>
<version>6.4.0</version>
</dependency>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-bundle</artifactId>
<version>${aws.sdk.version}</version>
</dependency>
</dependencies>
</dependencyManagement>

<dependencies>
<dependency>
<groupId>org.apache.druid</groupId>
Expand Down Expand Up @@ -148,18 +133,6 @@
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-common</artifactId>
</exclusion>
<exclusion>
<groupId>org.elasticsearch</groupId>
<artifactId>*</artifactId>
</exclusion>
<exclusion>
<groupId>org.elasticsearch.client</groupId>
<artifactId>*</artifactId>
</exclusion>
<exclusion>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
Expand All @@ -171,27 +144,14 @@
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-common</artifactId>
</exclusion>
<exclusion>
<groupId>org.elasticsearch</groupId>
<artifactId>*</artifactId>
</exclusion>
<exclusion>
<groupId>org.elasticsearch.client</groupId>
<artifactId>*</artifactId>
</exclusion>
<exclusion>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
<scope>compile</scope>
</dependency>

<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>${apache.ranger.gson.version}</version>
<scope>compile</scope>
<version>${gson.version}</version>
</dependency>

<!-- Tests -->
Expand Down
54 changes: 33 additions & 21 deletions licenses.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4620,16 +4620,6 @@ libraries:

---

name: gson
license_category: binary
module: druid-ranger-security
license_name: Apache License version 2.0
version: 2.10.1
libraries:
- com.google.code.gson: gson

---

name: com.kstruct gethostname4j
license_category: binary
version: 1.0.0
Expand All @@ -4640,16 +4630,6 @@ libraries:

---

name: com.amazonaws aws-java-sdk-bundle
license_category: binary
version: 1.12.638
module: druid-ranger-security
license_name: Apache License version 2.0
libraries:
- com.amazonaws: aws-java-sdk-bundle

---

name: com.carrotsearch hppc
license_category: binary
version: 0.8.0
Expand Down Expand Up @@ -4755,6 +4735,38 @@ libraries:

---

name: org.elasticsearch securesm
license_category: binary
version: 1.2
module: druid-ranger-security
license_name: Apache License version 2.0
libraries:
- org.elasticsearch: securesm

---

name: Elastic Search
license_category: binary
version: 7.10.2
module: druid-ranger-security
license_name: Apache License version 2.0
libraries:
- org.elasticsearch: elasticsearch
- org.elasticsearch: elasticsearch-cli
- org.elasticsearch: elasticsearch-core
- org.elasticsearch: elasticsearch-geo
- org.elasticsearch: elasticsearch-secure-sm
- org.elasticsearch: elasticsearch-x-content
- org.elasticsearch.client: elasticsearch-rest-client
- org.elasticsearch.client: elasticsearch-rest-high-level-client
- org.elasticsearch.plugin: aggs-matrix-stats-client
- org.elasticsearch.plugin: lang-mustache-client
- org.elasticsearch.plugin: mapper-extras-client
- org.elasticsearch.plugin: parent-join-client
- org.elasticsearch.plugin: rank-eval-client

---

name: org.apache.httpcomponents httpcore-nio
license_category: binary
version: 4.4.6
Expand Down Expand Up @@ -4793,7 +4805,7 @@ libraries:

name: Woodstox
license_category: binary
version: 6.4.0
version: 6.2.4
module: druid-ranger-security
license_name: Apache License version 2.0
libraries:
Expand Down
1 change: 0 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@
<apache.curator.version>5.5.0</apache.curator.version>
<apache.kafka.version>3.6.1</apache.kafka.version>
<apache.ranger.version>2.4.0</apache.ranger.version>
<gson.version>2.10.1</gson.version>
<apache.ranger.gson.version>2.10.1</apache.ranger.gson.version>
<scala.library.version>2.13.11</scala.library.version>
<avatica.version>1.23.0</avatica.version>
Expand Down

0 comments on commit bed59ac

Please sign in to comment.