Skip to content

Commit 040219e

Browse files
authored
Merge pull request #474 from splunk/develop
Release/8.1.3
2 parents b2c342c + fb15e4f commit 040219e

File tree

15 files changed

+70
-33
lines changed

15 files changed

+70
-33
lines changed

.circleci/config.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,13 @@ jobs:
8383
- run:
8484
name: Scan images
8585
command: |
86+
mkdir -p trivy-results
8687
for image in ./workspace_cache/*.tar; do
8788
[ -e "$image" ] || continue
88-
./trivy image --exit-code 0 --ignore-unfixed --severity "HIGH,CRITICAL" --no-progress -i "$image"
89+
./trivy image --exit-code 1 --format template --template "@contrib/junit.tpl" -o trivy-results/`basename $image`.xml --ignore-unfixed --severity "HIGH,CRITICAL" --no-progress -i "$image"
8990
done
91+
- store_test_results:
92+
path: trivy-results
9093

9194
scan_images_anchore:
9295
executor: anchore/anchore_engine

.trivyignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Both of these are coming from this file, but it's not actually installed in the container
2+
# /usr/lib/python3.7/site-packages/ansible_collections/netbox/netbox/poetry.lock
3+
CVE-2020-36242
4+
CVE-2020-14343

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ SPLUNK_ANSIBLE_BRANCH ?= develop
77
SPLUNK_COMPOSE ?= cluster_absolute_unit.yaml
88
# Set Splunk version/build parameters here to define downstream URLs and file names
99
SPLUNK_PRODUCT := splunk
10-
SPLUNK_VERSION := 8.1.2
11-
SPLUNK_BUILD := 545206cc9f70
10+
SPLUNK_VERSION := 8.1.3
11+
SPLUNK_BUILD := 63079c59e632
1212
ifeq ($(shell arch), s390x)
1313
SPLUNK_ARCH = s390x
1414
else

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Welcome to the official Splunk repository of Dockerfiles for building Splunk Ent
88

99
----
1010

11-
> :warning: **DEPRECATION NOTICE**
11+
> :warning: **DEPRECATION NOTICE**
1212
We will no longer be releasing Debian images on Docker Hub after Spring of 2021.
1313

1414
----

base/debian-10/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ LABEL maintainer="[email protected]"
1818
ARG SCLOUD_URL
1919
ENV SCLOUD_URL=${SCLOUD_URL} \
2020
DEBIAN_FRONTEND=noninteractive \
21-
PYTHON_VERSION=3.7.9
21+
PYTHON_VERSION=3.7.10 \
22+
PYTHON_MD5=0b19e34a6dabc4bf15fdcdf9e77e9856
2223

2324
COPY install.sh /install.sh
2425
RUN /install.sh && rm -rf /install.sh

base/debian-10/install.sh

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ apt-get install -y --no-install-recommends curl sudo libgssapi-krb5-2 busybox pr
3838
# Install Python and necessary packages
3939
PY_SHORT=${PYTHON_VERSION%.*}
4040
wget -O /tmp/python.tgz https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tgz
41+
echo "$PYTHON_MD5 /tmp/python.tgz" | md5sum --check
4142
mkdir -p /tmp/pyinstall
4243
tar -xzC /tmp/pyinstall/ --strip-components=1 -f /tmp/python.tgz
4344
rm /tmp/python.tgz
@@ -50,16 +51,18 @@ ln -sf /usr/bin/pip${PY_SHORT} /usr/bin/pip
5051
# For ansible apt module
5152
cd /tmp
5253
apt-get download python3-apt=1.8.4.3
53-
dpkg -x python3-apt_1.8.4.3_amd64.deb python3-apt
54-
rm python3-apt_1.8.4.3_amd64.deb
54+
ARCH=`arch`
55+
PKG_ARCH=`dpkg --print-architecture`
56+
dpkg -x python3-apt_1.8.4.3_${PKG_ARCH}.deb python3-apt
57+
rm python3-apt_1.8.4.3_${PKG_ARCH}.deb
5558
cp -r /tmp/python3-apt/usr/lib/python3/dist-packages/* /usr/lib/python${PY_SHORT}/site-packages/
5659
cd /usr/lib/python${PY_SHORT}/site-packages/
57-
cp apt_pkg.cpython-37m-x86_64-linux-gnu.so apt_pkg.so
58-
cp apt_inst.cpython-37m-x86_64-linux-gnu.so apt_inst.so
60+
cp apt_pkg.cpython-37m-${ARCH}-linux-gnu.so apt_pkg.so
61+
cp apt_inst.cpython-37m-${ARCH}-linux-gnu.so apt_inst.so
5962
rm -rf /tmp/python3-apt
6063
# Install splunk-ansible dependencies
6164
cd /
62-
pip -q --no-cache-dir install six wheel requests ansible jmespath --upgrade
65+
pip -q --no-cache-dir install six wheel requests cryptography==3.3.2 ansible jmespath --upgrade
6366
# Remove tests packaged in python libs
6467
find /usr/lib/ -depth \( -type d -a -not -wholename '*/ansible/plugins/test' -a \( -name test -o -name tests -o -name idle_test \) \) -exec rm -rf '{}' \;
6568
find /usr/lib/ -depth \( -type f -a -name '*.pyc' -o -name '*.pyo' -o -name '*.a' \) -exec rm -rf '{}' \;

