Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make IDP metadata a bit more configurable #295

Merged
merged 3 commits into from
Dec 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,12 @@ services:
context: ./idp
args:
TENANT: jhu
image: ghcr.io/eclipse-pass/idp:0.2.0@sha256:207262db39f30412303ad3c8cffeeb24e52eab91491b1885982f14cfa46078d9
image: ghcr.io/eclipse-pass/idp:0.2.0@sha256:fcc77f3f954b06bceaba55b26d9cea4f00d04c46b52fc3c3bd8533563d8cfbfc
container_name: idp
depends_on:
- ldap
environment:
- IDP_HOST=https://pass.local
- JETTY_MAX_HEAP=64m
- JETTY_BROWSER_SSL_KEYSTORE_PASSWORD=password
- JETTY_BACKCHANNEL_SSL_KEYSTORE_PASSWORD=password
Expand Down
2 changes: 1 addition & 1 deletion eclipse-pass.base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ services:
context: ./idp
args:
TENANT: jhu
image: ghcr.io/eclipse-pass/idp:0.2.0@sha256:a674b34a30b3546c978a57263aab76d871f5a5c4914f234dea73708e5bfbe2fe
image: ghcr.io/eclipse-pass/idp:0.2.0@sha256:fcc77f3f954b06bceaba55b26d9cea4f00d04c46b52fc3c3bd8533563d8cfbfc
container_name: idp
depends_on:
- ldap
Expand Down
4 changes: 4 additions & 0 deletions eclipse-pass.demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,9 @@ services:
pass-ui-public:
env_file: .eclipse-pass.demo_env

idp:
environment:
- IDP_HOST=https://demo.eclipse-pass.org

loader:
env_file: .eclipse-pass.demo_env
6 changes: 4 additions & 2 deletions eclipse-pass.nightly.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3.8'

# Manages the nightly.eclipse-pass.org deploy
# `docker-compose -f eclipse-pass.base.yml -f eclipse-pass.nightly.yml up`
version: '3.8'
Expand All @@ -21,5 +19,9 @@ services:
pass-ui-public:
env_file: .eclipse-pass.nightly_env

idp:
environment:
- IDP_HOST=https://nightly.eclipse-pass.org

loader:
env_file: .eclipse-pass.nightly_env
10 changes: 8 additions & 2 deletions idp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,15 @@ COPY common/shibboleth-idp/ /opt/shibboleth-idp/
COPY common/shib-jetty-base/ /opt/shib-jetty-base/

COPY ${TENANT}/shibboleth-idp/ /opt/shibboleth-idp/
COPY metadata/{IDP_ENV}/ /opt/shibboleth-idp/metadata/

COPY styling/main.css /opt/shibboleth-idp/webapp/css/main.css
COPY styling/dummylogo.png /opt/shibboleth-idp/webapp/images/dummylogo.png
COPY styling/login.vm /opt/shibboleth-idp/views/login.vm
COPY styling/error.vm /opt/shibboleth-idp/views/error.vm
COPY styling/error.vm /opt/shibboleth-idp/views/error.vm

# Update metadata for deploy target
COPY metadata/*.xml /opt/shibboleth-idp/metadata/

COPY start.sh /bin/

ENTRYPOINT ["start.sh"]
172 changes: 0 additions & 172 deletions idp/metadata/demo/idp-metadata.xml

This file was deleted.

34 changes: 0 additions & 34 deletions idp/metadata/demo/sp-metadata.xml

This file was deleted.

File renamed without changes.
File renamed without changes.
8 changes: 8 additions & 0 deletions idp/start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#! /bin/sh
echo "IDP_HOST: $IDP_HOST"
echo "Updating metadata files..."
sed -i "s#https://pass.local#$IDP_HOST#g" /opt/shibboleth-idp/metadata/idp-metadata.xml
sed -i "s#https://pass.local#$IDP_HOST#g" /opt/shibboleth-idp/metadata/sp-metadata.xml

echo "Starting Jetty"
/usr/local/bin/run-jetty.sh