CSRF token enforcement
From OpenAEV 2.3.4, API calls from the interface carry a CSRF token. Upgrade the integrations and agents together with the platform to avoid 401 and 403 errors.
From OpenAEV 2.3.4, every API call that the OpenAEV interface makes must carry a valid Cross-Site Request Forgery (CSRF) token. It protects signed-in sessions, and every component that calls the OpenAEV API through a signed-in web session must support it. This page says what to upgrade together and how to check the result.
- OpenAEV interface → OpenAEV API: with CSRF token
- Injectors and collectors → OpenAEV API: API calls
- OpenAEV agents → OpenAEV API: API calls
- Your integrations → OpenAEV API: API calls
- OpenAEV API → Older components: 401 or 403 errors
| Version | |
|---|---|
| Introduced in | OpenAEV 2.3.4 |
What breaks with mixed versions
When the platform is on 2.3.4 or later and some components are older, API calls can fail at sign-in or when they change data:
401 Unauthorizedresponses.403 Forbiddenresponses, for a missing or invalid CSRF token.- Integrations that fail to create, update or trigger operations through the OpenAEV API.
Upgrade together
In the same maintenance window, upgrade the platform and every component that calls it, to versions released for OpenAEV 2.3.4 or later:
- injectors
- collectors
- OpenAEV agents
- other integrations
- your own integrations that use the API
Do not run mixed versions in production, for example OpenAEV 2.3.4 with older injectors or collectors.
With xtm-docker, the default collectors and injectors (the openaev-integrations profile) use the latest tag: docker compose pull and docker compose up -d upgrade them with the platform. See Upgrade.
Check that it works
-
Sign in to OpenAEV and run a standard action, such as launching an inject.
Check that it workedThe action succeeds, with no authentication error.
-
Look for
401and403responses in the logs of the platform and of the integrations.docker compose logs --since 1h | grep -wE '401|403'Check that it workedNone of the lines it prints is an OpenAEV API call that failed, and no component reports a failed API connection.
What's next
- Upgrade, the upgrade procedure.
- How integrations run, to upgrade integrations you deployed yourself.
- Breaking changes, the other changes per version.