@cryptotaxi247 / CoPilot / commits / d705ba04

Add security dependency to sync vulnerabilities by customer code route

taylorwalton committed Dec 12, 2024 at 11:59 UTC d705ba049795a69ab3d199c8a66719e81c4736f7
1 file changed +1
backend/app/agents/routes/agents.py
+1
@@ -828,6 +828,7 @@ async def sync_vulnerabilities_route(
828 async def sync_vulnerabilities_customer_code_route(
829 customer_code: str,
830 session: AsyncSession = Depends(get_db),
831 + dependencies=[Security(AuthHandler().require_any_scope("admin", "analyst"))],
832 ):
833 """
834 Only applies to Wazuh Manager Version 4.8.1 or higher.