NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Restrict /api/config/raw to admin role to prevent credential leak to non-admin users (#22523)
Josh Hawkinse78da2758d2c
diff --git a/frigate/api/app.py b/frigate/api/app.pyindex 440adfce4f..d1120afeec 100644--- a/frigate/api/app.py+++ b/frigate/api/app.py@@ -218,7 +218,7 @@ def config_raw_paths(request: Request):return JSONResponse(content=raw_paths)[email protected]("/config/raw", dependencies=[Depends(allow_any_authenticated())])[email protected]("/config/raw", dependencies=[Depends(require_role(["admin"]))])def config_raw():config_file = find_config_file()diff --git a/frigate/api/auth.py b/frigate/api/auth.pyindex d774b36978..79cd21ad15 100644--- a/frigate/api/auth.py+++ b/frigate/api/auth.py@@ -67,7 +67,6 @@ def require_admin_by_default():"/stats","/stats/history","/config",- "/config/raw","/vainfo","/nvinfo","/labels",