Skip to content

Fix dev logout redirect default and stale :test image trigger - #559

Merged
kayjoosten merged 2 commits into
mainfrom
fix/dev-logout-redirect-local
Sep 17, 2026
Merged

kayjoosten merged 2 commits into
mainfrom
fix/dev-logout-redirect-local

Conversation

@kayjoosten

@kayjoosten kayjoosten commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Problem 1: dev logout redirect points at production

config/openconext/parameters.yaml.dist is the local-development default config. Every other URL in it (gateway, middleware, SAML endpoints) points at *.dev.openconext.local, but logout_redirect_url was still hardcoded to the public www.surf.nl production pages.

This inconsistency forces OpenConext-devconf's stepup docker-compose stack to bind-mount a full replacement parameters.yaml just to override this one key, duplicating the whole file and needing to stay in sync with it. See OpenConext/OpenConext-devconf#98.

Fix: point logout_redirect_url (both en_GB and nl_NL) at the local test SP (ssp.dev.openconext.local), consistent with the rest of the file. Once released in a test/dev image, devconf can drop its selfservice/parameters.yaml override and volume mount entirely, matching how gateway/middleware/ra already work with no devconf-side config file.

Problem 2: :test image never rebuilds on merge to main

build-push-test-docker-image.yml triggers on push: branches: feature/build-and-publish-test-container, a branch that is already merged. It can therefore only run via manual workflow_dispatch and never rebuilds on a normal merge to main — the same stale-trigger bug already found and fixed in OpenConext/Stepup-Gateway#666.

Fix: trigger the workflow on push to main instead, so the :test tag stays in sync with the default branch going forward (otherwise problem 1's fix above would never actually reach the published :test image).

config/openconext/parameters.yaml.dist is the local-development default
config: every other URL in it (gateway, middleware, SAML endpoints) points
at *.dev.openconext.local, but logout_redirect_url was still hardcoded to
the public www.surf.nl production pages.

This forced OpenConext-devconf's stepup docker-compose stack to bind-mount
a full 95-line replacement parameters.yaml just to override this one key,
duplicating and needing to stay in sync with this dist file. Fixing the
default here lets devconf drop that override, matching how gateway/
middleware/ra already work with no devconf-side config file.

en_GB and nl_NL now both redirect to the local test SP
(ssp.dev.openconext.local), consistent with the rest of this file.
The build-push-test-docker-image workflow's trigger was left pointing at
feature/build-and-publish-test-container, a branch that is already merged.
Since then it can only run via manual workflow_dispatch and never rebuilds
on a normal merge to main, so the :test image silently goes stale (the
same issue found and fixed in OpenConext/Stepup-Gateway#666).

Trigger the workflow on push to main instead, so the :test tag stays in
sync with the default branch going forward.
@kayjoosten kayjoosten changed the title Fix dev logout redirect default to point at local test SP Fix dev logout redirect default and stale :test image trigger Sep 17, 2026
@kayjoosten
kayjoosten merged commit 03835ba into main Sep 17, 2026
1 check passed
@kayjoosten
kayjoosten deleted the fix/dev-logout-redirect-local branch September 17, 2026 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants