diff --git a/Workbench/docker-compose.yml b/Workbench/docker-compose.yml
index 027e01d..42b7ee6 100644
--- a/Workbench/docker-compose.yml
+++ b/Workbench/docker-compose.yml
@@ -204,7 +204,11 @@ services:
- CREATE_NEW_DATABASE=if_needed
midpoint_server:
- build: ./midpoint_server/
+ build:
+ context: ./midpoint_server/
+ args:
+ - CSPHOSTNAME
+ command: /usr/local/bin/startup.sh
depends_on:
- midpoint_data
ports:
@@ -239,9 +243,6 @@ services:
- mp_shibboleth_sp_keys.jks
volumes:
- midpoint_home:/opt/midpoint/var
- - type: bind
- source: ./configs-and-secrets/midpoint/shibboleth/idp-metadata.xml
- target: /etc/shibboleth/idp-metadata.xml
- type: bind
source: ./configs-and-secrets/midpoint/httpd/host-cert.pem
target: /etc/pki/tls/certs/host-cert.pem
diff --git a/Workbench/midpoint_server/Dockerfile b/Workbench/midpoint_server/Dockerfile
index cd162ee..a9464b9 100644
--- a/Workbench/midpoint_server/Dockerfile
+++ b/Workbench/midpoint_server/Dockerfile
@@ -2,6 +2,9 @@ FROM tier/midpoint:latest
MAINTAINER info@evolveum.com
+ARG CSPHOSTNAME=localhost
+ENV CSPHOSTNAME=$CSPHOSTNAME
+
ENV MP_DIR /opt/midpoint
ENV MP_MEM_MAX 2048m
RUN mkdir ${MP_DIR}/csv
@@ -11,7 +14,9 @@ COPY container_files/mp-home/ ${MP_DIR}/var/
#Shibb SP
COPY container_files/shibboleth/ /etc/shibboleth/
-COPY container_files/httpd/shib.conf /etc/httpd/conf.d
+COPY container_files/httpd/00-shib.conf /etc/httpd/conf.modules.d/
+COPY container_files/httpd/midpoint-shib.conf /etc/httpd/conf.d/
+COPY container_files/httpd/vhosts.conf /etc/httpd/conf.d/vhosts/
#set dynamic hostname
COPY container_files/system/setservername.sh /usr/local/bin/
@@ -19,7 +24,7 @@ RUN chmod 755 /usr/local/bin/setservername.sh
#set hostname
RUN /usr/local/bin/setservername.sh
-COPY container_files/supervisor/supervisord.conf /etc/supervisor/
+#COPY container_files/supervisor/supervisord.conf /etc/supervisor/
#set shib auth in apache
-RUN mv /etc/httpd/conf.d/midpoint.conf /etc/httpd/conf.d/midpoint.conf.default && mv /etc/httpd/conf.d/midpoint.conf.auth.shibboleth /etc/httpd/conf.d/midpoint.conf
+#RUN mv /etc/httpd/conf.d/midpoint.conf /etc/httpd/conf.d/midpoint.conf.default && mv /etc/httpd/conf.d/midpoint.conf.auth.shibboleth /etc/httpd/conf.d/midpoint.conf
diff --git a/Workbench/midpoint_server/container_files/httpd/00-shib.conf b/Workbench/midpoint_server/container_files/httpd/00-shib.conf
new file mode 100644
index 0000000..04b785c
--- /dev/null
+++ b/Workbench/midpoint_server/container_files/httpd/00-shib.conf
@@ -0,0 +1,4 @@
+#
+# Load the Shibboleth module.
+#
+LoadModule mod_shib /usr/lib64/shibboleth/mod_shib_24.so
diff --git a/Workbench/midpoint_server/container_files/httpd/midpoint-shib.conf b/Workbench/midpoint_server/container_files/httpd/midpoint-shib.conf
new file mode 100644
index 0000000..ce72d1e
--- /dev/null
+++ b/Workbench/midpoint_server/container_files/httpd/midpoint-shib.conf
@@ -0,0 +1,15 @@
+
+ AuthType shibboleth
+ ShibRequestSetting requireSession 1
+ ShibRequireSession on
+ ShibUseHeaders On
+ require shibboleth
+
+
+
+ AuthType shibboleth
+ ShibRequestSetting requireSession false
+ ShibUseHeaders On
+ require shibboleth
+
+
diff --git a/Workbench/midpoint_server/container_files/httpd/shib.conf b/Workbench/midpoint_server/container_files/httpd/shib.conf
deleted file mode 100644
index e7bc2e1..0000000
--- a/Workbench/midpoint_server/container_files/httpd/shib.conf
+++ /dev/null
@@ -1,58 +0,0 @@
-# https://wiki.shibboleth.net/confluence/display/SHIB2/NativeSPApacheConfig
-
-# RPM installations on platforms with a conf.d directory will
-# result in this file being copied into that directory for you
-# and preserved across upgrades.
-
-# For non-RPM installs, you should copy the relevant contents of
-# this file to a configuration location you control.
-
-#
-# Load the Shibboleth module.
-#
-LoadModule mod_shib /usr/lib64/shibboleth/mod_shib_24.so
-
-#
-# Turn this on to support "require valid-user" rules from other
-# mod_authn_* modules, and use "require shib-session" for anonymous
-# session-based authorization in mod_shib.
-#
-ShibCompatValidUser Off
-
-#
-# Ensures handler will be accessible.
-#
-
- AuthType None
- Require all granted
- SetHandler shib
-
-
-#
-# Used for example style sheet in error templates.
-#
-
-
- AuthType None
- Require all granted
-
- Alias /shibboleth-sp/main.css /usr/share/shibboleth/main.css
-
-
-#
-# Configure the module for content.
-#
-# You MUST enable AuthType shibboleth for the module to process
-# any requests, and there MUST be a require command as well. To
-# enable Shibboleth but not specify any session/access requirements
-# use "require shibboleth".
-#
-
- AuthType shibboleth
- ShibRequestSetting requireSession 1
- require shibboleth
-
-
-#for midpoint
-RewriteRule "^/midpoint/$" "/midpoint/auth/shib" [R]
-
diff --git a/Workbench/midpoint_server/container_files/httpd/vhosts.conf b/Workbench/midpoint_server/container_files/httpd/vhosts.conf
new file mode 100644
index 0000000..7b9ffdd
--- /dev/null
+++ b/Workbench/midpoint_server/container_files/httpd/vhosts.conf
@@ -0,0 +1,3 @@
+#for midpoint
+RewriteRule "^/midpoint/$" "/midpoint/auth/shib" [R]
+
diff --git a/Workbench/midpoint_server/container_files/mp-home/post-initial-objects/securityPolicy/000-security-policy.xml b/Workbench/midpoint_server/container_files/mp-home/post-initial-objects/securityPolicy/000-security-policy.xml
index 83e7c3c..890d165 100644
--- a/Workbench/midpoint_server/container_files/mp-home/post-initial-objects/securityPolicy/000-security-policy.xml
+++ b/Workbench/midpoint_server/container_files/mp-home/post-initial-objects/securityPolicy/000-security-policy.xml
@@ -66,7 +66,7 @@
httpHeader
https://__CSPHOSTNAME__/MPSSO/Shibboleth.sso/Logout
- uid
+ REMOTE_USER
diff --git a/Workbench/midpoint_server/container_files/shibboleth/idp-metadata.xml b/Workbench/midpoint_server/container_files/shibboleth/idp-metadata.xml
new file mode 100644
index 0000000..8bf0814
--- /dev/null
+++ b/Workbench/midpoint_server/container_files/shibboleth/idp-metadata.xml
@@ -0,0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L3NoaWJib2xldGgwDQYJKoZIhvcNAQEL
+BQADggEBAFMfoOv+oISGjvamq7+Y4G7ep5vxlAPeK3RATYPYvAmyH946qZXh98ni
+QXyuqZW5P5eEt86toY45IwDU5r09SKwHughEe99iiEkxh0mb2qo84qX9/qcg+kyN
+jeLd/OSyolpUCEFNwOFcog7pj7Eer+6AHbwTn1Mjb5TBsKwtDMJsaxPvdj0u7M5r
+xL/wHkFhn1rCo2QiojzjSlV3yLTh49iTyhE3cG+RxaNKDCxhp0jSSLX1BW/ZoPA8
++PMJEA+Q0QbyRD8aJOHN5O8jGxCa/ZzcOnYVL6AsEXoDiY3vAUYh1FUonOWw0m9H
+p+tGUbGS2l873J5PrsbpeKEVR/IIoKo=
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Workbench/midpoint_server/container_files/supervisor/supervisord.conf b/Workbench/midpoint_server/container_files/supervisor/supervisord.conf
deleted file mode 100644
index 4a6b5fa..0000000
--- a/Workbench/midpoint_server/container_files/supervisor/supervisord.conf
+++ /dev/null
@@ -1,32 +0,0 @@
-[supervisord]
-logfile=/tmp/logsuperd
-logfile_maxbytes=0
-loglevel=error
-nodaemon=true
-user=root
-
-[program:httpd]
-command=/bin/bash -c "/usr/local/bin/start-httpd.sh"
-stdout_logfile=/tmp/loghttpd
-stdout_logfile_maxbytes=0
-redirect_stderr=true
-
-[program:midpoint]
-command=/bin/bash -c "/usr/local/bin/start-midpoint.sh"
-stdout_logfile=/dev/fd/2
-stdout_logfile_maxbytes=0
-redirect_stderr=true
-autorestart=false
-
-[program:shibboleth]
-command=/usr/sbin/shibd -f
-stdout_logfile=/dev/fd/2
-stdout_logfile_maxbytes=0
-redirect_stderr=true
-autorestart=false
-
-[program:crond]
-command=/usr/sbin/crond -n -i -m off
-stdout_logfile=/tmp/logcrond
-stdout_logfile_maxbytes=0
-redirect_stderr=true
\ No newline at end of file
diff --git a/Workbench/midpoint_server/container_files/system/setservername.sh b/Workbench/midpoint_server/container_files/system/setservername.sh
index 9f091a0..c699ea9 100644
--- a/Workbench/midpoint_server/container_files/system/setservername.sh
+++ b/Workbench/midpoint_server/container_files/system/setservername.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-files="/opt/midpoint/var/post-initial-objects/securityPolicy/000-security-policy.xml"
+files="/opt/midpoint/var/post-initial-objects/securityPolicy/000-security-policy.xml /etc/shibboleth/idp-metadata.xml"
for file in $files
do
diff --git a/Workbench/webproxy/Dockerfile b/Workbench/webproxy/Dockerfile
index 1db8713..46ec76f 100644
--- a/Workbench/webproxy/Dockerfile
+++ b/Workbench/webproxy/Dockerfile
@@ -25,3 +25,6 @@ RUN sed -i 's/TransferLog logs\/ssl_access_log/TransferLog \/tmp\/logpipe/g' /et
#set hostname
RUN /usr/local/bin/setservername.sh
+
+HEALTHCHECK --interval=1m --timeout=30s \
+ CMD curl -k -f -u csp:workbench https://127.0.0.1/Shibboleth.sso/Status || exit 1
diff --git a/Workbench/webproxy/container_files/httpd/proxy.conf b/Workbench/webproxy/container_files/httpd/proxy.conf
index 84c63d7..068f506 100644
--- a/Workbench/webproxy/container_files/httpd/proxy.conf
+++ b/Workbench/webproxy/container_files/httpd/proxy.conf
@@ -7,6 +7,14 @@ SSLProxyCheckPeerExpire off
ProxyPreserveHost On
AllowEncodedSlashes On
+
+ RequestHeader unset Authorization
+
+
+
+ RequestHeader unset Authorization
+
+
ProxyPass /midpoint https://midpoint-server/midpoint
ProxyPassReverse /midpoint https://midpoint-server/midpoint
ProxyPass /MPSSO https://midpoint-server/MPSSO
@@ -46,9 +54,9 @@ ProxyPass /registry https://comanage/registry
ProxyPass /registrySSO https://comanage/registrySSO
#ProxyPassReverse /comanage https://comanage/
-ProxyPass /wordpress http://wordpress_server/
+ProxyPass /wordpress http://wordpress_server/ nocanon
ProxyPassReverse /wordpress http://wordpress_server/
ProxyPass /wp-includes http://wordpress_server/wp-includes
ProxyPassReverse /wp-includes http://wordpress_server/wp-includes
ProxyPass /wp-content http://wordpress_server/wp-content
-ProxyPassReverse /wp-content http://wordpress_server/wp-content
\ No newline at end of file
+ProxyPassReverse /wp-content http://wordpress_server/wp-content