You are reading the documentation of OpenCTI 7.260309 LTS · 7.260309.0-lts.8, supported until 2027-04.Latest is 7.261119.0 →
How-to guide

Pull integrations from a private registry

Make XTM Composer pull integration images from a private or mirrored container registry, with credentials, on Docker, Podman or Kubernetes.

OpenCTIOpenAEVXTM ComposerFor platform engineers

This page makes XTM Composer pull the images of the integrations from your own registry, such as a mirror of Docker Hub in an isolated network, with or without credentials. Install XTM Composer first: see Install XTM Composer.

PLATFORMSXTM COMPOSERCONTAINER ENGINEREGISTRYOpenCTIopencti/connector-mitre:<version>OpenAEVopenaev/collector-mitre-attackXTM ComposerRegistry of each platform in frontDocker or PodmanCredentials with each pullKubernetesPull Secretregistry-example-com-openctiYour registryregistry.example.com, Docker Hubnames
  1. OpenCTI → XTM Composer: image name
  2. OpenAEV → XTM Composer: image name
  3. XTM Composer → Docker or Podman: prefixed image
  4. XTM Composer → Kubernetes: prefixed image
  5. Docker or Podman → Your registry: pull
  6. Kubernetes → Your registry: pull
XTM Composer puts your registry in front of the image name the platform asks for, and the container engine pulls it from there with your credentials

Before you start

  • A registry that holds the integration images under the same names as Docker Hub, such as opencti/connector-mitre or openaev/collector-mitre-attack, with the same tags: the -fips or -ubi9 tags when XTM Composer adds a tag suffix.
  • The host name of the registry, and a user and password or token if it requires them.

How XTM Composer names the image

Without a registry, XTM Composer pulls the image the platform asks for, such as opencti/connector-mitre:<version>, from Docker Hub. With a registry server, it puts the server in front of every image name: registry.example.com/opencti/connector-mitre:<version>. It does not check whether the name already has a registry, so mirror the images under their Docker Hub names.

When manager.image_tag_suffix is set, XTM Composer also adds it to the tag: registry.example.com/opencti/connector-mitre:6.9.0-fips, or latest-fips for an image without a tag. The FIPS image of XTM Composer sets -fips by default. Mirror the suffixed tags too, or the pulls fail. See Configure XTM Composer for the values it accepts.

Set the registry

  1. Add the registry to the environment of XTM Composer, in the daemon block of each platform. For OpenAEV, replace OPENCTI__ with OPENAEV__.

    OPENCTI__DAEMON__REGISTRY__SERVER=registry.example.com
    OPENCTI__DAEMON__REGISTRY__USERNAME=your-registry-user
    OPENCTI__DAEMON__REGISTRY__PASSWORD=your-registry-password
    

    OPENCTI__DAEMON__REGISTRY__EMAIL is optional. Leave out the user and password for a registry that needs no credentials: XTM Composer then only adds the server to the image names.

  2. Restart XTM Composer. It uses the registry for every image it pulls from then on: when it deploys an integration, and when it recreates one after a configuration change.

KeyEnvironment variableEffect
opencti.daemon.registry.serverOPENCTI__DAEMON__REGISTRY__SERVERThe registry host, put in front of every image name. Required with credentials
opencti.daemon.registry.usernameOPENCTI__DAEMON__REGISTRY__USERNAMEThe user. Credentials are used only when both the user and the password are set
opencti.daemon.registry.passwordOPENCTI__DAEMON__REGISTRY__PASSWORDThe password or token
opencti.daemon.registry.emailOPENCTI__DAEMON__REGISTRY__EMAILOptional

Each platform pulls with the registry of its own block, on every engine. Up to XTM Composer 3.261021.1, Kubernetes, Docker Swarm and Portainer read the opencti block for both platforms.

Warning

If XTM Composer serves OpenAEV on Kubernetes, Docker Swarm or Portainer, and you set its registry in OPENCTI__DAEMON__REGISTRY__* only, set it in OPENAEV__DAEMON__REGISTRY__* before you upgrade. Otherwise XTM Composer pulls the OpenAEV images from Docker Hub.

What each engine does with it

Docker and Podman

XTM Composer sends the credentials with each pull. With Podman, you can also leave the credentials out of XTM Composer, keep only the server, and log in on the Podman host with the auth file the Podman service reads:

sudo podman login --authfile /root/.config/containers/auth.json registry.example.com

For a rootless Podman, run podman login --authfile ~/.config/containers/auth.json registry.example.com as the user that runs the integrations.

Kubernetes

When a user and a password are set, XTM Composer creates at start an image pull Secret of type kubernetes.io/dockerconfigjson in its namespace for each platform, and attaches it to the Deployment of each integration of that platform. It deletes and recreates the Secrets at every start, so a changed password takes effect on restart.

Each Secret is named after the server and the platform, in the Kubernetes naming format: registry.example.com gives registry-example-com-opencti and registry-example-com-openaev. Two platforms in the same namespace can then use the same server with different credentials.

XTM Composer also keeps the Secret of its earlier versions, named after the server only (registry-example-com), up to date from the opencti block: the Deployments created before the upgrade use it until XTM Composer updates them after a configuration change. A later version of XTM Composer will stop maintaining it.

The role of XTM Composer must allow create and delete on secrets, as in Install XTM Composer.

Check that it works

Deploy an integration from the catalog, then check where its image came from.

Docker and Podman
docker ps --filter label=opencti-manager --format '{{.Names}} {{.Image}}'
Check that it worked

Each image starts with your registry, such as registry.example.com/opencti/connector-mitre:<version>.

Kubernetes
kubectl -n xtm-composer logs deploy/xtm-composer | grep 'Kubernetes registry secret'
kubectl -n xtm-composer get secret registry-example-com-opencti
Check that it worked

The logs say Kubernetes registry secret created with the name of each Secret, and the Secret exists. Replace registry-example-com with the name of your server, dots and colons replaced by dashes, and opencti with openaev for OpenAEV.

When the image cannot be pulled, XTM Composer deploys nothing, or keeps the previous deployment running after a configuration change. The Logs of the integration on the platform say why, such as [XTM Composer] Connector not deployed: the image "registry.example.com/opencti/connector-mitre:6.9.0" cannot be pulled: followed by the error of the engine. On Kubernetes, the cluster pulls the image: the logs say Connector waiting for its image while the pod waits. Check the name and the tag in the registry, and the credentials. See Troubleshoot XTM Composer.

What's next

NextRun an integration without XTM Composer
Deploy
Install, configure, secure, scale and upgrade the platform.

Published

Overview
Run the XTM platform locally
OverviewDeploy with an AI agent