thehive-flow
by StrangeBee
TheHive Flow — TheHive Orchestration engine, running playbooks as durable Temporal workflows.
About this chart
thehive-flow
Description
TheHive Flow — TheHive Orchestration engine, running playbooks as durable Temporal workflows.
A single helm install brings up the TheHive Flow app and a bundled Temporal Server. PostgreSQL and an S3-compatible object store are external: provision them before installing, and point the chart at them with postgresql.* and blobstore.*.
Upgrading
config.api.public.url is required while config.api.public.enable is true: helm upgrade with values that do not set it refuses to render. Set it to the public URL at which clients reach TheHive Flow's root.
Codex execution backend
- Kubernetes (default). With
codex.backend: kubernetes, each playbook script runs as a short-lived Kubernetes Job in a dedicated<release-namespace>-jobsnamespace (derived from the install namespace, not the release name) — no Docker required. The chart provisions the namespace, RBAC, and object-store credentials; the assistant image (codex.kubernetes.assistantImage) and the language images must be pullable by the cluster (usecodex.languageImagesto repoint them at an internal registry for air-gapped clusters). - Docker (opt-in). Set
codex.backend: dockerto run scripts in short-lived Docker containers instead. This needs a reachable Docker endpoint: on nodes that expose a Docker socket (kind, Docker Desktop) enabledockerSocketProxy; on containerd/CRI-O clusters (e.g. EKS/Bottlerocket, which have no Docker socket) pointcodex.dockerHostat an external Docker daemon.
Homepage: https://strangebee.com/thehive/
Maintainers
| Name | Url | |
|---|---|---|
| StrangeBee | https://strangebee.com/ |
Source Code
Requirements
Kubernetes: >=1.29.0-0
| Repository | Name | Version |
|---|---|---|
| https://temporalio.github.io/helm-charts | temporal | 1.8.0 |
Values
| Key | Type | Default | Description |
|---|---|---|---|
| affinity | object | {} | affinity for the TheHive Flow pod. |
| blobstore.backend | string | "s3" | Backend: "s3" (durable). "memory" is unit-test-only and rejected at startup (the chart fails the render). |
| blobstore.s3.accessKeyId | string | "thehive-flow" | Access key ID (static creds). Empty → AWS SDK default chain (IRSA / Pod Identity). For the bundled SeaweedFS, must match its admin.accessKey and the bootstrap Secret's AWS_ACCESS_KEY_ID. |
| blobstore.s3.bucket | string | "thehive-flow" | Bucket for blobs. |
| blobstore.s3.endpoint | string | "http://s3-store-all-in-one.soar.svc.cluster.local:8333" | S3 endpoint URL. Empty for AWS S3 (SDK resolves it); set to your S3-compatible endpoint otherwise. Default targets the bundled SeaweedFS in soar; set it for another namespace or store. Must be a cross-namespace FQDN when codex.backend: kubernetes — it is passed verbatim to the assistant containers, which run in jobNamespace and cannot resolve a bare Service name. |
| blobstore.s3.region | string | "us-east-1" | Region. Some gateways ignore it, but the AWS SDK requires a value. |
| blobstore.s3.usePathStyle | bool | true | Path-style addressing. true for most S3-compatible gateways; false for AWS S3 (virtual-hosted). |
| codex.backend | string | "kubernetes" | Execution backend for Codex scripts: "kubernetes" (default; each script runs as an isolated Job) or "docker" (needs a Docker socket — see dockerSocketProxy / codex.dockerHost). |
| codex.dockerHost | string | "" | DOCKER_HOST for the docker backend. Empty + dockerSocketProxy.enabled auto-wires the proxy. Ignored when backend is kubernetes. |
| codex.kubernetes.activeDeadlineSeconds | int | 0 | Cap a Job's total run time in seconds (0 → backend default). |
| codex.kubernetes.assistantImage.repository | string | "docker.io/strangebee/thehive-flow-assistant" | Assistant init/sidecar image repository (moves blobs between S3 and the Job work dir). |
| codex.kubernetes.assistantImage.tag | string | "" | Image tag. Empty falls back to .Chart.AppVersion. |
| codex.kubernetes.ephemeralStorage | string | "" | Cap the shared work-dir emptyDir (e.g. "1Gi"); empty = uncapped. |
| codex.kubernetes.gracePeriodSeconds | int | 0 | Pod terminationGracePeriodSeconds for output promotion (0 → backend default). |
| codex.kubernetes.imagePullSecrets | list | [] | imagePullSecrets (existing Secret names) for the assistant + language images. These Secrets must exist in the Job namespace (jobNamespace), which is separate from the release namespace — imagePullSecrets are namespace-scoped. |
| codex.kubernetes.jobNamespace | string | "" | Namespace for Codex Jobs. Empty defaults to "-jobs". |
| codex.kubernetes.nodeSelector | list | [] | nodeSelector for Job pods, as "key=value" strings. |
| codex.kubernetes.objectStoreSecret | string | "" | Existing Secret with AWS_ACCESS_KEY_ID / AWS_SECRET_ACCESS_KEY for the assistant's static S3 access, resolved in the Job namespace (jobNamespace). Behaviour when empty: - static credentials (blobstore.s3.accessKeyId set): defaults to the blobstore Secret name (secrets.s3SecretAccessKey.existingSecret), copied into the Job namespace when rbac.create; - ambient credentials (accessKeyId unset): omitted entirely, so the assistant uses the AWS SDK default credential chain via serviceAccountAnnotations (IRSA / Pod Identity). A custom name must be provisioned in the Job namespace yourself. |
| codex.kubernetes.rbac.create | bool | true | Create the Job namespace, the codex-jobs ServiceAccount, and the Roles/RoleBindings (thehive-flow → drive Jobs; codex-jobs → patch own pod). Disable to manage them yourself. |
| codex.kubernetes.resources | object | {} | Default CPU/memory requests+limits for the user (script) container. |
| codex.kubernetes.serviceAccount | string | "codex-jobs" | ServiceAccount the Job pods run as (created when rbac.create). |
| codex.kubernetes.serviceAccountAnnotations | object | {} | Annotations on the codex-jobs ServiceAccount (e.g. eks.amazonaws.com/role-arn for IRSA), so Codex Jobs can use ambient S3 credentials (AWS SDK default chain) when objectStoreSecret is unset. |
| codex.kubernetes.ttlSecondsAfterFinished | int | 0 | Auto-delete finished Jobs after N seconds (0 → backend default). |
| codex.languageImages | object | {} | Override the container image for built-in Codex languages, keyed by language name (e.g. "python@v3_11", "javascript@v24"). Point these at your internal registry for air-gapped / proxied clusters that cannot reach the default gcr.io images. Empty uses the built-in defaults. Applies to both backends (kubernetes and docker). |
| codex.maxConcurrentActivityExecutionSize | int | nil | Max Codex steps run at once per language (on the kubernetes backend, concurrent Jobs). Unset or 0 keeps the Temporal SDK default (1000 per language). |
| config.api.public.addr | string | "0.0.0.0:8081" | Bind address for the REST API listener. |
| config.api.public.enable | bool | true | Enable the REST API listener. |
| config.api.public.trusted_proxies | list | [] | Trusted proxy CIDRs: for a request from one of them, the webhook rate limit (rate_limit_per_minute) reads the client from X-Forwarded-For. A malformed CIDR (including a bare IP), an IPv4-mapped CIDR or a /0 fails startup. A range that also holds clients lets them bypass that limit, as the pod CIDR does behind an in-cluster ingress. A trusted proxy must append the address of its own peer to X-Forwarded-For. |
| config.api.public.url | string | "" | Required when enable is true. Public URL: absolute http(s), no credentials, query or fragment; webhook responses carry <url>/webhook/<id>. |
| config.modules.observability.listener.addr | string | "0.0.0.0:9090" | Bind address for the observability listener (livez/readyz/metrics). |
| config.modules.observability.metrics.prometheus.enabled | bool | true | Expose Prometheus metrics on the observability listener. |
| config.modules.observability.pprof.enabled | bool | false | Expose pprof endpoints on the observability listener. |
| config.modules.runs.retention | string | "168h" | Run retention. TheHive Flow is the source of truth for retention. |
| config.modules.runs.syncTemporalRetention | string | nil | Sync the Temporal namespace retention to runs.retention (TheHive Flow becomes the source of truth). Null (default) follows temporal.enabled — on for the bundled Temporal, off for an external one: rewriting the retention of a namespace owned by another team would silently delete their workflow histories. Set true/false to force. |
| config.modules.workers.activities.egress.allowlist | list | [] | Outbound connections from workflow nodes (http, integration, llm.chat) are guarded against SSRF: non-public addresses (loopback, RFC1918, link-local, CGNAT, reserved) are blocked at dial time with "egress guard: outbound connection to non-public address blocked". To reach a legitimate internal target (TheHive or Cortex on a private network, a locally hosted LLM provider), allowlist its CIDR range. A malformed CIDR (including a bare IP without prefix) fails startup. |
| config.modules.workers.activities.http.request_logging | bool | false | Log every HTTP activity request. |
| config.modules.workers.activities.mailer.from | string | "" | Default sender address. |
| config.modules.workers.activities.mailer.host | string | "" | SMTP server. Empty keeps the configuration pushed by TheHive; set, it overrides it. |
| config.modules.workers.activities.mailer.port | int | 587 | SMTP port, 1–65535. |
| config.modules.workers.activities.mailer.tls | bool | true | STARTTLS, the only TLS the mailer speaks (no implicit TLS, so not port 465). Required to send credentials to a non-loopback host. |
| config.modules.workers.activities.mailer.user | string | "" | SMTP username. Its password comes from secrets.mailerPassword. |
| config.modules.workers.activities.max_concurrent_activity_task_pollers | int | nil | Activity-task pollers; null leaves the Temporal SDK to decide. A non-integer or negative is refused. |
| config.modules.workers.activities.thehive.url | string | "http://thehive:9000" | TheHive URL (assumes a Service named thehive in the namespace). |
| config.modules.workers.workflows.max_concurrent_workflow_task_pollers | int | nil | Workflow-task pollers; null leaves the Temporal SDK to decide. A non-integer, negative or 1 is refused. |
| containerSecurityContext | object | {"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true} | Container-level securityContext for the TheHive Flow container. |
| dockerSocketProxy.enabled | bool | false | Deploy the embedded docker-socket-proxy. Off by default. |
| dockerSocketProxy.hostSocketPath | string | "/var/run/docker.sock" | Path to the Docker socket on the node, hostPath-mounted read-only into the proxy. |
| dockerSocketProxy.image.pullPolicy | string | "IfNotPresent" | Image pull policy. |
| dockerSocketProxy.image.repository | string | "docker.io/tecnativa/docker-socket-proxy" | Container image repository for the docker socket proxy. |
| dockerSocketProxy.image.tag | string | "v0.5.0@sha256:1f5038b54f06c3e18422902cf00ba21803d1c97805aae032e5e6673d532d3459" | Image tag. |
| dockerSocketProxy.permissions | object | {"CONTAINERS":1,"IMAGES":1,"INFO":1,"NETWORKS":1,"POST":1,"VOLUMES":1} | Docker API verbs the proxy forwards (1 = allow, 0 = deny). |
| dockerSocketProxy.resources | object | {"limits":{"memory":"64Mi"},"requests":{"cpu":"10m","memory":"32Mi"}} | Resource requests/limits for the proxy pod. |
| dockerSocketProxy.service.port | int | 2375 | Service port (and container port). |
| dockerSocketProxy.service.type | string | "ClusterIP" | Service type for the proxy. |
| externalTemporal.host | string | "" | External Temporal frontend host. Only used when temporal.enabled: false. Must be a plaintext, unauthenticated Temporal frontend reachable in-cluster or over a private network (VPC/peering): TLS/mTLS and API keys are not supported, so Temporal Cloud will not work. |
| externalTemporal.port | int | 7233 | External Temporal frontend port. |
| fullnameOverride | string | "" | Override the entire fullname. |
| goMemLimit | string | "" | Explicit GOMEMLIMIT for the TheHive Flow container. Empty derives it from resources.limits.memory (see goMemLimitPercent). Only Go's binary suffixes are accepted — B, KiB, MiB, GiB, TiB, or a plain byte count. "900MB" is NOT one of them and makes the container exit at startup with fatal error: malformed GOMEMLIMIT. |
| goMemLimitPercent | int | 85 | Percentage of resources.limits.memory used as GOMEMLIMIT when goMemLimit is empty. 0 leaves GOMEMLIMIT unset; anything at or above 100 fails the render (it would leave no margin at all). Go's GC does not read the cgroup ceiling on its own, so without a value the pod is OOMKilled with the collector still idle. The margin the percentage leaves must be at least 128 MiB in absolute terms — GOMEMLIMIT bounds runtime-managed memory only, so the mapped binary (90 MiB in the shipped image) and kernel-held memory come out of it, and that cost does not shrink with the limit. 85% of the default 1Gi leaves 154 MiB; on a 512Mi limit it would leave 77 MiB and the render fails, telling you to lower this value (75% fits). |
| image.pullPolicy | string | "IfNotPresent" | Image pull policy. |
| image.repository | string | "docker.io/strangebee/thehive-flow" | The |
Deploy thehive-flow with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has thehive-flow 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 chartthehive-flow is pinned at v1.0.1 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