Deploy
How-to guide

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.

OpenAEVFor platform engineers

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.

UPGRADED WITH THE PLATFORMOPENAEV 2.3.4 AND LATERLEFT ON OLDER VERSIONSOpenAEV interfaceSigned-in web sessionInjectors and collectorsReleased for 2.3.4 or laterOpenAEV agentsReleased for 2.3.4 or laterYour integrationsUpdated for 2.3.4 or laterOpenAEV APIExpects a valid CSRF tokenOlder componentsMixed versions
  1. OpenAEV interface → OpenAEV API: with CSRF token
  2. Injectors and collectors → OpenAEV API: API calls
  3. OpenAEV agents → OpenAEV API: API calls
  4. Your integrations → OpenAEV API: API calls
  5. OpenAEV API → Older components: 401 or 403 errors
From OpenAEV 2.3.4, API calls from signed-in sessions carry a CSRF token, so upgrade every component that calls the API in the same window as the platform
Version
Introduced inOpenAEV 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 Unauthorized responses.
  • 403 Forbidden responses, 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
Warning

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

  1. Sign in to OpenAEV and run a standard action, such as launching an inject.

    Check that it worked

    The action succeeds, with no authentication error.

  2. Look for 401 and 403 responses in the logs of the platform and of the integrations.

    docker compose logs --since 1h | grep -wE '401|403'
    
    Check that it worked

    None of the lines it prints is an OpenAEV API call that failed, and no component reports a failed API connection.

What's next

NextOpenAEV renaming
Deploy
Install, configure, secure, scale and upgrade the platform.

Published

Overview
Run the XTM platform locally
OverviewDeploy with an AI agent