You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
main is currently broken: the saved-views API-key auth check merged in PR #2025 ("fix-saved-views-1743", merged 2026-07-22) does not actually enforce authentication, and backend-unit has been failing on every push/PR run since that merge.
Why this matters
This is a security regression, not just a flaky test: the saved-views endpoints are supposed to reject unauthenticated requests and requests with a wrong API key, but they currently return 200 instead of 401. It also blocks CI for every open PR, since backend-unit is a required check and fails on a clean rebase of any branch onto current main — unrelated to whatever the PR itself changes.
Run pytest testing/backend/unit/test_saved_views.py -q.
Observe two failures.
Expected behavior
test_unauthenticated_request_rejected and test_wrong_api_key_rejected should pass — the saved-views router should return 401 for requests with no API key or an invalid one.
Suggested files or directories: backend/secuscan/saved_views.py (router/auth wiring), testing/backend/unit/test_saved_views.py
Related route: the saved-views router registered alongside routes.py (see saved_views.py's router registration in main.py)
Evidence
See linked Action runs above for full logs. Relevant recent history on backend/secuscan/saved_views.py:
a0c75d00 2026-07-20 Merge branch 'main' into fix-saved-views-1743
b91001d0 2026-07-17 fix(security): enforce API key auth on saved views router (#2035)
5c5f8fa9 2026-07-14 Fix: add auth and owner isolation to saved views API (closes #1743)
7dfc170c 2026-06-01 feat: add saved views backend API
PR #2025 merged fix-saved-views-1743 into main on 2026-07-22 and appears to have reintroduced or never actually applied the auth enforcement from #2035/5c5f8fa9 in the merged result.
Root cause of the auth bypass on the saved-views router is fixed
test_saved_views.py::test_unauthenticated_request_rejected and test_wrong_api_key_rejected pass
backend-unit is green on main
Regression test added/adjusted if the existing tests didn't already cover the exact bypass path
Additional context
This currently blocks every open PR's backend-unit required check regardless of what the PR changes, since it's a break in main itself rather than anything PR-specific.
Summary
mainis currently broken: the saved-views API-key auth check merged in PR #2025 ("fix-saved-views-1743", merged 2026-07-22) does not actually enforce authentication, andbackend-unithas been failing on every push/PR run since that merge.Why this matters
This is a security regression, not just a flaky test: the saved-views endpoints are supposed to reject unauthenticated requests and requests with a wrong API key, but they currently return
200instead of401. It also blocks CI for every open PR, sincebackend-unitis a required check and fails on a clean rebase of any branch onto currentmain— unrelated to whatever the PR itself changes.Reproduction steps
mainat or after commitef4efd30(merge of PR Fix: add auth and owner isolation to saved views API (closes #1743) #2025, 2026-07-22).pytest testing/backend/unit/test_saved_views.py -q.Expected behavior
test_unauthenticated_request_rejectedandtest_wrong_api_key_rejectedshould pass — the saved-views router should return401for requests with no API key or an invalid one.backend-unitshould be green onmain.Actual behavior
Confirmed present on:
backend-unitrun immediately after PR Fix: add auth and owner isolation to saved views API (closes #1743) #2025 merged intomain(2026-07-22): https://github.com/utksh1/SecuScan/actions/runs/29893353875mainCI run as of 2026-07-24 (after PR test(plugins): add parser unit tests for scapy_recon plugin (#1431) #1710 merged): https://github.com/utksh1/SecuScan/actions/runs/30083451247main— neither touchessaved_views.pyor its router/auth wiring, confirming the break lives inmainitself, not in either PR's diff.Scope
backend/secuscan/saved_views.py(router/auth wiring),testing/backend/unit/test_saved_views.pyroutes.py(seesaved_views.py's router registration inmain.py)Evidence
See linked Action runs above for full logs. Relevant recent history on
backend/secuscan/saved_views.py:PR #2025 merged
fix-saved-views-1743intomainon 2026-07-22 and appears to have reintroduced or never actually applied the auth enforcement from #2035/5c5f8fa9 in the merged result.Environment
ubuntu-latestrunner)Definition of done
test_saved_views.py::test_unauthenticated_request_rejectedandtest_wrong_api_key_rejectedpassbackend-unitis green onmainAdditional context
This currently blocks every open PR's
backend-unitrequired check regardless of what the PR changes, since it's a break inmainitself rather than anything PR-specific.