copyparty idp-h-key: Caddy injects a header with a secret name (COPYPARTY_IDP_KEY); IdP headers ignored without it
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
@@ -237,6 +237,8 @@ Design: **Authentik authenticates once for the whole domain; Caddy authorizes pe
|
||||
role-id → group table). Bind it to `default-source-enrollment` **and** `default-source-authentication`
|
||||
(engine mode `all`, after `discord-guild-member`). From then on giving someone a Discord role gives them
|
||||
the matching access on next login; removing it removes it.
|
||||
copyparty additionally requires a header with a secret name that only Caddy adds (`idp-h-key`,
|
||||
`COPYPARTY_IDP_KEY` in `.env`), so identity headers cannot be forged even if copyparty were reached directly.
|
||||
5. Debug: `https://HOST/whoami` prints the username/groups headers exactly as the apps receive them.
|
||||
Group changes in Authentik apply on the next login — log out at `https://auth.HOST/` and back in.
|
||||
6. Test in a private window: `https://live.HOST/` → Discord login → portal; `https://bot.HOST/` → 403 unless
|
||||
|
||||
Reference in New Issue
Block a user