Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Fix Metastore CVEs reported by security team #2703

Merged
merged 4 commits into from
Dec 28, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
feat: remove dependencies causing CVE issues
sumandas0 committed Dec 21, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit dbfc7b3588a1bac0e9917b5ed2d08c7d5b40287f
2 changes: 1 addition & 1 deletion .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -25,7 +25,7 @@ on:
- beta
- development
- master
- lineageondemand
- plt-474-cve-fix

jobs:
build:
12 changes: 0 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -34,7 +34,6 @@ RUN apt-get update \
netcat \
curl \
&& cd / \
&& mkdir /opt/ranger-atlas-plugin \
&& export MAVEN_OPTS="-Xms2g -Xmx2g" \
&& export JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64" \
&& tar -xzvf /apache-atlas-3.0.0-SNAPSHOT-server.tar.gz -C /opt \
@@ -57,22 +56,11 @@ COPY atlas-hub/repair_index.py /opt/apache-atlas/bin/
RUN chmod +x /opt/apache-atlas/bin/repair_index.py

COPY atlas-hub/atlas_start.py.patch atlas-hub/atlas_config.py.patch /opt/apache-atlas/bin/
COPY atlas-hub/pre-conf/ranger/lib/ /opt/apache-atlas/libext/
COPY atlas-hub/pre-conf/ranger/install/conf.templates/enable/ /opt/apache-atlas/conf/
COPY atlas-hub/pre-conf/atlas-log4j.xml /opt/apache-atlas/conf/
COPY atlas-hub/pre-conf/atlas-log4j2.xml /opt/apache-atlas/conf/
COPY atlas-hub/pre-conf/ranger/ /opt/ranger-atlas-plugin/
COPY atlas-hub/env_change.sh /

RUN curl https://repo1.maven.org/maven2/org/jolokia/jolokia-jvm/1.6.2/jolokia-jvm-1.6.2-agent.jar -o /opt/apache-atlas/libext/jolokia-jvm-agent.jar

RUN cd /opt/apache-atlas/bin \
&& sed "s~ATLAS_INSTALL_DIR~/opt/apache-atlas~g" /opt/ranger-atlas-plugin/install.properties > /tmp/install.properties \
&& cp /tmp/install.properties /opt/ranger-atlas-plugin/install.properties \
&& chmod +x /env_change.sh
# && patch -b -f < atlas_start.py.patch \
# && patch -b -f < atlas_config.py.patch \

RUN cd /opt/apache-atlas/bin \
&& ./atlas_start.py -setup || true

6 changes: 0 additions & 6 deletions addons/hbase-bridge/pom.xml
Original file line number Diff line number Diff line change
@@ -214,12 +214,6 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-auth</artifactId>
<version>${hadoop.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.atlas</groupId>
<artifactId>atlas-client-v2</artifactId>
6 changes: 0 additions & 6 deletions addons/kafka-bridge/pom.xml
Original file line number Diff line number Diff line change
@@ -131,12 +131,6 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-auth</artifactId>
<version>${hadoop.version}</version>
<scope>compile</scope>
</dependency>
</dependencies>

<profiles>
24 changes: 0 additions & 24 deletions atlas-hub/env_change.sh

This file was deleted.

Loading