Skip to content

Commit

Permalink
Merge pull request #474 from splunk/develop
Browse files Browse the repository at this point in the history
Release/8.1.3
  • Loading branch information
alishamayor authored Mar 18, 2021
2 parents b2c342c + fb15e4f commit 040219e
Show file tree
Hide file tree
Showing 15 changed files with 70 additions and 33 deletions.
5 changes: 4 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,13 @@ jobs:
- run:
name: Scan images
command: |
mkdir -p trivy-results
for image in ./workspace_cache/*.tar; do
[ -e "$image" ] || continue
./trivy image --exit-code 0 --ignore-unfixed --severity "HIGH,CRITICAL" --no-progress -i "$image"
./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"
done
- store_test_results:
path: trivy-results

scan_images_anchore:
executor: anchore/anchore_engine
Expand Down
4 changes: 4 additions & 0 deletions .trivyignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Both of these are coming from this file, but it's not actually installed in the container
# /usr/lib/python3.7/site-packages/ansible_collections/netbox/netbox/poetry.lock
CVE-2020-36242
CVE-2020-14343
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ SPLUNK_ANSIBLE_BRANCH ?= develop
SPLUNK_COMPOSE ?= cluster_absolute_unit.yaml
# Set Splunk version/build parameters here to define downstream URLs and file names
SPLUNK_PRODUCT := splunk
SPLUNK_VERSION := 8.1.2
SPLUNK_BUILD := 545206cc9f70
SPLUNK_VERSION := 8.1.3
SPLUNK_BUILD := 63079c59e632
ifeq ($(shell arch), s390x)
SPLUNK_ARCH = s390x
else
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Welcome to the official Splunk repository of Dockerfiles for building Splunk Ent

----

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

----
Expand Down
3 changes: 2 additions & 1 deletion base/debian-10/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ LABEL maintainer="support@splunk.com"
ARG SCLOUD_URL
ENV SCLOUD_URL=${SCLOUD_URL} \
DEBIAN_FRONTEND=noninteractive \
PYTHON_VERSION=3.7.9
PYTHON_VERSION=3.7.10 \
PYTHON_MD5=0b19e34a6dabc4bf15fdcdf9e77e9856

COPY install.sh /install.sh
RUN /install.sh && rm -rf /install.sh
13 changes: 8 additions & 5 deletions base/debian-10/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ apt-get install -y --no-install-recommends curl sudo libgssapi-krb5-2 busybox pr
# Install Python and necessary packages
PY_SHORT=${PYTHON_VERSION%.*}
wget -O /tmp/python.tgz https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tgz
echo "$PYTHON_MD5 /tmp/python.tgz" | md5sum --check
mkdir -p /tmp/pyinstall
tar -xzC /tmp/pyinstall/ --strip-components=1 -f /tmp/python.tgz
rm /tmp/python.tgz
Expand All @@ -50,16 +51,18 @@ ln -sf /usr/bin/pip${PY_SHORT} /usr/bin/pip
# For ansible apt module
cd /tmp
apt-get download python3-apt=1.8.4.3
dpkg -x python3-apt_1.8.4.3_amd64.deb python3-apt
rm python3-apt_1.8.4.3_amd64.deb
ARCH=`arch`
PKG_ARCH=`dpkg --print-architecture`
dpkg -x python3-apt_1.8.4.3_${PKG_ARCH}.deb python3-apt
rm python3-apt_1.8.4.3_${PKG_ARCH}.deb
cp -r /tmp/python3-apt/usr/lib/python3/dist-packages/* /usr/lib/python${PY_SHORT}/site-packages/
cd /usr/lib/python${PY_SHORT}/site-packages/
cp apt_pkg.cpython-37m-x86_64-linux-gnu.so apt_pkg.so
cp apt_inst.cpython-37m-x86_64-linux-gnu.so apt_inst.so
cp apt_pkg.cpython-37m-${ARCH}-linux-gnu.so apt_pkg.so
cp apt_inst.cpython-37m-${ARCH}-linux-gnu.so apt_inst.so
rm -rf /tmp/python3-apt
# Install splunk-ansible dependencies
cd /
pip -q --no-cache-dir install six wheel requests ansible jmespath --upgrade
pip -q --no-cache-dir install six wheel requests cryptography==3.3.2 ansible jmespath --upgrade
# Remove tests packaged in python libs
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 '{}' \;
find /usr/lib/ -depth \( -type f -a -name '*.pyc' -o -name '*.pyo' -o -name '*.a' \) -exec rm -rf '{}' \;
Expand Down
3 changes: 2 additions & 1 deletion base/debian-9/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ LABEL maintainer="support@splunk.com"
ARG SCLOUD_URL
ENV SCLOUD_URL=${SCLOUD_URL} \
DEBIAN_FRONTEND=noninteractive \
PYTHON_VERSION=3.7.9
PYTHON_VERSION=3.7.10 \
PYTHON_MD5=0b19e34a6dabc4bf15fdcdf9e77e9856

COPY install.sh /install.sh
RUN /install.sh && rm -rf /install.sh
3 changes: 2 additions & 1 deletion base/debian-9/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ apt-get install -y --no-install-recommends curl sudo libgssapi-krb5-2 busybox pr
# Install Python and necessary packages
PY_SHORT=${PYTHON_VERSION%.*}
wget -O /tmp/python.tgz https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tgz
echo "$PYTHON_MD5 /tmp/python.tgz" | md5sum --check
mkdir -p /tmp/pyinstall
tar -xzC /tmp/pyinstall/ --strip-components=1 -f /tmp/python.tgz
rm /tmp/python.tgz
Expand All @@ -58,7 +59,7 @@ cp apt_inst.cpython-35m-x86_64-linux-gnu.so apt_inst.so
rm -rf /tmp/python3-apt
# Install splunk-ansible dependencies
cd /
pip -q --no-cache-dir install six wheel requests ansible jmespath --upgrade
pip -q --no-cache-dir install six wheel requests cryptography==3.3.2 ansible jmespath --upgrade
# Remove tests packaged in python libs
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 '{}' \;
find /usr/lib/ -depth \( -type f -a -name '*.pyc' -o -name '*.pyo' -o -name '*.a' \) -exec rm -rf '{}' \;
Expand Down
5 changes: 3 additions & 2 deletions base/redhat-8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# the container catalog moved from registry.access.redhat.com to registry.redhat.io
# So at some point before they deprecate the old registry we have to make sure that
# we have access to the new registry and change where we pull the ubi image from.
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.3-230
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.3-291

LABEL name="splunk" \
maintainer="support@splunk.com" \
Expand All @@ -27,7 +27,8 @@ LABEL name="splunk" \

ARG SCLOUD_URL
ENV SCLOUD_URL=${SCLOUD_URL} \
PYTHON_VERSION=3.7.9
PYTHON_VERSION=3.7.10 \
PYTHON_MD5=0b19e34a6dabc4bf15fdcdf9e77e9856

COPY install.sh /install.sh

Expand Down
5 changes: 3 additions & 2 deletions base/redhat-8/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@ export LANG=en_US.utf8
microdnf -y --nodocs install wget sudo shadow-utils procps tar tzdata make gcc \
openssl-devel bzip2-devel libffi-devel findutils
# Patch security updates
microdnf -y --nodocs update gnutls kernel-headers librepo libnghttp2
microdnf -y --nodocs update gnutls kernel-headers librepo libnghttp2 tzdata

# Install Python and necessary packages
PY_SHORT=${PYTHON_VERSION%.*}
wget -O /tmp/python.tgz https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tgz
echo "$PYTHON_MD5 /tmp/python.tgz" | md5sum --check
mkdir -p /tmp/pyinstall
tar -xzC /tmp/pyinstall/ --strip-components=1 -f /tmp/python.tgz
rm /tmp/python.tgz
Expand All @@ -45,7 +46,7 @@ ln -sf /usr/bin/python${PY_SHORT} /usr/bin/python
ln -sf /usr/bin/pip${PY_SHORT} /usr/bin/pip
# Install splunk-ansible dependencies
cd /
pip -q --no-cache-dir install six wheel requests ansible jmespath --upgrade
pip -q --no-cache-dir install six wheel requests cryptography==3.3.2 ansible jmespath --upgrade
# Remove tests packaged in python libs
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 '{}' \;
find /usr/lib/ -depth \( -type f -a -name '*.pyc' -o -name '*.pyo' -o -name '*.a' \) -exec rm -rf '{}' \;
Expand Down
20 changes: 19 additions & 1 deletion docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

----

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

----

## Navigation

* [8.1.3](#813)
* [8.1.2](#812)
* [8.1.1](#811)
* [8.1.0.1](#8101)
Expand Down Expand Up @@ -53,6 +54,23 @@ We will no longer be releasing Debian images on Docker Hub after Spring of 2021.

---

## 8.1.3

#### What's New?
* Releasing new images to support Splunk Enterprise release.

#### docker-splunk changes:
* Bumping Splunk version. For details, see [Fixed issues for 8.1.3](https://docs.splunk.com/Documentation/Splunk/8.1.3/ReleaseNotes/Fixedissues)
* Updated Python version to 3.7.10
* Bugfixes


#### splunk-ansible changes:
* Bugfixes
* Documentation and CI updates

---

## 8.1.2

#### What's New?
Expand Down
30 changes: 15 additions & 15 deletions docs/LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
Apache License
## Apache License

Version 2.0, January 2004
**Version 2.0, January 2004**

http://www.apache.org/licenses/
**<http://www.apache.org/licenses/>**

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

#### 1. Definitions.
**1. Definitions.**

"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
* **"License"** shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.

"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
* **"Licensor"** shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.

"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
* **"Legal Entity"** shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, **"control"** means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.

"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
* **"You"** (or **"Your"**) shall mean an individual or Legal Entity exercising permissions granted by this License.

"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
* **"Source"** form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.

"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
* **"Object"** form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.

"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
* **"Work"** shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).

"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
* **"Derivative Works"** shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.

"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
* **"Contribution"** shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, **"submitted"** means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as **"Not a Contribution."**

"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
* **"Contributor"** shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.

**2. Grant of Copyright License.** Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.

Expand All @@ -37,7 +37,7 @@ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
* You must give any other recipients of the Work or Derivative Works a copy of this License; and
* You must cause any modified files to carry prominent notices stating that You changed the files; and
* You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
* If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
* If the Work includes a **"NOTICE"** text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.

You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.

Expand Down
3 changes: 3 additions & 0 deletions docs/_config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
include: [ 'CONTRIBUTING.md', 'LICENSE.md' ]
relative_links:
enabled: true
collections: true
markdown: kramdown
kramdown:
parse_block_html: true
plugins:
- jemoji
1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,5 @@ The provisioning of these disjoint containers is handled by the [Splunk-Ansible]
* [Troubleshooting](TROUBLESHOOTING.md)
* [Contributing](CONTRIBUTING.md)
* [Support](SUPPORT.md)
* [Changelog](CHANGELOG.md)
* [License](LICENSE.md)
2 changes: 1 addition & 1 deletion test_scenarios/kubernetes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ show pods in the splunk name space with wide output - ```kubectl -n splunk get p

show your deployments - ```kubectl -n splunk get deployments```

sho your statefulsets - ``` kubectl -n splunk get statefulsets```
show your statefulsets - ``` kubectl -n splunk get statefulsets```

get service endpoints and external ip when using load balancers - ```kubectl -n splunk get svc -o wide```

Expand Down

0 comments on commit 040219e

Please sign in to comment.