|
| 1 | +# CSRF token enforcement for frontend API calls |
| 2 | + |
| 3 | +!!! info "" |
| 4 | + |
| 5 | + * **Introduced in**: `OpenAEV 2.3.4` |
| 6 | + |
| 7 | +## Description of changes |
| 8 | + |
| 9 | +Starting with **OpenAEV 2.3.4**, API calls initiated from the **OpenAEV frontend** must include a valid **CSRF token**. |
| 10 | + |
| 11 | +This security change protects authenticated sessions against cross-site request forgery and affects request flows between the UI and backend APIs. |
| 12 | + |
| 13 | +Components that interact with OpenAEV APIs through authenticated web sessions must support this CSRF mechanism. |
| 14 | + |
| 15 | +## Impact |
| 16 | + |
| 17 | +If some platform components are upgraded while others remain on older versions, API calls can fail during authentication or state-changing requests. |
| 18 | + |
| 19 | +Typical symptoms include: |
| 20 | + |
| 21 | +- `401 Unauthorized` responses |
| 22 | +- `403 Forbidden` responses (missing or invalid CSRF token) |
| 23 | +- Connector failures when creating, updating, or triggering operations through the OpenAEV API |
| 24 | + |
| 25 | +## Migration guide |
| 26 | + |
| 27 | +To avoid service disruption, upgrade all OpenAEV ecosystem components together to versions compatible with **OpenAEV 2.3.4**. |
| 28 | + |
| 29 | +This includes, at minimum: |
| 30 | + |
| 31 | +- Injectors |
| 32 | +- Collectors |
| 33 | +- Agents |
| 34 | +- Connectors |
| 35 | +- Any custom integration using authenticated frontend/API flows |
| 36 | + |
| 37 | +!!! warning |
| 38 | + |
| 39 | + Do not run mixed versions in production (for example: OpenAEV `2.3.4` with older injectors or collectors). Upgrade all components in the same maintenance window. |
| 40 | + |
| 41 | +## Validation checklist after upgrade |
| 42 | + |
| 43 | +1. Log in to the OpenAEV UI and trigger a standard action (for example, launch an inject or collect data). |
| 44 | +2. Confirm the action succeeds without authentication errors. |
| 45 | +3. Check platform and connector logs for `401`/`403` responses. |
| 46 | +4. Verify that no component reports API connection failures. |
0 commit comments