add admin precedence to proxy role_map resolution to prevent downgrade

This commit is contained in:
Josh Hawkins
2026-02-08 07:05:32 -06:00
parent fe3677c7df
commit 82cb69526b
3 changed files with 32 additions and 4 deletions
@@ -166,6 +166,12 @@ In this example:
- If no mapping matches, Frigate falls back to `default_role` if configured.
- If `role_map` is not defined, Frigate assumes the role header directly contains `admin`, `viewer`, or a custom role name.
**Note on matching semantics:**
- Admin precedence: if the `admin` mapping matches , Frigate resolves the session to `admin` to avoid accidental downgrade
when a user belongs to multiple groups (for example both admin and viewer
groups).
#### Port Considerations
**Authenticated Port (8971)**