documenso

by HelmForge

Helm chartv1.0.5App 2.22.0Apache-2.0Verified publisher

Production-ready Documenso document signing with PostgreSQL, BullMQ, object storage, and immutable secrets

About this chart

Documenso Helm chart

Deploy Documenso, an open-source electronic-signature platform, with a pinned official image, PostgreSQL, optional BullMQ, object storage, External Secrets, and hardened Kubernetes networking.

Features

  • Official Documenso image pinned by immutable multi-platform digest.
  • Bundled HelmForge PostgreSQL and optional Redis 3.1 dependency, or complete external-service Secret contracts.
  • Local, BullMQ, and Inngest background-job modes with scale-out safeguards.
  • Database or S3-compatible document storage and Secret-backed PKCS#12 signing.
  • Native External Secrets resources, Ingress, Gateway API, HPA, PDB, and dual-stack Service support.
  • Restricted non-root runtime, additive NetworkPolicy controls, native health probes, and behavioral k3d validation.

Install

helm install documenso oci://ghcr.io/helmforgedev/helm/documenso \
  --version 1.0.0 \
  --namespace documenso \
  --create-namespace

Keep public registration protected until the initial administrative account and mail delivery have been verified.

Architecture

The official entrypoint applies Prisma migrations and starts the Node.js application on port 3000. The chart waits for PostgreSQL but does not replace the authenticated migration or health checks with a TCP test.

The default topology is a basic single-replica installation with HelmForge PostgreSQL and database-backed local jobs. It starts the application, but document signing remains unavailable until a PKCS#12 certificate is configured. Production scale-out requires documenso.jobsProvider=bullmq, shared Redis, and S3-compatible storage. The chart enforces those prerequisites when replicaCount is greater than one or autoscaling is enabled.

The full component and trust-boundary topology is documented in DESIGN.md.

Image provenance

The default image is ghcr.io/documenso/documenso@sha256:f9976d2142d34ee89506e161b0a5ec859a0c327f3fe0a398b46d3941fc8dd35e, the official v2.22.0 Linux amd64/arm64 manifest verified on 2026-11-19. Review the upstream release before production rollout.

Health contract

  • Startup and readiness: GET /api/health, including PostgreSQL and certificate status.
  • Liveness: TCP port 3000, deliberately independent of PostgreSQL.
  • Certificate diagnostics: GET /api/certificate-status.

A missing signing certificate can produce a health warning without preventing a basic rollout. Production signing should enable the Secret-backed certificate.

Secrets and signing

By default, the chart creates and retains NEXTAUTH_SECRET and both encryption keys using Helm cluster lookup. Set documenso.existingSecret for deterministic GitOps and disaster recovery. Rotating encryption keys without an application migration can make stored values unreadable.

Set certificate.enabled and provide a PKCS#12 file and passphrase through an existing Secret. SMTP, S3, database, Redis, and Gotenberg credentials are also Secret references. The canonical externalSecrets.items contract can materialize any of them with External Secrets Operator.

Network and public exposure

Ingress and Gateway API are opt-in and mutually exclusive. Set the canonical HTTPS documenso.publicUrl explicitly in production. The chart can derive it from the first Ingress host or HTTPRoute hostname for simpler environments.

NetworkPolicy permits namespace-local HTTP ingress, DNS, selected PostgreSQL and Redis services, and public HTTP/HTTPS. Broad public egress excludes private ranges; private SMTP, object-storage, Gotenberg, identity-provider, and webhook destinations need explicit networkPolicy.extraEgress rules. Add an Ingress or Gateway controller from another namespace to networkPolicy.ingressFrom. A non-empty list replaces the default namespace-local peer; include podSelector: {} alongside the controller peer to preserve same-namespace access.

State and recovery

PostgreSQL is the system of record. With database storage it also contains documents; with S3, database and bucket must be backed up consistently. Recovery must preserve:

  1. PostgreSQL.
  2. The S3 bucket when enabled.
  3. The application identity Secret.
  4. The signing certificate and integration Secrets.
  5. Redis when in-flight BullMQ jobs must survive.

Restore the same image version into an isolated namespace, verify login, document access, and signing, and only then perform an upgrade.

Examples

The production example combines external PostgreSQL and Redis, BullMQ, S3, signing, and hardened exposure. Copy examples/production.yaml, replace every placeholder Secret and hostname, then install it with:

helm upgrade --install documenso oci://ghcr.io/helmforgedev/helm/documenso \
  --namespace documenso --create-namespace -f production.yaml

Configuration

Start with the default single-replica topology for evaluation, then make the state, identity, mail, and exposure choices explicit before production. The local job provider stores work in PostgreSQL and calls back into the application; it is intended for development and small installations. BullMQ requires Redis 6.2 or later and provides a self-hosted production queue. Inngest remains an upstream-managed alternative configured through documenso.extraEnv.

