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

Update Docker configs #303

Merged
merged 14 commits into from
Dec 7, 2023
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
57 changes: 57 additions & 0 deletions .github/workflows/build-push-docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: build-push-docker-image

on:
push:
branches: feature/docker_configs
workflow_dispatch:

jobs:
build-push-docker-image:
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Get the latest release
id: release
uses: robinraju/release-downloader@v1.7
with:
latest: true
fileName: "*.tar.bz2"

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push the Production image
uses: docker/build-push-action@v4
with:
context: .
file: docker/Dockerfile.prod
platforms: linux/amd64,linux/arm64
push: true
tags: |
ghcr.io/openconext/stepup-selfservice/stepup-selfservice:prod
ghcr.io/openconext/stepup-selfservice/stepup-selfservice:${{ github.sha }}
ghcr.io/openconext/stepup-selfservice/stepup-selfservice:${{ steps.release.outputs.tag_name }}

- name: Build and push the Development image
uses: docker/build-push-action@v4
with:
context: .
file: docker/Dockerfile.dev
platforms: linux/amd64,linux/arm64
push: true
tags: |
ghcr.io/openconext/stepup-selfservice/stepup-selfservice:dev
8 changes: 8 additions & 0 deletions .github/workflows/tag-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,11 @@ jobs:
with:
release_id: ${{ steps.create_release.outputs.id }}

after_build:
needs: build
runs-on: ubuntu-latest
steps:
- name: Trigger Docker container build
uses: benc-uk/workflow-dispatch@v1
with:
workflow: build-push-docker-image.yml
59 changes: 34 additions & 25 deletions config/legacy/parameters.yaml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -9,38 +9,39 @@ parameters:
debug_toolbar: true
debug_redirects: false

gateway_api_url: https://gw-dev.stepup.coin.surf.net/
gateway_api_url: https://gateway.dev.openconext.local/
gateway_api_username: ss
gateway_api_password: ss
gateway_api_password: sa_secret

middleware_credentials_username: 'FOR CI ONLY, REPLACE WITH ACTUAL VALUE'
middleware_credentials_password: 'FOR CI ONLY, REPLACE WITH ACTUAL VALUE'
middleware_url_command_api: 'FOR CI ONLY, REPLACE WITH ACTUAL FULL URL http://etc/'
middleware_url_api: 'FOR CI ONLY, REPLACE WITH ACTUAL FULL URL http://etc/'
middleware_credentials_username: ss
middleware_credentials_password: sa_secret
middleware_url_command_api: https://middleware.dev.openconext.local/command
middleware_url_api: https://middleware.dev.openconext.local/

sms_originator: SURFStepup
sms_originator: OpenConext
sms_otp_expiry_interval: 900 # 15 minutes
sms_maximum_otp_requests: 3

saml_sp_publickey:
saml_sp_privatekey:

saml_metadata_publickey:
saml_metadata_privatekey:
saml_sp_publickey: /config/selfservice/selfservice_saml_sp.crt
saml_sp_privatekey: /config/selfservice/selfservice_saml_sp.key
saml_metadata_publickey: /config/selfservice/selfservice_saml_sp.crt
saml_metadata_privatekey: /config/selfservice/selfservice_saml_sp.key

saml_remote_idp_entity_id:
saml_remote_idp_sso_url:
saml_remote_idp_certificate: 'FOR CI ONLY, REPLACE WITH ACTUAL VALUE'
saml_remote_idp_entity_id: https://gateway.dev.openconext.local/authentication/metadata
saml_remote_idp_sso_url: https://gateway.dev.openconext.local/authentication/single-sign-on
saml_remote_idp_certificate: 'MIIDwTCCAqmgAwIBAgIUYuSUugwc4J4NyW9WGqYJ/liwM4owDQYJKoZIhvcNAQELBQAwcDELMAkGA1UEBhMCTkwxEDAOBgNVBAgMB1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bnAGpUQmge8nxSQlN8RPwlvygVM4LVMF9qP9YxloTH0xVNwN4noZUhfMNsKoJ7Hg5Xulaok8oCqmzEiSroEg='

asset_version: 1

