Skip to content

Commit 7b70be3

Browse files
Merge pull request #645 from splunk/develop
Release 9.2.0.1
2 parents 1f1a3ee + 5aa2c22 commit 7b70be3

File tree

3 files changed

+40
-2
lines changed

3 files changed

+40
-2
lines changed

Makefile

+2-2
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 := 9.2.0
11-
SPLUNK_BUILD := 1fff88043d5f
10+
SPLUNK_VERSION := 9.2.0.1
11+
SPLUNK_BUILD := d8ae995bf219
1212
ifeq ($(shell arch), s390x)
1313
SPLUNK_ARCH = s390x
1414
else

docs/CHANGELOG.md

+15
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Red Hat images will continue to be published.
1010

1111
## Navigation
1212

13+
* [9.2.0.1](#9201)
1314
* [9.2.0](#920)
1415
* [9.1.3](#913)
1516
* [9.1.2](#912)
@@ -99,6 +100,20 @@ Red Hat images will continue to be published.
99100

100101
---
101102

103+
## 9.2.0.1
104+
105+
#### What's New?
106+
* Releasing new images to support Splunk Enterprise release.
107+
108+
#### docker-splunk changes:
109+
* Bumping Splunk version. For details, see [Fixed issues for 9.2.0.1](https://docs.splunk.com/Documentation/Splunk/9.2.0.1/ReleaseNotes/Fixedissues#Splunk_Enterprise_9.2.0.1)
110+
111+
#### splunk-ansible changes:
112+
* Docs updated
113+
* Bugfixes
114+
115+
---
116+
102117
## 9.2.0
103118

104119
#### What's New?

splunk/common-files/entrypoint.sh

+23
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ watch_for_failure(){
6767
echo Ansible playbook complete, will begin streaming ${SPLUNK_TAIL_FILE}
6868
${RUN_AS_SPLUNK} tail -n 0 -f ${SPLUNK_TAIL_FILE} &
6969
fi
70+
if [[ "$DISABLE_ENTIRE_SHELL_ACCESS" == "true" ]]; then
71+
disable_entire_shell_access_for_container
72+
fi
7073
wait
7174
}
7275

@@ -90,6 +93,12 @@ start() {
9093
watch_for_failure
9194
}
9295

96+
secure_start() {
97+
start_and_exit
98+
export DISABLE_ENTIRE_SHELL_ACCESS="true"
99+
watch_for_failure
100+
}
101+
93102
configure_multisite() {
94103
prep_ansible
95104
ansible-playbook $ANSIBLE_EXTRA_FLAGS -i inventory/environ.py -l localhost multisite.yml
@@ -103,6 +112,16 @@ restart(){
103112
watch_for_failure
104113
}
105114

115+
disable_entire_shell_access_for_container() {
116+
if [[ "$DISABLE_ENTIRE_SHELL_ACCESS" == "true" ]]; then
117+
bash -c "sudo usermod -s /sbin/nologin splunk"
118+
bash -c "sudo usermod -s /sbin/nologin ansible"
119+
sudo rm /bin/sh
120+
sudo rm /bin/bash
121+
sudo ln -s /bin/busybox /bin/sh
122+
fi
123+
}
124+
106125
user_permission_change(){
107126
if [[ "$STEPDOWN_ANSIBLE_USER" == "true" ]]; then
108127
bash -c "sudo deluser -q ansible sudo"
@@ -175,6 +194,10 @@ case "$1" in
175194
tail -n 0 -f /etc/hosts &
176195
wait
177196
;;
197+
secure-start|secure-start-service)
198+
shift
199+
secure_start $@
200+
;;
178201
bash|splunk-bash)
179202
/bin/bash --init-file ${SPLUNK_HOME}/bin/setSplunkEnv
180203
;;

0 commit comments

Comments
 (0)