Skip to content

Commit 1397cb2

Browse files
authored
Merge branch 'main' into local-code-mounting
2 parents b706c4f + 5c832c7 commit 1397cb2

File tree

2 files changed

+59
-5
lines changed

2 files changed

+59
-5
lines changed

stepup/README.md

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,42 @@ docker compose exec middleware /var/www/html/bin/console doctrine:migrations:mi
3636
Then the webauthn db
3737
```
3838
docker compose exec webauthn /var/www/html/bin/console doctrine:migrations:migrate --env=prod
39+
3940
```
4041

4142
Then you will need to provision the middleware config:
4243
```
43-
sh middleware/middleware-push-config.sh
44-
sh middleware/middleware-push-whitelist.sh
45-
sh middleware/middleware-push-whitelist.sh
44+
cd middleware
45+
sh middleware-push-config.sh
46+
sh middleware-push-whitelist.sh
47+
sh middleware-push-institution.sh
4648
```
4749
Then, bootstrap the SRAA. For this, you will need to have a Yubikey. Replace Yubikey_ID with the number that is printed on your yubikey. It should be 8 characters. If it is less, prepend it with 0's
4850
```
49-
docker compose exec middleware /var/www/html/bin/console urn:collab:person:dev.openconext.local:admin dev.openconext.local "Your Name" Your@email nl_NL Yubikey_ID
51+
docker compose exec middleware /var/www/html/bin/console middleware:bootstrap:identity-with-yubikey urn:collab:person:dev.openconext.local:admin dev.openconext.local "Your Name" Your@email nl_NL Yubikey_ID
52+
```
53+
54+
You also need a Yubikey API key for your Yubikey to work. You can get it here:
55+
https://upgrade.yubico.com/getapikey/
56+
Create the following file "stepup/gateway/surfnet_yubikey.yaml" which should contain:
57+
58+
```
59+
surfnet_yubikey_api_client:
60+
credentials:
61+
client_id: 'YOUR_CLIENT_ID'
62+
client_secret: 'YOUR_SECRET'
5063
```
5164

65+
After this, the cache of the gateway needs to be cleared:
66+
```
67+
docker compose exec gateway rm -rf var/cache/prod
68+
69+
```
70+
71+
Mailcatcher is included. You can view the email by going to http://localhost:1080
72+
73+
A SimpleSAMLPHP sp is included. It can be accessed at https://ssp.dev.openconext.local/simplesaml/sp.php
74+
5275

5376

5477

stepup/docker-compose.yml

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,18 @@ services:
2121
openconextdev:
2222
volumes:
2323
- ${PWD}/dbschema:/docker-entrypoint-initdb.d
24+
- stepup_mariadb:/var/lib/mysql
2425

2526
webauthn:
2627
image: ghcr.io/openconext/stepup-webauthn/stepup-webauthn:prod
2728
ports:
2829
- 8080:8080
2930
environment:
3031
DATABASE_URL: "mysql://webauthn_user:webauthn_secret@mariadb:3306/webauthn"
32+
APP_ENV: prod
3133
volumes:
3234
- /dev/log:/dev/log
33-
- ${PWD}/webauthn:/config
35+
- ${PWD}/:/config
3436
networks:
3537
openconextdev:
3638

@@ -43,6 +45,8 @@ services:
4345

4446
middleware:
4547
image: ghcr.io/openconext/stepup-middleware/stepup-middleware:prod
48+
environment:
49+
- APP_ENV=prod
4650
networks:
4751
openconextdev:
4852
volumes:
@@ -51,6 +55,8 @@ services:
5155

5256
gateway:
5357
image: ghcr.io/openconext/stepup-gateway/stepup-gateway:prod
58+
environment:
59+
- APP_ENV=prod
5460
networks:
5561
openconextdev:
5662
volumes:
@@ -60,6 +66,8 @@ services:
6066

6167
ra:
6268
image: ghcr.io/openconext/stepup-ra/stepup-ra:prod
69+
environment:
70+
- APP_ENV=prod
6371
networks:
6472
openconextdev:
6573
volumes:
@@ -68,13 +76,36 @@ services:
6876

6977
selfservice:
7078
image: ghcr.io/openconext/stepup-selfservice/stepup-selfservice:prod
79+
environment:
80+
- APP_ENV=prod
7181
networks:
7282
openconextdev:
7383
volumes:
7484
- ${PWD}/:/config
7585
- /dev/log:/dev/log
7686

87+
demogssp:
88+
image: ghcr.io/openconext/stepup-gssp-example/stepup-gssp-example:prod
89+
environment:
90+
- APP_ENV=prod
91+
networks:
92+
openconextdev:
93+
volumes:
94+
- ${PWD}/:/config
95+
- /dev/log:/dev/log
96+
97+
mailcatcher:
98+
image: sj26/mailcatcher:latest
99+
ports:
100+
- 1080:1080
101+
command:
102+
'--ip 0.0.0.0 --smtp-port 25'
103+
networks:
104+
openconextdev:
105+
77106
networks:
78107
openconextdev:
79108
driver: bridge
80109

110+
volumes:
111+
stepup_mariadb:

0 commit comments

Comments
 (0)