Proxy sign-in trusts a header any container on Tower can send #41
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The Cloudflare Access sign-in believed
Cf-Access-Authenticated-User-Emailfrom any address intrusted_proxies. On Tower that is the Docker gateway (192.168.16.1), so any container on the host could send the header and be anyone, the admin included. Cloudflare's signedCf-Access-Jwt-Assertionwas not checked. Listed as a known gap in CLAUDE.md and docs/sso.md.Fixed in
c1187a7, released in 0.8.3. With[web] access_teamandaccess_audset, a proxied request must also carry aCf-Access-Jwt-Assertionthat verifies against Cloudflare's keys (RS256, this app's audience, the team's issuer, unexpired), and the name comes from its email claim. Turned on in production on 2026-09-19 (access_team rays-sdf1.cloudflareaccess.com). Checked: a container sending only the email header gets 401, where it used to be signed in as the admin; signing in at ipodderx.sdf1.net through Authentik still works. docs/sso.md updated inb81d44c.