mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-10 10:35:51 +00:00
0c3f475dea
Configuring PROXY_AUTH_ROLE_HEADER without PROXY_AUTH_ADMIN_ROLE now gates admin access on an exact-case match against the "admin" default. That closes the fail-open, but it also means an IdP sending "Admins", "Admin", or "authentik Admins" grants nobody admin — and a proxy-auth-only deployment has no local credential to fall back on. The change is recoverable by setting PROXY_AUTH_ADMIN_ROLE and restarting, but only if the operator can tell that is what happened. Log a startup warning naming the header, the effective admin role, the case-sensitivity, and both ways out. The warning is scoped to deployments that actually configured a role header; defaulting the value with no role header is inert and stays at info. The troubleshooting entry in docs/PROXY_AUTH.md now leads with the exact-match rule, since that is where a locked-out operator looks first.