From 6048a5bce0dedf4f009b2a4d86e873da89eaa3bc Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Thu, 14 May 2026 16:52:33 +0200 Subject: [PATCH] fix(web-app-{taiga,mattermost,friendica}): point APP_BASE_URL at the role's own surface MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The three playwright.env.j2 templates rendered `APP_BASE_URL=lookup('tls', 'web-app-dashboard', 'url.base')` — a stray copy-paste from the dashboard-tile flow that put the persona helper on the dashboard login instead of the role's own surface. After the dashboard's Keycloak round-trip the URL stayed on dashboard.infinito.example, the canonical-domain poll (`taiga.kanban.*`, `mattermost.*`, `social.*`) timed out at 60s and the universal-logout test failed with `Expected redirect back to .infinito.example after Keycloak login`. Point each `APP_BASE_URL` at the role's own canonical URL (the project-wide convention used by baserow, bluesky, bookwyrm, akaunting, hugo, jenkins, mig, moodle, …). The persona helper now lands on the role's surface, the OIDC chain redirects to that role's Keycloak client, the assertion passes, and the in-app logout step has a real authenticated surface to operate on. --- roles/web-app-friendica/templates/playwright.env.j2 | 2 +- roles/web-app-mattermost/templates/playwright.env.j2 | 2 +- roles/web-app-taiga/templates/playwright.env.j2 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/web-app-friendica/templates/playwright.env.j2 b/roles/web-app-friendica/templates/playwright.env.j2 index 8a9a39c4f1..e4a793b795 100644 --- a/roles/web-app-friendica/templates/playwright.env.j2 +++ b/roles/web-app-friendica/templates/playwright.env.j2 @@ -1,4 +1,4 @@ -APP_BASE_URL={{ lookup('tls', 'web-app-dashboard', 'url.base') }} +APP_BASE_URL={{ lookup('tls', application_id, 'url.base') }} FRIENDICA_BASE_URL={{ lookup('tls', 'web-app-friendica', 'url.base') | dotenv_quote }} ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }} ADMIN_PASSWORD={{ lookup('users', 'administrator').password | dotenv_quote }} diff --git a/roles/web-app-mattermost/templates/playwright.env.j2 b/roles/web-app-mattermost/templates/playwright.env.j2 index e609d212db..8e9c465719 100644 --- a/roles/web-app-mattermost/templates/playwright.env.j2 +++ b/roles/web-app-mattermost/templates/playwright.env.j2 @@ -1,4 +1,4 @@ -APP_BASE_URL={{ lookup('tls', 'web-app-dashboard', 'url.base') }} +APP_BASE_URL={{ lookup('tls', application_id, 'url.base') }} OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }} MATTERMOST_BASE_URL={{ lookup('tls', 'web-app-mattermost', 'url.base') | dotenv_quote }} ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }} diff --git a/roles/web-app-taiga/templates/playwright.env.j2 b/roles/web-app-taiga/templates/playwright.env.j2 index acfa0e326d..6d0e2e75e9 100644 --- a/roles/web-app-taiga/templates/playwright.env.j2 +++ b/roles/web-app-taiga/templates/playwright.env.j2 @@ -1,4 +1,4 @@ -APP_BASE_URL={{ lookup('tls', 'web-app-dashboard', 'url.base') }} +APP_BASE_URL={{ lookup('tls', application_id, 'url.base') }} OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }} OIDC_BUTTON_TEXT={{ OIDC.BUTTON_TEXT | dotenv_quote }} TAIGA_BASE_URL={{ lookup('tls', 'web-app-taiga', 'url.base') | dotenv_quote }}