opencti

by DevOps IA

Helm chartv4.0.6App 7.261124.0MITVerified publisher

A Helm chart to deploy Open Cyber Threat Intelligence platform

About this chart

opencti

A Helm chart to deploy Open Cyber Threat Intelligence platform

[!NOTE] The default values.yaml provided with this chart will not work out-of-the-box. Please refer to the ci/ci-standalone-values.yaml example for a working configuration suitable for CI/CD installations. Additionally, make sure to read the docs/configuration.md guide for detailed configuration instructions and best practices.

Maintainers

NameEmailUrl
ialejandro[email protected]https://ialejandro.rocks

Prerequisites

  • Helm 3+
  • Kubernetes 1.23+

Requirements

Kubernetes: >=1.23.0-0

RepositoryNameVersion
https://charts.rustfs.comrustfs1.0.6
https://helm.elastic.coeck-stack0.20.0
https://opensearch-project.github.io/helm-charts/opensearch3.10.0
oci://ghcr.io/dragonflydb/dragonfly/helmredis(dragonfly)v2.1.0
oci://registry-1.docker.io/bitnamichartsrabbitmq16.0.13

Add repository

helm repo add opencti https://devops-ia.github.io/helm-opencti
helm repo update

Install Helm chart (repository mode)

helm install [RELEASE_NAME] opencti/opencti

This install all the Kubernetes components associated with the chart and creates the release.

See helm install for command documentation.

Install Helm chart (OCI mode)

Charts are also available in OCI format. The list of available charts can be found here.

helm install [RELEASE_NAME] oci://ghcr.io/devops-ia/helm-opencti/opencti --version=[version]

Uninstall Helm chart

helm uninstall [RELEASE_NAME]

This removes all the Kubernetes components associated with the chart and deletes the release.

See helm uninstall for command documentation.

OpenCTI

Basic installation and examples

See basic installation, clustering installation and examples.

Upgrades

  • Upgrade guide: v3 to v4
  • Upgrade guide: v2 to v3

Sizing

Minimum sizing from the upstream documentation:

ComponentCPUMemoryDiskIn this chart
OpenCTI server2 cores8 GBnonechart default (requests)
Worker1 core128 MBnonechart default (requests)
Connector1 core128 MBnoneset per item
OpenSearch / Elasticsearch2 cores8 GB16 GB SSDset opensearch.resources
Redis (Dragonfly)1 core1 GB16 GB SSDset redis.resources
RabbitMQ1 core512 MB2 GBset rabbitmq.resources
S3 storage (RustFS)1 core128 MB16 GB SSDset rustfs.resources

The server requests 2 CPU and 8Gi by default, so it will not schedule on a small node. Lower resources.requests for local or test clusters, as ci/ci-standalone-values.yaml does. The bundled dependencies keep small defaults and no persistence. Size them before going to production.

Configuration

See Customizing the chart before installing. To see all configurable options with comments:

helm show values opencti/opencti

Values

