opencti
by DevOps IA
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.yamlprovided with this chart will not work out-of-the-box. Please refer to theci/ci-standalone-values.yamlexample for a working configuration suitable for CI/CD installations. Additionally, make sure to read thedocs/configuration.mdguide for detailed configuration instructions and best practices.
Maintainers
| Name | Url | |
|---|---|---|
| ialejandro | [email protected] | https://ialejandro.rocks |
Prerequisites
- Helm 3+
- Kubernetes 1.23+
Requirements
Kubernetes: >=1.23.0-0
| Repository | Name | Version |
|---|---|---|
| https://charts.rustfs.com | rustfs | 1.0.6 |
| https://helm.elastic.co | eck-stack | 0.20.0 |
| https://opensearch-project.github.io/helm-charts/ | opensearch | 3.10.0 |
| oci://ghcr.io/dragonflydb/dragonfly/helm | redis(dragonfly) | v2.1.0 |
| oci://registry-1.docker.io/bitnamicharts | rabbitmq | 16.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
- Environment configuration
- Connectors. Review
docker-compose.yamlwith the properly config - Check connectors samples on
connector-examplesfolder
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:
| Component | CPU | Memory | Disk | In this chart |
|---|---|---|---|---|
| OpenCTI server | 2 cores | 8 GB | none | chart default (requests) |
| Worker | 1 core | 128 MB | none | chart default (requests) |
| Connector | 1 core | 128 MB | none | set per item |
| OpenSearch / Elasticsearch | 2 cores | 8 GB | 16 GB SSD | set opensearch.resources |
| Redis (Dragonfly) | 1 core | 1 GB | 16 GB SSD | set redis.resources |
| RabbitMQ | 1 core | 512 MB | 2 GB | set rabbitmq.resources |
| S3 storage (RustFS) | 1 core | 128 MB | 16 GB SSD | set 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
| Key | Type | Default | Description |
|---|---|---|---|
| affinity | object | {} | Affinity for pod assignment Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity |
| args | list | [] | Configure args Ref: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/ |
| autoscaling | object | {"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/ |
| clustering | object | {"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.enabled | bool | false | Enable or disable clustering mode |
| clustering.frontend | object | {"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.affinity | object | {} | Frontend affinity |
| clustering.frontend.autoscaling | object | {"enabled":false,"maxReplicas":10,"minReplicas":2,"targetCPUUtilizationPercentage":70,"targetMemoryUtilizationPercentage":80} | Frontend autoscaling |
| clustering.frontend.enabled | bool | true | Enable frontend deployment |
| clustering.frontend.env | object | {"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.gateway | object | {"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.annotations | object | {} | Annotations for the HTTPRoute |
| clustering.frontend.gateway.className | string | "" | GatewayClass name - required when create is true |
| clustering.frontend.gateway.create | bool | false | Set to false to attach to a pre-existing Gateway via parentRefs. |
| clustering.frontend.gateway.filters | list | [] | Additional request/response filters |
| clustering.frontend.gateway.hostnames | list | [] | Hostnames to match (leave empty to match all hostnames) |
| clustering.frontend.gateway.labels | object | {} | Additional labels for the HTTPRoute |
| clustering.frontend.gateway.listeners | list | [{"name":"http","port":80,"protocol":"HTTP"}] | Gateway listeners - used only when create is true |
| clustering.frontend.gateway.parentRefs | list | [{"name":"","namespace":""}] | Ignored when create is true (auto-wired to the chart-managed Gateway). |
| clustering.frontend.gateway.rules | list | [{"matches":[{"path":{"type":"PathPrefix","value":"/"}}]}] | Route rules (backendRefs are auto-generated from frontend service config) |
| clustering.frontend.ingress | object | {"annotations":{},"className":"","enabled":false,"hosts":[{"host":"opencti-frontend.local","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}],"tls":[]} | Frontend ingress configuration |
| clustering.frontend.networkPolicy | object | {"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.podDisruptionBudget | object | {"enabled":false,"maxUnavailable":1} | Frontend pod disruption budget |
| clustering.frontend.replicaCount | int | 2 | Number of replicas for frontend |
| clustering.frontend.resources | object | {} | Frontend resources |
| clustering.frontend.service | object | {"annotations":{},"appProtocol":"HTTP","extraPorts":[],"labels":{},"port":80,"portName":"http","protocol":"TCP","targetPort":4000,"type":"ClusterIP"} | Frontend service configuration |
| clustering.frontend.service.annotations | object | {} | Annotations for the service |
| clustering.frontend.service.appProtocol | string | "HTTP" | Application protocol (HTTP, HTTPS, etc.) |
| clustering.frontend.service.extraPorts | list | [] | Pod extra ports |
| clustering.frontend.service.labels | object | {} | Additional labels for the service |
| clustering.frontend.service.port | int | 80 | Kubernetes Service port |
| clustering.frontend.service.portName | string | "http" | Name for the service port |
| clustering.frontend.service.protocol | string | "TCP" | Protocol for the service port |
| clustering.frontend.service.targetPort | int | 4000 | Pod expose port |
| clustering.frontend.service.type | string | "ClusterIP" | Kubernetes Service type |
| clustering.frontend.tolerations | list | [] | Frontend tolerations |
| clustering.frontend.topologySpreadConstraints | list | [] | Frontend topology spread constraints |
| clustering.ingestion | object | {"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.affinity | object | {} | Ingestion affinity |
| clustering.ingestion.autoscaling | object | {"enabled":false,"maxReplicas":20,"minReplicas":3,"targetCPUUtilizationPercentage":80,"targetMemoryUtilizationPercentage":85} | Ingestion autoscaling |
| clustering.ingestion.enabled | bool | true | Enable ingestion deployment |
| clustering.ingestion.env | object | {} | Environment variables específicas para ingestion |
| clustering.ingestion.networkPolicy | object | {"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.podDisruptionBudget | object | {"enabled":false,"maxUnavailable":2} | Ingestion pod disruption budget |
| clustering.ingestion.replicaCount | int | 3 | Number of replicas for ingestion |
| clustering.ingestion.resources | object | {} | Ingestion resources |
| clustering.ingestion.service | object | {"annotations":{},"appProtocol":"HTTP","extraPorts":[],"labels":{},"port":80,"portName":"http","protocol":"TCP","targetPort":4000,"type":"ClusterIP"} | Ingestion service configuration (interno) |
| clustering.ingestion.service.annotations | object | {} | 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartopencti is pinned at v4.0.6 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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