second_factor_test_idp_entity_id: ~
second_factor_test_idp_sso_url: ~
second_factor_test_idp_certificate: 'FOR CI ONLY, REPLACE WITH ACTUAL VALUE'
second_factor_test_idp_entity_id: https://gateway.dev.openconext.local/authentication/metadata
second_factor_test_idp_sso_url: https://gateway.dev.openconext.local/authentication/single-sign-on
second_factor_test_idp_certificate: 'MIIDwTCCAqmgAwIBAgIUYuSUugwc4J4NyW9WGqYJ/liwM4owDQYJKoZIhvcNAQELBQAwcDELMAkGA1UEBhMCTkwxEDAOBgNVBAgMB1V0cmVjaHQxEDAOBgNVBAcMB1V0cmVjaHQxJzAlBgNVBAoMHkRldmVsb3BtZW50IERvY2tlciBlbnZpcm9ubWVudDEUMBIGA1UEAwwLR2F0ZXdheSBJRFAwHhcNMjMwNTE3MTIxNTEyWhcNMzMwNTE0MTIxNTEyWjBwMQswCQYDVQQGEwJOTDEQMA4GA1UECAwHVXRyZWNodDEQMA4GA1UEBwwHVXRyZWNodDEnMCUGA1UECgweRGV2ZWxvcG1lbnQgRG9ja2VyIGVudmlyb25tZW50MRQwEgYDVQQDDAtHYXRld2F5IElEUDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM2ulQVs5WpbJOAf7Cv/VPDTJqbWHVdUxAmdwZJlcNTRKNFVp4aJzQ3dpiyiGghI5odnzU0/BWBoHZFNYPU/OFr/gzn6iJGxL63L9+mFgE8PR9HpkV5TaRnr21+nZ0EXWjDZk9Px0enERicCItTeQzAUJeA0A9miIcK5IKIz/zSBSR3c802SGD/VelUqY7Z2/UJM97cT92L+4Fz+4zhxxoThbPbrR0CweiROIt82grdwg7zf0+b62MOuVtqFh0yPLRAFfLc4LjHuxFUdUvOHVta7x74dwdmHikqfujM10XN+sNns3LDJde2yPWchU6ktq7cjgbYfIW/vzVzafP1Jk40CAwEAAaNTMFEwHQYDVR0OBBYEFGYn6LWRDZa7+YryUncIlwJB2VorMB8GA1UdIwQYMBaAFGYn6LWRDZa7+YryUncIlwJB2VorMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQELBQADggEBAJ57lcOF6PWWW56mS2s5gKFImtfRFzlfiyHsF14L7+nQ5NjfOhpU0wRpnTjK91KP0wCwlxzGFXR8yfqfBFJryIV7aDdYPH/RIkwVaNBI0fsD/ozlYb18seieDEGLvQtTlrmc0UNHtWz6FW3L2geM3ENaqpOATl1Ywp4EPML7Dh0CbhhyM8PnPCEsdclouIeP5/B9Swfk3omXehof6bkFbntqA03msFBiW50twkfKeKULcJGXo667hto27KNxZUauqtPbnAGpUQmge8nxSQlN8RPwlvygVM4LVMF9qP9YxloTH0xVNwN4noZUhfMNsKoJ7Hg5Xulaok8oCqmzEiSroEg='

stepup_loa_loa1: https://gateway.tld/authentication/loa1
stepup_loa_loa2: https://gateway.tld/authentication/loa2
stepup_loa_loa3: https://gateway.tld/authentication/loa3
stepup_loa_self_asserted: https://gateway.tld/authentication/loa-self-asserted
stepup_loa_loa1: http://dev.openconext.local/assurance/loa1
stepup_loa_loa2: http://dev.openconext.local/assurance/loa2
stepup_loa_loa3: http://dev.openconext.local/assurance/loa3
stepup_loa_self_asserted: 'http://dev.openconext.local/assurance/loa1.5'

logout_redirect_url:
nl_NL: https://www.surf.nl/over-surf/werkmaatschappijen/surfnet
Expand All @@ -49,14 +50,22 @@ parameters:
enabled_second_factors:
- sms
- yubikey
- tiqr
- demo_gssp
- webauthn
- azuremfa
enabled_generic_second_factors:
biometric:
loa: 3
azuremfa:
loa: 2
tiqr:
loa: 2
webauthn:
loa: 3
demo_gssp:
loa: 3

irma_app_android_url: https://play.google.com/store/apps/details?id=org.irmacard.cardemu&hl=en
irma_app_ios_url: https://itunes.apple.com/us/app/irma-authentication/id1294092994?mt=8
tiqr_app_android_url: https://play.google.com/store/apps/details?id=org.tiqr.authenticator&hl=en
tiqr_app_ios_url: https://itunes.apple.com/us/app/tiqr/id430838214?mt=8&ls=1

session_max_absolute_lifetime: 3600 # 1 hours * 60 minutes * 60 seconds
session_max_relative_lifetime: 600 # 10 minutes * 60 seconds
Expand Down
Loading