base/debian-9/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ LABEL maintainer="[email protected]"
1818
ARG SCLOUD_URL
1919
ENV SCLOUD_URL=${SCLOUD_URL} \
2020
DEBIAN_FRONTEND=noninteractive \
21-
PYTHON_VERSION=3.7.9
21+
PYTHON_VERSION=3.7.10 \
22+
PYTHON_MD5=0b19e34a6dabc4bf15fdcdf9e77e9856
2223

2324
COPY install.sh /install.sh
2425
RUN /install.sh && rm -rf /install.sh

base/debian-9/install.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ apt-get install -y --no-install-recommends curl sudo libgssapi-krb5-2 busybox pr
3737
# Install Python and necessary packages
3838
PY_SHORT=${PYTHON_VERSION%.*}
3939
wget -O /tmp/python.tgz https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tgz
40+
echo "$PYTHON_MD5 /tmp/python.tgz" | md5sum --check
4041
mkdir -p /tmp/pyinstall
4142
tar -xzC /tmp/pyinstall/ --strip-components=1 -f /tmp/python.tgz
4243
rm /tmp/python.tgz
@@ -58,7 +59,7 @@ cp apt_inst.cpython-35m-x86_64-linux-gnu.so apt_inst.so
5859
rm -rf /tmp/python3-apt
5960
# Install splunk-ansible dependencies
6061
cd /
61-
pip -q --no-cache-dir install six wheel requests ansible jmespath --upgrade
62+
pip -q --no-cache-dir install six wheel requests cryptography==3.3.2 ansible jmespath --upgrade
6263
# Remove tests packaged in python libs
6364
find /usr/lib/ -depth \( -type d -a -not -wholename '*/ansible/plugins/test' -a \( -name test -o -name tests -o -name idle_test \) \) -exec rm -rf '{}' \;
6465
find /usr/lib/ -depth \( -type f -a -name '*.pyc' -o -name '*.pyo' -o -name '*.a' \) -exec rm -rf '{}' \;

base/redhat-8/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# the container catalog moved from registry.access.redhat.com to registry.redhat.io
1717
# So at some point before they deprecate the old registry we have to make sure that
1818
# we have access to the new registry and change where we pull the ubi image from.
19-
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.3-230
19+
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.3-291
2020

2121
LABEL name="splunk" \
2222
maintainer="[email protected]" \
@@ -27,7 +27,8 @@ LABEL name="splunk" \
2727

2828
ARG SCLOUD_URL
2929
ENV SCLOUD_URL=${SCLOUD_URL} \
30-
PYTHON_VERSION=3.7.9
30+
PYTHON_VERSION=3.7.10 \
31+
PYTHON_MD5=0b19e34a6dabc4bf15fdcdf9e77e9856
3132

3233
COPY install.sh /install.sh
3334

base/redhat-8/install.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,12 @@ export LANG=en_US.utf8
2929
microdnf -y --nodocs install wget sudo shadow-utils procps tar tzdata make gcc \
3030
openssl-devel bzip2-devel libffi-devel findutils
3131
# Patch security updates
32-
microdnf -y --nodocs update gnutls kernel-headers librepo libnghttp2
32+
microdnf -y --nodocs update gnutls kernel-headers librepo libnghttp2 tzdata
3333

3434
# Install Python and necessary packages
3535
PY_SHORT=${PYTHON_VERSION%.*}
3636
wget -O /tmp/python.tgz https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tgz
37+
echo "$PYTHON_MD5 /tmp/python.tgz" | md5sum --check
3738
mkdir -p /tmp/pyinstall
3839
tar -xzC /tmp/pyinstall/ --strip-components=1 -f /tmp/python.tgz
3940
rm /tmp/python.tgz
@@ -45,7 +46,7 @@ ln -sf /usr/bin/python${PY_SHORT} /usr/bin/python
4546
ln -sf /usr/bin/pip${PY_SHORT} /usr/bin/pip
4647
# Install splunk-ansible dependencies
4748
cd /
48-
pip -q --no-cache-dir install six wheel requests ansible jmespath --upgrade
49+
pip -q --no-cache-dir install six wheel requests cryptography==3.3.2 ansible jmespath --upgrade
4950
# Remove tests packaged in python libs
5051
find /usr/lib/ -depth \( -type d -a -not -wholename '*/ansible/plugins/test' -a \( -name test -o -name tests -o -name idle_test \) \) -exec rm -rf '{}' \;
5152
find /usr/lib/ -depth \( -type f -a -name '*.pyc' -o -name '*.pyo' -o -name '*.a' \) -exec rm -rf '{}' \;

0 commit comments

Comments
 (0)