Documenso can keep documents in PostgreSQL, but an S3-compatible store is the appropriate shared backend for multi-replica and high-volume installations. Production signing additionally requires a PKCS#12 certificate, while recipient notifications require SMTP. Treat the database, object store, application identity keys, certificate, and integration credentials as one recovery set. The table highlights every operational group; values.yaml is the complete, commented contract, including resource and scheduling subfields.

ValueDefaultPurpose
global{}Values shared with dependency charts
image.tagv2.22.0Human-readable upstream release
image.digestpinnedImmutable official multi-platform manifest
commonAnnotations{}Annotations applied to chart-owned resources
replicaCount1Application replicas
autoscaling.enabledfalseCPU-based HPA with scale-out safeguards
autoscaling.minReplicas2Minimum HPA replica count
autoscaling.maxReplicas5Maximum HPA replica count
podDisruptionBudget.enabledtrueProtect voluntary disruption availability
documenso.publicUrl""Canonical public URL, or derive from routing
documenso.mailFromAddress[email protected]Transactional sender address
documenso.jobsProviderlocalPostgreSQL, BullMQ, or Inngest jobs
documenso.existingSecret""Persistent identity keys
documenso.extraEnv[]Supported advanced upstream settings
database.external.enabledfalseUse externally managed PostgreSQL
database.external.existingSecret""Complete URL-encoded database URLs
database.external.directUrlEnabledfalseSupply a direct Prisma migration URL
postgresql.enabledtrueBundled HelmForge PostgreSQL 2.1.1
postgresql.standalone.persistence.size8GiBundled database capacity
redis.enabledfalseBundled HelmForge Redis 3.1.0 for BullMQ
redis.external.enabledfalseUse an external Redis service
redis.external.existingSecret""External Redis password Secret
smtp.enabledfalseConfigure authenticated SMTP
smtp.existingSecret""SMTP username and password Secret
objectStorage.providerdatabaseDatabase or S3 document storage
objectStorage.s3.bucket""S3-compatible document bucket
objectStorage.s3.existingSecret""S3 access credentials
certificate.enabledfalseSecret-backed PKCS#12 signing
certificate.existingSecret""Certificate and passphrase Secret
gotenberg.enabledfalseUse an external conversion service
externalSecrets.enabledfalseRender native ExternalSecret resources
externalSecrets.items[]Complete ExternalSecret specifications
serviceAccount.automountServiceAccountTokenfalseKeep API credentials out of the pod
service.typeClusterIPKubernetes Service type
service.port3000Client-facing Service port
ingress.enabledfalseRender Kubernetes Ingress
gatewayAPI.enabledfalseRender Gateway API HTTPRoutes
probes.startup.enabledtrueProtect migration startup time
probes.readiness.enabledtrueGate traffic on native health
runtimeStorage.sizeLimit512MiPer-runtime emptyDir capacity
networkPolicy.enabledtrueProduct-aware traffic isolation
networkPolicy.egressIsolationtrueRestrict application egress
networkPolicy.ingressFrom[]Additional Ingress or Gateway controller peers
networkPolicy.extraEgress[]Installation-specific egress rules

Every value is documented in values.yaml and checked by values.schema.json.

Validation scenarios

The chart tests the default topology, BullMQ with Redis, Ingress, Gateway API, dual-stack Service, native External Secrets, immutable identity keys, external service invariants, disruption protection, autoscaling, and scale-out safety. The chart-owned scripts/runtime-smoke.mjs check verifies application health, UID 1001, and a non-empty identity Secret. The k3d wrapper separately verifies rollout readiness, restart state, warning or failure events, and selected crash or error signatures in Pod logs.

Security scan

Security Scan: documenso

FrameworkScore
MITRE100.00%
NSA95.83%
SOC 296.00%
Aggregate resource score96.87%

Kubescape reported no critical or high-severity failures. The remaining medium and low findings are in the maintained stateful-service dependencies, whose writable data filesystems and independent NetworkPolicy contracts are required.

Limitations

  • Upstream runs migrations in every application process; use controlled rolling updates and tested backups.
  • The local jobs provider is unsuitable for multi-replica production.
  • No native Prometheus endpoint is documented, so the chart does not create a misleading ServiceMonitor.
  • Webhook destinations are dynamic and may require per-installation egress rules.

Troubleshooting

  • If the pod is ready but signing fails, configure certificate.enabled and inspect /api/certificate-status; upstream intentionally starts without a signing certificate.
  • If startup waits for PostgreSQL, verify the bundled database pod or the external host, port, Secret URLs, and NetworkPolicy peers.
  • If BullMQ jobs do not advance, confirm documenso.jobsProvider=bullmq, Redis authentication, and access to the configured Redis service.
  • If local jobs cannot call back through a reverse proxy, set the upstream NEXT_PRIVATE_INTERNAL_WEBAPP_URL through documenso.extraEnv.
  • If SMTP, S3, Gotenberg, OAuth, or webhooks time out, add explicit egress rules for private destinations and confirm the cluster CNI enforces NetworkPolicy.

Additional documentation

  • Design
  • External services
  • Operations and recovery
  • Production example

Deploy documenso with OpenTenant

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