langflow

by HelmForge

Helm chartv2.1.2App 1.13.3Apache-2.0Verified publisher

Langflow visual AI workflow builder

About this chart

Langflow Helm Chart

Langflow is a visual builder for AI workflows, RAG applications, agents, and integrations with model providers and vector databases. This HelmForge chart deploys the official docker.io/langflowai/langflow:1.13.3 image with persistent local state by default and explicit production paths for secret management, PostgreSQL-compatible databases, ingress, Gateway API, and horizontal scaling.

Langflow 1.12 adds authorization changes, database migrations and curated default component bundles. Advanced runtime settings can be supplied through app.env or app.envFrom. Review the migration notes below before upgrading existing data.

The chart generates a URL-safe Fernet encryption key and initial superuser password on first install when auth.existingSecret and inline credentials are empty. These values are reused on upgrades. Runtime probes use Langflow's /health_check endpoint so a pod is not marked ready until application services and the database are healthy.

Features

  • Authenticated single-replica SQLite deployment with retained credentials and persistent state.
  • External database and chart-created RWX storage validation for horizontal scaling; operators must verify RWX support on existing claims.
  • Ingress, Gateway API, dual-stack Service, PDB, NetworkPolicy, and placement controls.
  • Existing Secret, envFrom, and explicit provider-variable support.
  • Startup, readiness, and liveness checks against the native health endpoint.
  • Opt-in hardened runtime profile that leaves existing upgrade behavior unchanged.

Architecture

The default Recreate Deployment runs the official all-in-one image behind a Service and stores local configuration and SQLite data on a PVC. Production multi-replica releases use an external SQLAlchemy-compatible database and, when local configuration remains persistent, RWX storage. See DESIGN.md for the topology and responsibility boundaries.

Authentication is required by default (auth.autoLogin=false). Automatic login is available only as an explicit development setting. The Deployment uses Recreate so old processes stop before a new version starts database migrations.

Upgrade to 1.12

Before upgrading, stop writers, back up the database and encryption Secret, and export important flows. Start one replica for Alembic migrations; confirm health and flow execution before restoring the desired replica count. Recreate causes an upgrade maintenance window. Changing the database URL does not copy SQLite data to PostgreSQL. Do not run destructive migration repair against the only copy.

Existing generated keys are preserved. Older chart releases generated 64-character alphanumeric keys, which are not valid Fernet keys. Audit the existing key before upgrading or enabling production preflight. Restore the original valid key when encrypted data depends on it; do not silently replace a key or discard credentials. If the old key is unusable, plan recovery of provider credentials and session invalidation before explicitly supplying a new key. New valid keys can be created with python -c 'from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())' in an environment with cryptography installed. Store the result in a Secret.

The chart explicitly retains the official image's authenticated default. Only isolated development deployments should opt in with auth.autoLogin=true.

The default image includes curated components and no longer installs PyTorch or every historical integration. Inventory flows that use removed bundles before upgrading; upstream offers langflowai/langflow-all for the extended profile. Pin and validate an appropriate supported image profile for those integrations. RBAC/provider policy and MCP authentication changes also require integration tests.

External OpenTelemetry dashboards must account for the new HTTP semantic conventions: duration changes from milliseconds to seconds under http.server.request.duration, with renamed method/status/path attributes. The upstream OTEL_SEMCONV_STABILITY_OPT_IN=http/dup setting provides migration compatibility when needed. This chart does not provision an OpenTelemetry collector.

Sources: 1.12 release, database migration guide.

The 1.12.6 patch includes the 1.12.4 and 1.12.5 security hardening, MCP session and credential fixes, plus additional security backports and safer MCP schema discovery. Back up state and review provider environment values before restarting.

Install

helm repo add helmforge https://repo.helmforge.dev
helm install langflow helmforge/langflow

The default deployment starts one Langflow pod on port 7860 and persists /app/langflow, which contains local configuration and the default SQLite database. Ingress class rendering is optional. Set ingress.ingressClassName: "" to omit spec.ingressClassName. When networkPolicy.enabled=true, ingress is restricted to the configured peers. It also enables egress isolation with built-in DNS and HTTPS allowances, then appends networkPolicy.extraEgress for database, provider, or proxy rules. Set networkPolicy.dnsEgressPeers when your cluster DNS pods do not use the default kube-system/kube-dns labels.

Production Configuration

For production, use an existing Secret so credentials remain under your secret-management lifecycle:

auth:
  existingSecret: langflow-auth
  secretKeyKey: secret-key
  superuserKey: superuser
  superuserPasswordKey: superuser-password

Use an external PostgreSQL-compatible database before scaling horizontally:

replicaCount: 3
database:
  mode: external
  existingSecret: langflow-database
persistence:
  accessModes:
    - ReadWriteMany
pdb:
  enabled: true

The chart refuses replicaCount > 1 unless database.url or database.existingSecret is set. When persistence stays enabled for multiple replicas, chart-created claims must use ReadWriteMany. The chart cannot inspect the access modes of persistence.existingClaim, so operators must verify that an existing claim supports safe multi-replica access. Otherwise disable persistence for ephemeral local config or keep a single replica.

The security profile is intentionally opt-in so existing releases retain their pod contract. The official image metadata declares user 1000 and group 0. Enable the verified defaults only after testing custom components:

securityProfile:
  enabled: true
ValueDefaultPurpose
app.port7860Real Langflow HTTP listener
auth.autoLoginfalseDevelopment-only automatic login
auth.existingSecret""Existing Secret containing stable auth credentials
database.modesqliteSelect local SQLite or an external database
database.existingSecret""Existing Secret containing the external database URL
persistence.enabledtruePersist the config directory and SQLite database
networkPolicy.enabledfalseRestrict ingress and isolate egress
securityProfile.enabledfalseApply verified opt-in runtime hardening

global is accepted for parent-chart compatibility but is not consumed directly by Langflow.

Examples

  • Simple deployment
  • Production deployment
  • Database operations
  • Scaling contract

Provider Secrets

Flows often need provider credentials such as OpenAI, Anthropic, GitHub, Hugging Face, or vector database keys. Use app.env for explicit entries or app.envFrom to import a Secret:

app:
  envFrom:
    - secretRef:
        name: langflow-provider-keys

Security Scan: langflow

FrameworkScore
Overall75.76%
MITRE100.00%
NSA65.00%
SOC280.00%

Security posture acceptable.

Documentation

Troubleshooting

  • If startup or readiness fails, inspect application logs and /health_check, then verify the database URL Secret and migrations.
  • If generated credentials change unexpectedly, restore the original auth Secret; replacing LANGFLOW_SECRET_KEY can make encrypted provider data unreadable.
  • If multiple replicas are rejected, configure an external database and either RWX persistence or disposable local config.
  • If provider calls fail under NetworkPolicy, add the exact database, model, vector-store, proxy, and DNS destinations required by the flows.
  • If the hardened profile cannot start a custom component, identify its required writable path and mount an explicit volume instead of disabling the remaining controls globally.

Deploy langflow with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has langflow 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 chartlangflow is pinned at v2.1.2 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