thehive-flow

by StrangeBee

Helm chartv1.0.1App 6.0.0-1AGPL-3.0-or-laterVerified publisher

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>-jobs namespace (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 (use codex.languageImages to repoint them at an internal registry for air-gapped clusters).
  • Docker (opt-in). Set codex.backend: docker to run scripts in short-lived Docker containers instead. This needs a reachable Docker endpoint: on nodes that expose a Docker socket (kind, Docker Desktop) enable dockerSocketProxy; on containerd/CRI-O clusters (e.g. EKS/Bottlerocket, which have no Docker socket) point codex.dockerHost at an external Docker daemon.

Homepage: https://strangebee.com/thehive/

Maintainers

NameEmailUrl
StrangeBeehttps://strangebee.com/

Source Code

Requirements

Kubernetes: >=1.29.0-0

RepositoryNameVersion
https://temporalio.github.io/helm-chartstemporal1.8.0

Values

KeyTypeDefaultDescription
affinityobject{}affinity for the TheHive Flow pod.
blobstore.backendstring"s3"Backend: "s3" (durable). "memory" is unit-test-only and rejected at startup (the chart fails the render).
blobstore.s3.accessKeyIdstring"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.bucketstring"thehive-flow"Bucket for blobs.
blobstore.s3.endpointstring"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.regionstring"us-east-1"Region. Some gateways ignore it, but the AWS SDK requires a value.
blobstore.s3.usePathStylebooltruePath-style addressing. true for most S3-compatible gateways; false for AWS S3 (virtual-hosted).
codex.backendstring"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.dockerHoststring""DOCKER_HOST for the docker backend. Empty + dockerSocketProxy.enabled auto-wires the proxy. Ignored when backend is kubernetes.
codex.kubernetes.activeDeadlineSecondsint0Cap a Job's total run time in seconds (0 → backend default).
codex.kubernetes.assistantImage.repositorystring"docker.io/strangebee/thehive-flow-assistant"Assistant init/sidecar image repository (moves blobs between S3 and the Job work dir).
codex.kubernetes.assistantImage.tagstring""Image tag. Empty falls back to .Chart.AppVersion.
codex.kubernetes.ephemeralStoragestring""Cap the shared work-dir emptyDir (e.g. "1Gi"); empty = uncapped.
codex.kubernetes.gracePeriodSecondsint0Pod terminationGracePeriodSeconds for output promotion (0 → backend default).
codex.kubernetes.imagePullSecretslist[]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.jobNamespacestring""Namespace for Codex Jobs. Empty defaults to "-jobs".
codex.kubernetes.nodeSelectorlist[]nodeSelector for Job pods, as "key=value" strings.
codex.kubernetes.objectStoreSecretstring""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.createbooltrueCreate 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.resourcesobject{}Default CPU/memory requests+limits for the user (script) container.
codex.kubernetes.serviceAccountstring"codex-jobs"ServiceAccount the Job pods run as (created when rbac.create).
codex.kubernetes.serviceAccountAnnotationsobject{}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.ttlSecondsAfterFinishedint0Auto-delete finished Jobs after N seconds (0 → backend default).
codex.languageImagesobject{}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.maxConcurrentActivityExecutionSizeintnilMax 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.addrstring"0.0.0.0:8081"Bind address for the REST API listener.
config.api.public.enablebooltrueEnable the REST API listener.
config.api.public.trusted_proxieslist[]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.urlstring""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.addrstring"0.0.0.0:9090"Bind address for the observability listener (livez/readyz/metrics).
config.modules.observability.metrics.prometheus.enabledbooltrueExpose Prometheus metrics on the observability listener.
config.modules.observability.pprof.enabledboolfalseExpose pprof endpoints on the observability listener.
config.modules.runs.retentionstring"168h"Run retention. TheHive Flow is the source of truth for retention.
config.modules.runs.syncTemporalRetentionstringnilSync 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.allowlistlist[]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_loggingboolfalseLog every HTTP activity request.
config.modules.workers.activities.mailer.fromstring""Default sender address.
config.modules.workers.activities.mailer.hoststring""SMTP server. Empty keeps the configuration pushed by TheHive; set, it overrides it.
config.modules.workers.activities.mailer.portint587SMTP port, 1–65535.
config.modules.workers.activities.mailer.tlsbooltrueSTARTTLS, 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.userstring""SMTP username. Its password comes from secrets.mailerPassword.
config.modules.workers.activities.max_concurrent_activity_task_pollersintnilActivity-task pollers; null leaves the Temporal SDK to decide. A non-integer or negative is refused.
config.modules.workers.activities.thehive.urlstring"http://thehive:9000"TheHive URL (assumes a Service named thehive in the namespace).
config.modules.workers.workflows.max_concurrent_workflow_task_pollersintnilWorkflow-task pollers; null leaves the Temporal SDK to decide. A non-integer, negative or 1 is refused.
containerSecurityContextobject{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true}Container-level securityContext for the TheHive Flow container.
dockerSocketProxy.enabledboolfalseDeploy the embedded docker-socket-proxy. Off by default.
dockerSocketProxy.hostSocketPathstring"/var/run/docker.sock"Path to the Docker socket on the node, hostPath-mounted read-only into the proxy.
dockerSocketProxy.image.pullPolicystring"IfNotPresent"Image pull policy.
dockerSocketProxy.image.repositorystring"docker.io/tecnativa/docker-socket-proxy"Container image repository for the docker socket proxy.
dockerSocketProxy.image.tagstring"v0.5.0@sha256:1f5038b54f06c3e18422902cf00ba21803d1c97805aae032e5e6673d532d3459"Image tag.
dockerSocketProxy.permissionsobject{"CONTAINERS":1,"IMAGES":1,"INFO":1,"NETWORKS":1,"POST":1,"VOLUMES":1}Docker API verbs the proxy forwards (1 = allow, 0 = deny).
dockerSocketProxy.resourcesobject{"limits":{"memory":"64Mi"},"requests":{"cpu":"10m","memory":"32Mi"}}Resource requests/limits for the proxy pod.
dockerSocketProxy.service.portint2375Service port (and container port).
dockerSocketProxy.service.typestring"ClusterIP"Service type for the proxy.
externalTemporal.hoststring""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.portint7233External Temporal frontend port.
fullnameOverridestring""Override the entire fullname.
goMemLimitstring""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.
goMemLimitPercentint85Percentage 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.pullPolicystring"IfNotPresent"Image pull policy.
image.repositorystring"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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartthehive-flow is pinned at v1.0.1 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