Files
computer-playbook/roles/web-app-jellyfin/templates/playwright.env.j2
kevinveenbirkenbachandClaude Opus 5 c94a0a0b5d test(mcp): ask the ten enabled surfaces the hostile question
Nine roles enabled an MCP surface without a browser-side spec, so nothing
ever asked what the endpoint answers a caller with no credential at all.
Lift gitea's assertion into two shared registrars and register them per
role, and give each role the MCP_SERVICE_ENABLED flag they gate on.

mcpEndpointUrl now takes the base URL rather than reading APP_BASE_URL
unconditionally: jellyfin and zammad export their own base variable, and
declaring APP_BASE_URL for them would un-skip the shared guest persona,
which collapses itself on that variable being absent.

The env-gate scanner follows require("./x") into the shared harness so a
gate declared there counts as consumed, and strips block comments first
so service-gating.js's own doc examples do not credit EMAIL, SSO and OICD
to every role that imports it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-01 16:06:19 +02:00

34 lines
1.9 KiB
Bash

ADMIN_NATIVE_PASSWORD={{ JELLYFIN_ADMIN_PASSWORD | dotenv_quote }}
ADMIN_USERNAME={{ lookup('users', 'administrator').username | dotenv_quote }}
BIBER_PASSWORD={{ lookup('users', 'biber').password | dotenv_quote }}
BIBER_USERNAME={{ lookup('users', 'biber').username | dotenv_quote }}
CANONICAL_DOMAIN={{ lookup('domain', application_id) | dotenv_quote }}
# nocheck: playwright-service-gate - CSS injection is asserted by the central CSP helper, not a per-persona surface
CSS_SERVICE_ENABLED={{ lookup('config', application_id, 'services.css.enabled') | string | lower }}
JELLYFIN_BASE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
LDAP_SERVICE_ENABLED={{ JELLYFIN_LDAP_ENABLED | string | lower }}
# nocheck: playwright-service-gate - universal-logout redirect is exercised by the persona logout step; covered by web-svc-logout integration tests
LOGOUT_SERVICE_ENABLED={{ lookup('config', application_id, 'services.logout.enabled') | string | lower }}
# nocheck: playwright-service-gate - Matomo tracking is an injected snippet, not a per-persona surface; covered by Matomo integration tests
MATOMO_SERVICE_ENABLED={{ lookup('config', application_id, 'services.matomo.enabled') | string | lower }}
MCP_SERVICE_ENABLED={{ lookup('config', application_id, 'mcp.enabled') | string | lower }}
OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }}
# nocheck: persona-block-rationale — a Jellyfin account binds to exactly one auth provider, so biber's login journey is owned by the per-addon specs that know which provider is live: files/playwright/addons/sso-authentication.spec.js (OIDC) and addons/ldap-authentication.spec.js (LDAP-only matrix variant). The generic persona cannot pick between them and would duplicate or contradict the addon coverage (see README "Persona contract opt-outs").
PERSONA_BIBER_BLOCKED=true
SSO_SERVICE_ENABLED={{ JELLYFIN_SSO_ENABLED | string | lower }}
{{ lookup('addon_env_flags', application_id) }}