KeyTypeDefaultDescription
affinityobject{}Affinity for pod assignment Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity
argslist[]Configure args Ref: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/
autoscalingobject{"enabled":false,"maxReplicas":100,"minReplicas":1,"targetCPUUtilizationPercentage":80}Autoscaling with CPU or memory utilization percentage Ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/
clusteringobject{"enabled":false,"frontend":{"affinity":{},"autoscaling":{"enabled":false,"maxReplicas":10,"minReplicas":2,"targetCPUUtilizationPercentage":70,"targetMemoryUtilizationPercentage":80},"enabled":true,"env":{"NOTIFICATION_MANAGER__ENABLED":false,"RULE_ENGINE__ENABLED":false,"TASK_SCHEDULER__ENABLED":false},"gateway":{"annotations":{},"className":"","create":false,"enabled":false,"filters":[],"hostnames":[],"labels":{},"listeners":[{"name":"http","port":80,"protocol":"HTTP"}],"parentRefs":[{"name":"","namespace":""}],"rules":[{"matches":[{"path":{"type":"PathPrefix","value":"/"}}]}]},"ingress":{"annotations":{},"className":"","enabled":false,"hosts":[{"host":"opencti-frontend.local","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}],"tls":[]},"networkPolicy":{"egress":[],"enabled":false,"ingress":[],"policyTypes":[]},"podDisruptionBudget":{"enabled":false,"maxUnavailable":1},"replicaCount":2,"resources":{},"service":{"annotations":{},"appProtocol":"HTTP","extraPorts":[],"labels":{},"port":80,"portName":"http","protocol":"TCP","targetPort":4000,"type":"ClusterIP"},"tolerations":[],"topologySpreadConstraints":[]},"ingestion":{"affinity":{},"autoscaling":{"enabled":false,"maxReplicas":20,"minReplicas":3,"targetCPUUtilizationPercentage":80,"targetMemoryUtilizationPercentage":85},"enabled":true,"env":{},"networkPolicy":{"egress":[],"enabled":false,"ingress":[],"policyTypes":[]},"podDisruptionBudget":{"enabled":false,"maxUnavailable":2},"replicaCount":3,"resources":{},"service":{"annotations":{},"appProtocol":"HTTP","extraPorts":[],"labels":{},"port":80,"portName":"http","protocol":"TCP","targetPort":4000,"type":"ClusterIP"},"tolerations":[],"topologySpreadConstraints":[]}}OpenCTI Clustering configuration
clustering.enabledboolfalseEnable or disable clustering mode
clustering.frontendobject{"affinity":{},"autoscaling":{"enabled":false,"maxReplicas":10,"minReplicas":2,"targetCPUUtilizationPercentage":70,"targetMemoryUtilizationPercentage":80},"enabled":true,"env":{"NOTIFICATION_MANAGER__ENABLED":false,"RULE_ENGINE__ENABLED":false,"TASK_SCHEDULER__ENABLED":false},"gateway":{"annotations":{},"className":"","create":false,"enabled":false,"filters":[],"hostnames":[],"labels":{},"listeners":[{"name":"http","port":80,"protocol":"HTTP"}],"parentRefs":[{"name":"","namespace":""}],"rules":[{"matches":[{"path":{"type":"PathPrefix","value":"/"}}]}]},"ingress":{"annotations":{},"className":"","enabled":false,"hosts":[{"host":"opencti-frontend.local","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}],"tls":[]},"networkPolicy":{"egress":[],"enabled":false,"ingress":[],"policyTypes":[]},"podDisruptionBudget":{"enabled":false,"maxUnavailable":1},"replicaCount":2,"resources":{},"service":{"annotations":{},"appProtocol":"HTTP","extraPorts":[],"labels":{},"port":80,"portName":"http","protocol":"TCP","targetPort":4000,"type":"ClusterIP"},"tolerations":[],"topologySpreadConstraints":[]}Frontend cluster configuration (UI/API)
clustering.frontend.affinityobject{}Frontend affinity
clustering.frontend.autoscalingobject{"enabled":false,"maxReplicas":10,"minReplicas":2,"targetCPUUtilizationPercentage":70,"targetMemoryUtilizationPercentage":80}Frontend autoscaling
clustering.frontend.enabledbooltrueEnable frontend deployment
clustering.frontend.envobject{"NOTIFICATION_MANAGER__ENABLED":false,"RULE_ENGINE__ENABLED":false,"TASK_SCHEDULER__ENABLED":false}Environment variables específicas para frontend https://docs.opencti.io/latest/deployment/clustering/#managers-and-schedulers
clustering.frontend.gatewayobject{"annotations":{},"className":"","create":false,"enabled":false,"filters":[],"hostnames":[],"labels":{},"listeners":[{"name":"http","port":80,"protocol":"HTTP"}],"parentRefs":[{"name":"","namespace":""}],"rules":[{"matches":[{"path":{"type":"PathPrefix","value":"/"}}]}]}Frontend Gateway API configuration (Gateway + HTTPRoute resources) Ref: https://gateway-api.sigs.k8s.io/ Requires Gateway API CRDs installed in the cluster. TLS is configured at the Gateway listener level, not the HTTPRoute.
clustering.frontend.gateway.annotationsobject{}Annotations for the HTTPRoute
clustering.frontend.gateway.classNamestring""GatewayClass name - required when create is true
clustering.frontend.gateway.createboolfalseSet to false to attach to a pre-existing Gateway via parentRefs.
clustering.frontend.gateway.filterslist[]Additional request/response filters
clustering.frontend.gateway.hostnameslist[]Hostnames to match (leave empty to match all hostnames)
clustering.frontend.gateway.labelsobject{}Additional labels for the HTTPRoute
clustering.frontend.gateway.listenerslist[{"name":"http","port":80,"protocol":"HTTP"}]Gateway listeners - used only when create is true
clustering.frontend.gateway.parentRefslist[{"name":"","namespace":""}]Ignored when create is true (auto-wired to the chart-managed Gateway).
clustering.frontend.gateway.ruleslist[{"matches":[{"path":{"type":"PathPrefix","value":"/"}}]}]Route rules (backendRefs are auto-generated from frontend service config)
clustering.frontend.ingressobject{"annotations":{},"className":"","enabled":false,"hosts":[{"host":"opencti-frontend.local","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}],"tls":[]}Frontend ingress configuration
clustering.frontend.networkPolicyobject{"egress":[],"enabled":false,"ingress":[],"policyTypes":[]}Frontend network policy Leaving ingress/egress empty below while enabled is a permissive (allow-all) policy - uncomment the examples to actually restrict traffic.
clustering.frontend.podDisruptionBudgetobject{"enabled":false,"maxUnavailable":1}Frontend pod disruption budget
clustering.frontend.replicaCountint2Number of replicas for frontend
clustering.frontend.resourcesobject{}Frontend resources
clustering.frontend.serviceobject{"annotations":{},"appProtocol":"HTTP","extraPorts":[],"labels":{},"port":80,"portName":"http","protocol":"TCP","targetPort":4000,"type":"ClusterIP"}Frontend service configuration
clustering.frontend.service.annotationsobject{}Annotations for the service
clustering.frontend.service.appProtocolstring"HTTP"Application protocol (HTTP, HTTPS, etc.)
clustering.frontend.service.extraPortslist[]Pod extra ports
clustering.frontend.service.labelsobject{}Additional labels for the service
clustering.frontend.service.portint80Kubernetes Service port
clustering.frontend.service.portNamestring"http"Name for the service port
clustering.frontend.service.protocolstring"TCP"Protocol for the service port
clustering.frontend.service.targetPortint4000Pod expose port
clustering.frontend.service.typestring"ClusterIP"Kubernetes Service type
clustering.frontend.tolerationslist[]Frontend tolerations
clustering.frontend.topologySpreadConstraintslist[]Frontend topology spread constraints
clustering.ingestionobject{"affinity":{},"autoscaling":{"enabled":false,"maxReplicas":20,"minReplicas":3,"targetCPUUtilizationPercentage":80,"targetMemoryUtilizationPercentage":85},"enabled":true,"env":{},"networkPolicy":{"egress":[],"enabled":false,"ingress":[],"policyTypes":[]},"podDisruptionBudget":{"enabled":false,"maxUnavailable":2},"replicaCount":3,"resources":{},"service":{"annotations":{},"appProtocol":"HTTP","extraPorts":[],"labels":{},"port":80,"portName":"http","protocol":"TCP","targetPort":4000,"type":"ClusterIP"},"tolerations":[],"topologySpreadConstraints":[]}Ingestion cluster configuration (Processing/Workers)
clustering.ingestion.affinityobject{}Ingestion affinity
clustering.ingestion.autoscalingobject{"enabled":false,"maxReplicas":20,"minReplicas":3,"targetCPUUtilizationPercentage":80,"targetMemoryUtilizationPercentage":85}Ingestion autoscaling
clustering.ingestion.enabledbooltrueEnable ingestion deployment
clustering.ingestion.envobject{}Environment variables específicas para ingestion
clustering.ingestion.networkPolicyobject{"egress":[],"enabled":false,"ingress":[],"policyTypes":[]}Ingestion network policy Ingestion never receives inbound traffic from other pods, so set this to just [Egress] when ingress is left empty below - otherwise the chart's default Ingress+Egress fallback also renders an allow-all ingress rule.
clustering.ingestion.podDisruptionBudgetobject{"enabled":false,"maxUnavailable":2}Ingestion pod disruption budget
clustering.ingestion.replicaCountint3Number of replicas for ingestion
clustering.ingestion.resourcesobject{}Ingestion resources
clustering.ingestion.serviceobject{"annotations":{},"appProtocol":"HTTP","extraPorts":[],"labels":{},"port":80,"portName":"http","protocol":"TCP","targetPort":4000,"type":"ClusterIP"}Ingestion service configuration (interno)
clustering.ingestion.service.annotationsobject{}Annotations for the service
clusteri

Deploy opencti with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has opencti on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartopencti is pinned at v4.0.6 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply