From 7151a0d7dfcb73cb451ee2db893a6cc204d9f2db Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Tue, 16 Jun 2026 10:58:35 +0200 Subject: [PATCH] fix(web-app-baserow): block the administrator persona when SSO is disabled Baserow's admin is SSO-gated; with SSO off there is no provisioned native frontend admin (first run forces /signup), so the persona can never authenticate and the no-SSO variant timed out. Gate PERSONA_ADMINISTRATOR_BLOCKED on services.sso.enabled, mirroring the biber gate. Co-Authored-By: Claude Opus 4.8 --- roles/web-app-baserow/templates/playwright.env.j2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/web-app-baserow/templates/playwright.env.j2 b/roles/web-app-baserow/templates/playwright.env.j2 index d468b1d3ed..4dee899ca3 100644 --- a/roles/web-app-baserow/templates/playwright.env.j2 +++ b/roles/web-app-baserow/templates/playwright.env.j2 @@ -27,7 +27,8 @@ NODE_TLS_REJECT_UNAUTHORIZED=0 OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }} -PERSONA_ADMINISTRATOR_BLOCKED=false +# Baserow admin is SSO-gated; with SSO off there is no native frontend admin (first run forces /signup), so block the persona. +PERSONA_ADMINISTRATOR_BLOCKED={{ 'false' if (lookup('config', application_id, 'services.sso.enabled') | bool) else 'true' }} # Baserow is admin-RBAC gated here; non-admin persona access stops at oauth2-proxy. PERSONA_BIBER_BLOCKED=true