roles policy: only revoke memberships it granted itself (manual adds survive); track in user attributes
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
@@ -264,7 +264,8 @@ Design: **Authentik authenticates once for the whole domain; Caddy authorizes pe
|
||||
`discord-roles-to-groups` from `authentik/discord-roles-to-groups.py` (fill in the server ID and the
|
||||
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.
|
||||
the matching access on next login; removing it removes it. Memberships added by hand in Authentik are left
|
||||
alone: the policy only revokes what it granted itself (tracked in the user attribute `discord_role_groups`).
|
||||
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.
|
||||
Logout: copyparty's logout link, the live portal's "Sign out" and the dock's "sign out" go through
|
||||
|
||||
Reference in New Issue
Block a user