blakeblackshear.frigate/frigate/test
Josh Hawkins ed1e3a7c9a
Enhance user roles to limit camera access (#20024)
* update config for roles and add validator

* ensure admin and viewer are never overridden

* add class method to user to retrieve all allowed cameras

* enforce config roles in auth api endpoints

* add camera access api dependency functions

* protect review endpoints

* protect preview endpoints

* rename param name for better fastapi injection matching

* remove unneeded

* protect export endpoints

* protect event endpoints

* protect media endpoints

* update auth hook for allowed cameras

* update default app view

* ensure anonymous user always returns all cameras

* limit cameras in explore

* cameras is already a list

* limit cameras in review/history

* limit cameras in live view

* limit cameras in camera groups

* only show face library and classification in sidebar for admin

* remove check in delete reviews

since admin role is required, no need to check camera access. fixes failing test

* pass request with camera access for tests

* more async

* camera access tests

* fix proxy auth tests

* allowed cameras for review tests

* combine event tests and refactor for camera access

* fix post validation for roles

* don't limit roles in create user dialog

* fix triggers endpoints

no need to run require camera access dep since the required role is admin

* fix type

* create and edit role dialogs

* delete role dialog

* fix role change dialog

* update settings view for roles

* i18n changes

* minor spacing tweaks

* docs

* use badges and camera name label component

* clarify docs

* display all cameras badge for admin and viewer

* i18n fix

* use validator to prevent reserved and empty roles from being assigned

* split users and roles into separate tabs in settings

* tweak docs

* clarify docs

* change icon

* don't memoize roles

always recalculate on component render
2025-09-12 05:19:29 -06:00
..
http_api Enhance user roles to limit camera access (#20024) 2025-09-12 05:19:29 -06:00
__init__.py
const.py Work through most of the cspell warnings in python (#13794) 2024-09-17 10:41:46 -05:00
test_birdseye.py Write a low resolution low fps stream from decoded frames (#8673) 2024-01-31 12:56:11 +00:00
test_camera_pw.py fix typos (#9895) 2024-02-17 16:01:50 -06:00
test_config.py Fixes (#18338) 2025-05-22 09:38:14 -06:00
test_copy_yuv_to_position.py
test_ffmpeg_presets.py Improve gamma filter (#14065) 2024-09-30 11:42:51 -06:00
test_gpu_stats.py Add support for SR-IOV GPU stats (#15796) 2025-02-08 12:47:01 -06:00
test_obects.py Various fixes (#14410) 2024-10-17 11:02:27 -05:00
test_object_detector.py Improve async object detector support (#17712) 2025-04-15 08:55:38 -05:00
test_proxy_auth.py Enhance user roles to limit camera access (#20024) 2025-09-12 05:19:29 -06:00
test_record_retention.py Save motion as motion box count (#10484) 2024-03-15 13:13:40 -06:00
test_reduce_boxes.py Smarter Regions (#8194) 2023-10-18 18:21:52 -05:00
test_storage.py Improve robustness of storage maintenance (#8411) 2023-11-01 23:21:59 +00:00
test_video.py Merge remote-tracking branch 'origin/master' into dev 2024-02-14 18:20:55 -06:00
test_yuv_region_2_rgb.py