add auth exceptions for exports

This commit is contained in:
Josh Hawkins 2026-04-11 22:30:30 -05:00
parent ae8be19b5b
commit 4569e538b7

View File

@ -88,7 +88,9 @@ def require_admin_by_default():
"/go2rtc/streams", "/go2rtc/streams",
"/event_ids", "/event_ids",
"/events", "/events",
"/cases",
"/exports", "/exports",
"/jobs/export",
} }
# Path prefixes that should be exempt (for paths with parameters) # Path prefixes that should be exempt (for paths with parameters)
@ -101,7 +103,9 @@ def require_admin_by_default():
"/go2rtc/streams/", # /go2rtc/streams/{camera} "/go2rtc/streams/", # /go2rtc/streams/{camera}
"/users/", # /users/{username}/password (has own auth) "/users/", # /users/{username}/password (has own auth)
"/preview/", # /preview/{file}/thumbnail.jpg "/preview/", # /preview/{file}/thumbnail.jpg
"/cases/", # /cases/{case_id}
"/exports/", # /exports/{export_id} "/exports/", # /exports/{export_id}
"/jobs/export/", # /jobs/export/{export_id}
"/vod/", # /vod/{camera_name}/... "/vod/", # /vod/{camera_name}/...
"/notifications/", # /notifications/pubkey, /notifications/register "/notifications/", # /notifications/pubkey, /notifications/register
) )