Skip to content

Commit b347df8

Browse files
authored
Merge pull request #96 from ot4i/11.0.0.6.1
Updates for 11.0.0.6.1 release
2 parents 3b5c657 + a10d80a commit b347df8

File tree

9 files changed

+84
-43
lines changed

9 files changed

+84
-43
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Change log
22

3+
## 11.0.0.6.1 (2019-11-20)
4+
5+
**Breaking changes**:
6+
* None
7+
8+
**Other changes**:
9+
* Updated kubectl to version v1.16.0
10+
* Updated MQ to version 9.1.3.0-r3
11+
* Added support for hostname and port overrides when routes are defined
12+
* Created ACE roles for five different access levels: admin, operator, viewer, editor, and audit
13+
314
## 11.0.0.6 (2019-10-30)
415

516
**Breaking changes**:

README.md

Lines changed: 38 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -199,25 +199,55 @@ You can mount the following file structure at `/home/aceuser/initial-config`. Mi
199199
- The truststore file that will be created for these files needs a password. You must set a truststore password using the environment variable `ACE_TRUSTSTORE_PASSWORD`
200200
- You can place multiple files, each with a different file name/alias.
201201
- `/home/aceuser/initial-config/webusers`
202-
- A text file called either `admin-users.txt` or `operator-users.txt`. It contains a list of users to be created as admin/operator users using the command `mqsiwebuseradmin`. These users will have READ, WRITE and EXECUTE access on the Integration Server. The file has the following format:
202+
- A text file called `admin-users.txt`. It contains a list of users to be created as `admin` users using the command `mqsiwebuseradmin`. These users will have READ, WRITE and EXECUTE access on the Integration Server. The file has the following format:
203203
```
204204
# Lines starting with a "#" are ignored
205-
# Each line should specify the <adminUser> <password>, separated by a single space
205+
# Each line should specify the <user> <password>, separated by a single space
206206
# Each user will have "READ", "WRITE" and "EXECUTE" access on the integration server
207207
# Each line will be processed by calling...
208-
# mqsiwebuseradmin -w /home/aceuser/ace-server -c -u <adminUser> -a <password> -r admin
208+
# mqsiwebuseradmin -w /home/aceuser/ace-server -c -u <user> -a <password> -r admin
209209
admin1 password1
210210
admin2 password2
211211
```
212-
- A text file called `viewer-users.txt`, `editor-users.txt`, `audit-users.txt` . It contains a list of users to be created as viewer/editor/auditor users using the command `mqsiwebuseradmin`. These users will have READ access on the Integration Server. The file has the following format:
212+
- A text file called `operator-users.txt`. It contains a list of users to be created as `operator` users using the command `mqsiwebuseradmin`. These users will have READ and EXECUTE access on the Integration Server. The file has the following format:
213213
```
214214
# Lines starting with a "#" are ignored
215-
# Each line should specify the <adminUser> <password>, separated by a single space
215+
# Each line should specify the <user> <password>, separated by a single space
216+
# Each user will have "READ" and "EXECUTE" access on the integration server
217+
# Each line will be processed by calling...
218+
# mqsiwebuseradmin -w /home/aceuser/ace-server -c -u <user> -a <password> -r operator
219+
operator1 password1
220+
operator2 password2
221+
```
222+
- A text file called `editor-users.txt`. It contains a list of users to be created as `editor` users using the command `mqsiwebuseradmin`. These users will have READ and WRITE access on the Integration Server. The file has the following format:
223+
```
224+
# Lines starting with a "#" are ignored
225+
# Each line should specify the <user> <password>, separated by a single space
226+
# Each user will have "READ" and "WRITE" access on the integration server
227+
# Each line will be processed by calling...
228+
# mqsiwebuseradmin -w /home/aceuser/ace-server -c -u <user> -a <password> -r editor
229+
editor1 password1
230+
editor2 password2
231+
```
232+
- A text file called `audit-users.txt`. It contains a list of users to be created as `audit` users using the command `mqsiwebuseradmin`. These users will have READ access on the Integration Server. The file has the following format:
233+
```
234+
# Lines starting with a "#" are ignored
235+
# Each line should specify the <user> <password>, separated by a single space
216236
# Each user will have "READ" access on the integration server
217237
# Each line will be processed by calling...
218-
# mqsiwebuseradmin -w /home/aceuser/ace-server -c -u <adminUser> -a <password> -r viewer
219-
admin1 password1
220-
admin2 password2
238+
# mqsiwebuseradmin -w /home/aceuser/ace-server -c -u <user> -a <password> -r audit
239+
audit1 password1
240+
audit2 password2
241+
```
242+
- A text file called `viewer-users.txt`. It contains a list of users to be created as `viewer` users using the command `mqsiwebuseradmin`. These users will have READ access on the Integration Server. The file has the following format:
243+
```
244+
# Lines starting with a "#" are ignored
245+
# Each line should specify the <user> <password>, separated by a single space
246+
# Each user will have "READ" access on the integration server
247+
# Each line will be processed by calling...
248+
# mqsiwebuseradmin -w /home/aceuser/ace-server -c -u <user> -a <password> -r viewer
249+
viewer1 password1
250+
viewer2 password2
221251
```
222252
- `/home/aceuser/initial-config/mqsc`
223253
- A text file called `config.mqsc`. It contains a list of mqsc commands which will be processed on start by `runmqsc` command. Further details can be found in the [MQ Knowledge Center](https://www.ibm.com/support/knowledgecenter/en/SSFKSJ_9.1.0/com.ibm.mq.adm.doc/q020670_.htm)

ace_config_webusers.sh

Lines changed: 20 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,27 @@ log "Handling webusers configuration"
1818

1919
ADMINUSERSFILE=/home/aceuser/initial-config/webusers/admin-users.txt
2020
OPERATORUSERSFILE=/home/aceuser/initial-config/webusers/operator-users.txt
21-
VIEWERUSERSFILE=/home/aceuser/initial-config/webusers/viewer-users.txt
2221
EDITORUSERSFILE=/home/aceuser/initial-config/webusers/editor-users.txt
2322
AUDITUSERSFILE=/home/aceuser/initial-config/webusers/audit-users.txt
24-
DASHBOARDUSERSFILE=/home/aceuser/initial-config/webusers/dashboard-users.txt
23+
VIEWERUSERSFILE=/home/aceuser/initial-config/webusers/viewer-users.txt
2524

26-
if [ -s $ADMINUSERSFILE ] || [ -s $OPERATORUSERSFILE ] || [ -s $VIEWERUSERSFILE ] || [ -s $EDITORUSERSFILE ] || [ -s $AUDITUSERSFILE ] || [ -s $DASHBOARDUSERSFILE ]; then
25+
if [ -s $ADMINUSERSFILE ] || [ -s $OPERATORUSERSFILE ] || [ -s $EDITORUSERSFILE ] || [ -s $AUDITUSERSFILE ] || [ -s $VIEWERUSERSFILE ]; then
2726
OUTPUT=$(mqsichangeauthmode -w /home/aceuser/ace-server -s active -m file 2>&1)
2827
logAndExitIfError $? "${OUTPUT}"
2928

3029
OUTPUT=$(mqsichangefileauth -w /home/aceuser/ace-server -r admin -p all+ 2>&1)
3130
logAndExitIfError $? "${OUTPUT}"
3231

33-
OUTPUT=$(mqsichangefileauth -w /home/aceuser/ace-server -r viewer -p read+ 2>&1)
32+
OUTPUT=$(mqsichangefileauth -w /home/aceuser/ace-server -r operator -p read+,write-,execute+ 2>&1)
33+
logAndExitIfError $? "${OUTPUT}"
34+
35+
OUTPUT=$(mqsichangefileauth -w /home/aceuser/ace-server -r editor -p read+,write+,execute- 2>&1)
36+
logAndExitIfError $? "${OUTPUT}"
37+
38+
OUTPUT=$(mqsichangefileauth -w /home/aceuser/ace-server -r audit -p read+,write-,execute- 2>&1)
39+
logAndExitIfError $? "${OUTPUT}"
40+
41+
OUTPUT=$(mqsichangefileauth -w /home/aceuser/ace-server -r viewer -p read+,write-,execute- 2>&1)
3442
logAndExitIfError $? "${OUTPUT}"
3543

3644
OLDIFS=${IFS}
@@ -58,24 +66,9 @@ if [ -s $ADMINUSERSFILE ] || [ -s $OPERATORUSERSFILE ] || [ -s $VIEWERUSERSFILE
5866
fi
5967
IFS=${OLDIFS}
6068
fields=($line)
61-
log "Creating admin user ${fields[0]}"
62-
63-
OUTPUT=$(mqsiwebuseradmin -w /home/aceuser/ace-server -c -u ${fields[0]} -a ${fields[1]} -r admin 2>&1)
64-
logAndExitIfError $? "${OUTPUT}"
65-
done
66-
fi
67-
68-
if [ -s $VIEWERUSERSFILE ]; then
69-
IFS=$'\n'
70-
for line in $(cat $VIEWERUSERSFILE | tr -d '\r'); do
71-
if [[ $line =~ ^\# ]]; then
72-
continue
73-
fi
74-
IFS=${OLDIFS}
75-
fields=($line)
76-
log "Creating viewer user ${fields[0]}"
69+
log "Creating operator user ${fields[0]}"
7770

78-
OUTPUT=$(mqsiwebuseradmin -w /home/aceuser/ace-server -c -u ${fields[0]} -a ${fields[1]} -r viewer 2>&1)
71+
OUTPUT=$(mqsiwebuseradmin -w /home/aceuser/ace-server -c -u ${fields[0]} -a ${fields[1]} -r operator 2>&1)
7972
logAndExitIfError $? "${OUTPUT}"
8073
done
8174
fi
@@ -88,9 +81,9 @@ if [ -s $ADMINUSERSFILE ] || [ -s $OPERATORUSERSFILE ] || [ -s $VIEWERUSERSFILE
8881
fi
8982
IFS=${OLDIFS}
9083
fields=($line)
91-
log "Creating viewer user ${fields[0]}"
84+
log "Creating editor user ${fields[0]}"
9285

93-
OUTPUT=$(mqsiwebuseradmin -w /home/aceuser/ace-server -c -u ${fields[0]} -a ${fields[1]} -r viewer 2>&1)
86+
OUTPUT=$(mqsiwebuseradmin -w /home/aceuser/ace-server -c -u ${fields[0]} -a ${fields[1]} -r editor 2>&1)
9487
logAndExitIfError $? "${OUTPUT}"
9588
done
9689
fi
@@ -103,16 +96,16 @@ if [ -s $ADMINUSERSFILE ] || [ -s $OPERATORUSERSFILE ] || [ -s $VIEWERUSERSFILE
10396
fi
10497
IFS=${OLDIFS}
10598
fields=($line)
106-
log "Creating viewer user ${fields[0]}"
99+
log "Creating audit user ${fields[0]}"
107100

108-
OUTPUT=$(mqsiwebuseradmin -w /home/aceuser/ace-server -c -u ${fields[0]} -a ${fields[1]} -r viewer 2>&1)
101+
OUTPUT=$(mqsiwebuseradmin -w /home/aceuser/ace-server -c -u ${fields[0]} -a ${fields[1]} -r audit 2>&1)
109102
logAndExitIfError $? "${OUTPUT}"
110103
done
111104
fi
112105

113-
if [ -s $DASHBOARDUSERSFILE ]; then
106+
if [ -s $VIEWERUSERSFILE ]; then
114107
IFS=$'\n'
115-
for line in $(cat $DASHBOARDUSERSFILE | tr -d '\r'); do
108+
for line in $(cat $VIEWERUSERSFILE | tr -d '\r'); do
116109
if [[ $line =~ ^\# ]]; then
117110
continue
118111
fi

ace_discover_port_overrides.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
#!/bin/bash -ex
2-
3-
if ! [[ -z "${KUBERNETES_PORT}" ]] && ! [[ -z "${SERVICE_NAME}" ]] ; then
2+
if ! [[ -z "${ACE_HTTP_ROUTE_NAME}" ]] && [[ "${ACE_ENDPOINT_TYPE}" = 'http' ]]; then
3+
echo "export MQSI_OVERRIDE_HTTP_PORT=80" >> /home/aceuser/portOverrides
4+
echo "export MQSI_OVERRIDE_HOSTNAME=$(kubectl get route ${ACE_HTTP_ROUTE_NAME} -o jsonpath=\"{.status.ingress[0].host}\")" >> /home/aceuser/portOverrides
5+
elif ! [[ -z "${ACE_HTTPS_ROUTE_NAME}" ]] && [[ "${ACE_ENDPOINT_TYPE}" = 'https' ]]; then
6+
echo "export MQSI_OVERRIDE_HTTPS_PORT=443" >> /home/aceuser/portOverrides
7+
echo "export MQSI_OVERRIDE_HOSTNAME=$(kubectl get route ${ACE_HTTPS_ROUTE_NAME} -o jsonpath=\"{.status.ingress[0].host}\")" >> /home/aceuser/portOverrides
8+
elif ! [[ -z "${KUBERNETES_PORT}" ]] && ! [[ -z "${SERVICE_NAME}" ]] ; then
49
echo "export MQSI_OVERRIDE_HTTP_PORT=$(kubectl get svc ${SERVICE_NAME} -o jsonpath=\"{.spec.ports[1].nodePort}\")" >> /home/aceuser/portOverrides
510
echo "export MQSI_OVERRIDE_HTTPS_PORT=$(kubectl get svc ${SERVICE_NAME} -o jsonpath=\"{.spec.ports[2].nodePort}\")" >> /home/aceuser/portOverrides
611
fi

ace_integration_server.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ if [ -s /home/aceuser/ace-server/odbc.ini ]; then
1515
export ODBCINI=/home/aceuser/ace-server/odbc.ini
1616
fi
1717

18-
if ! [[ -z "${KUBERNETES_PORT}" ]] && ! [[ -z "${SERVICE_NAME}" ]] ; then
18+
if ! [[ -z "${ACE_HTTP_ROUTE_NAME}" ]] || ! [[ -z "${ACE_HTTPS_ROUTE_NAME}" ]] ; then
19+
. /home/aceuser/portOverrides
20+
elif ! [[ -z "${KUBERNETES_PORT}" ]] && ! [[ -z "${SERVICE_NAME}" ]] ; then
1921
. /home/aceuser/portOverrides
2022
fi
2123

experimental/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ To run the sample after building:
1212

1313
docker run -e LICENSE=accept --rm -ti ace-sample-alpine
1414

15-
and then curl http://IP_address_of_container:7800/test should return '{"data":"a string from ACE"}'
15+
and then curl http://<container IP>:7800/test should return '{"data":"a string from ACE"}'

ubi/Dockerfile.acemq

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG BASE_IMAGE=ibmcom/mq:9.1.3.0
1+
ARG BASE_IMAGE=ibmcom/mq:9.1.3.0-r3
22

33
FROM golang:1.10.3 as builder
44

@@ -69,7 +69,7 @@ COPY --from=builder /go/src/github.com/ot4i/ace-docker/chkace* /usr/local/bin/
6969
# Copy in script files
7070
COPY *.sh /usr/local/bin/
7171

72-
ADD https://storage.googleapis.com/kubernetes-release/release/v1.12.9/bin/linux/amd64/kubectl /usr/local/bin/kubectl
72+
ADD https://storage.googleapis.com/kubernetes-release/release/v1.16.0/bin/linux/amd64/kubectl /usr/local/bin/kubectl
7373
RUN chmod +x /usr/local/bin/kubectl && \
7474
/usr/local/bin/kubectl version --client
7575

ubi/Dockerfile.aceonly

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ COPY --from=builder /go/src/github.com/ot4i/ace-docker/chkace* /usr/local/bin/
6363
# Copy in script files
6464
COPY *.sh /usr/local/bin/
6565

66-
ADD https://storage.googleapis.com/kubernetes-release/release/v1.12.9/bin/linux/amd64/kubectl /usr/local/bin/kubectl
66+
ADD https://storage.googleapis.com/kubernetes-release/release/v1.16.0/bin/linux/amd64/kubectl /usr/local/bin/kubectl
6767
RUN chmod +x /usr/local/bin/kubectl && \
6868
/usr/local/bin/kubectl version --client
6969

ubi/Dockerfile.mqclient

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ ARG BASE_IMAGE=ibmcom/ace
33
FROM $BASE_IMAGE
44

55
# The MQ packages to install - see install-mq.sh for default value
6-
ARG MQ_URL="https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/messaging/mqadv/mqadv_dev912_linux_x86-64.tar.gz"
6+
ARG MQ_URL="https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/messaging/mqadv/mqadv_dev913_linux_x86-64.tar.gz"
77
ARG MQ_URL_USER
88
ARG MQ_URL_PASS
99
ARG MQ_PACKAGES="MQSeriesRuntime*.rpm MQSeriesJava*.rpm MQSeriesGSKit*.rpm MQSeriesClient*.rpm"

0 commit comments

Comments
 (0)