diff --git a/Workbench/configs-and-secrets/wordpress/httpd/shib.conf b/Workbench/configs-and-secrets/wordpress/httpd/shib.conf index a2273aa..069a29b 100644 --- a/Workbench/configs-and-secrets/wordpress/httpd/shib.conf +++ b/Workbench/configs-and-secrets/wordpress/httpd/shib.conf @@ -22,7 +22,7 @@ ShibCompatValidUser Off # # Ensures handler will be accessible. # - + AuthType None Require all granted SetHandler shib diff --git a/Workbench/configs-and-secrets/wordpress/shibboleth/shibboleth2.xml b/Workbench/configs-and-secrets/wordpress/shibboleth/shibboleth2.xml index ccff4d2..9efdc25 100644 --- a/Workbench/configs-and-secrets/wordpress/shibboleth/shibboleth2.xml +++ b/Workbench/configs-and-secrets/wordpress/shibboleth/shibboleth2.xml @@ -24,7 +24,7 @@ cookieProps to "https" for SSL-only sites. Note that while we default checkAddress to "false", this makes an assertion stolen in transit easier for attackers to misuse. --> - diff --git a/Workbench/docker-compose.yml b/Workbench/docker-compose.yml index ad63daa..42b7ee6 100644 --- a/Workbench/docker-compose.yml +++ b/Workbench/docker-compose.yml @@ -293,7 +293,6 @@ services: wordpress_server: build: ./wordpress_server/ - container_name: wordpress_server networks: - net depends_on: @@ -301,6 +300,11 @@ services: command: bash -c 'if [ ! -s /var/www/html/wp-config.php ]; then while ! nc -z wordpress_data 3306 ; do echo waiting for mysql on wordpress_data to start; sleep 3; done; /root/wp core download --allow-root && sleep 10 && /root/wp config create --dbname=wordpress --dbuser=wordpress --dbpass=54y6RxN7GfC7aes3 --dbhost=wordpress_data --allow-root; sleep 3 && /root/wp core install --url="http://localhost/" --title="wordpress" --admin_user="admin" --admin_password="54y6RxN7GfC7aes3" --admin_email="sentrifugo.container@gmail.com" --allow-root && /root/wp --allow-root rewrite structure "/%postname%" --hard --debug; /root/wp rewrite flush --hard --debug --allow-root && sed -i "s/<\/IfModule>/RewriteCond \%{HTTP:Authorization} \^\(\.\*\)\nRewriteRule \^\(\.\*\) - [E=HTTP_AUTHORIZATION:\%1]\n<\/IfModule>\nSetEnvIf Authorization "\(\.\*\)" HTTP_AUTHORIZATION=\$$1/" /var/www/html/.htaccess && /root/sed.sh && /root/wp plugin install jwt-authentication-for-wp-rest-api --activate --allow-root && /root/wp plugin install wp-rest-api-log --activate --allow-root && /root/wp plugin install shibboleth --activate --allow-root; fi; /usr/local/bin/startup.sh;' ports: - "80:80" + healthcheck: + test: curl -s wordpress_server:80 + interval: 30s + timeout: 30s + retries: 3 devices: - "/dev/tty:/dev/tty" volumes: @@ -320,7 +324,6 @@ services: wordpress_data: build: ./wordpress_data/ - container_name: wordpress_data networks: - net volumes: diff --git a/Workbench/midpoint_server/container_files/mp-home/post-initial-objects/roles/200-metarole-role-editor.xml b/Workbench/midpoint_server/container_files/mp-home/post-initial-objects/roles/200-metarole-role-editor.xml deleted file mode 100644 index 7d6a18c..0000000 --- a/Workbench/midpoint_server/container_files/mp-home/post-initial-objects/roles/200-metarole-role-editor.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - Editor - - 2020-07-20T14:36:12.953Z - 2020-07-20T14:36:12.972Z - http://midpoint.evolveum.com/xml/ns/public/gui/channels-3#init - 2020-07-20T15:14:49.494Z - - - - http://midpoint.evolveum.com/xml/ns/public/gui/channels-3#user - - - 2019-03-29T17:20:56.764Z - - - add - c:RoleType - - - com.evolveum.midpoint.model.impl.lens.ChangeExecutor.executeDelta - success - 1000000000000003970 - - Editor - - success - - - - http://midpoint.evolveum.com/xml/ns/public/gui/channels-3#user - - 0 - - - enabled - enabled - 2020-07-20T14:36:12.967Z - - Wordpress Editor - - - - - - - ri:roles - - strong - - $containingObject/name - - - editor - - - - - 2 - - - - \ No newline at end of file diff --git a/Workbench/wordpress_server/Dockerfile b/Workbench/wordpress_server/Dockerfile index 67f25b9..374255b 100644 --- a/Workbench/wordpress_server/Dockerfile +++ b/Workbench/wordpress_server/Dockerfile @@ -1,4 +1,4 @@ -FROM tier/shibboleth_sp:3.0.4_03122019 +FROM tier/shibboleth_sp:latest VOLUME /var/www/html