gotenberg

by Ad Noctem Collective

Helm chartv0.8.2App 8.40.0MITVerified publisher

Gotenberg is a Docker-powered stateless API for PDF files.

About this chart

Ad Noctem Collective - Gotenberg Helm Chart

Gotenberg is an open-source, Docker-powered stateless API for PDF files. It provides a developer friendly API to interact with powerful tools like Chromium and LibreOffice for converting numerous document formats (HTML, Markdown, Word, Excel, etc.) into PDF files and more. It delivers all of these features within a single Docker image available on Docker Hub.

Head to the Gotenberg Homepage for in-depth documentation and configuration guides.

✨ TL;DR

Helm Repository Installation

helm repo add adnoctem https://adnoctem.github.io/charts
helm install gotenberg adnoctem/gotenberg --version X.Y.Z

OCI Installation

helm install oci://ghcr.io/adnoctem/charts/gotenberg:X.Y.Z

Introduction

This chart bootstraps a Gotenberg Deployment on a Kubernetes cluster using the Helm package manager. For cluster networking a Service and Ingress manifest is also created, whereas the Ingress needs to be explicitly enabled. Lastly the chart configures a PodDisruptionBudget and HorizontalPodAutoscaler if enabled. RBAC manifests are enabled by default.

The chart supports the configuration of all Gotenberg CLI options via the gotenberg key in Helm's values and makes use of the official Docker Hub container image, although this is configurable via the Image Parameters.

Upgrading

To 0.8.0 (Gotenberg 8.39.0 -> 8.40.0)

Gotenberg 8.40.0 is the final v8 release. It fixes QPDF password argument injection that could expose files readable by the container, Chromium certificate trust and outbound filtering gaps, LibreOffice restart failures, merged PDF/A output and image optimization. Existing Helm value names remain compatible, but review these behavior changes before upgrading:

  • Invalid gotenberg.chromium.hostResolverRules now prevent startup. Correct malformed MAP/EXCLUDE rules. Gotenberg applies the mappings itself and keeps its pinning proxy enabled; network checks evaluate the mapped address. Test custom DNS mappings and loopback access against your outbound policy.
  • denyPrivateIps in the Chromium, LibreOffice and webhook settings now rejects additional IANA special-purpose ranges, including some anycast services. Check required destinations against the ranges in the release notes.
  • Chromium now distrusts the affected eMudhra certificate roots immediately on startup. Replace affected upstream certificate chains; restarting Chromium no longer briefly restores trust.
  • When gotenberg.chromium.proxyServer is configured, enforce outbound restrictions at that proxy as well; WebSocket handshakes can reach it without Gotenberg's checks. Startup now warns about this combination.
  • Invalid Chromium print parameters now return HTTP 400 instead of 500. Adjust client error handling if needed.

For linux/386 deployments, review the upstream runtime-specific seccomp guidance: Docker 29.4 and later can block socketcall, preventing startup. This also affects earlier Gotenberg images; it is not a chart-default change.

To 0.7.0 (Gotenberg 8.38.1 -> 8.39.0)

Gotenberg 8.39.0 introduces security restrictions and changes to generated documents. Review callers before upgrading:

  • Chromium URL conversion and screenshot routes now accept only http:// and https://. Other schemes return HTTP 400. Serve content over HTTP(S), or upload HTML to the corresponding HTML route.
  • ExifTool no longer loads ~/.ExifTool_config. Remove dependencies on custom ExifTool configuration files. Metadata keys j, addtagsfromfile and alltagsfromfile return HTTP 400; use group-qualified names such as XMP:j when writing literal tags with these names.
  • Chromium WebSocket connections now enforce full-URL deny rules, including paths and wss:// patterns. Check required WebSocket endpoints against gotenberg.chromium.denyList; denied handshakes fail the conversion with HTTP 403.
  • The XRECHNUNG Factur-X profile now embeds xrechnung.xml instead of factur-x.xml. Update downstream attachment extraction and validation accordingly; other profiles keep factur-x.xml.
  • The image removes the emSign ECC Root CA - G3 and AAA Certificate Services trust anchors. If an upstream HTTPS service relies on them, replace its certificate chain with one trusted by the updated image.

No Helm values need to be renamed. This release also fixes startup with absolute TLS certificate/key paths; missing or unreadable TLS files now cause startup to fail.

To 0.6.0 (Gotenberg 8.37.0 -> 8.38.1)

Gotenberg 8.38.1 includes the security and behavior changes introduced in 8.38.0:

  • Each Chromium conversion now has isolated cookies, cache and storage. Send required authentication cookies with every request. If all callers trust each other and you require the previous sharing behavior, set gotenberg.chromium.sharedBrowserContext: true. Keep the default false for isolation between callers.
  • gotenberg.chromium.clearCache, clearCookies and clearStorage now apply only when gotenberg.chromium.sharedBrowserContext is enabled; isolated contexts are discarded after each conversion.
  • gotenberg.api.bodyLimit now counts the complete request body, including multipart headers and boundaries, and rejects oversized requests before parsing them. Allow for that overhead if requests near your existing limit now receive HTTP 413.

To 0.4.0 (Gotenberg 8.7.0 -> 8.36.0)

This is a breaking chart release. Review the following before upgrading:

  • gotenberg.chromium.incognito has been removed. Upstream Gotenberg silently ignores this flag since 8.25 - remove it from your values if set.
  • gotenberg.pdf.engines has been replaced by three separate keys: gotenberg.pdf.convertEngines, gotenberg.pdf.readMetadataEngines, and gotenberg.pdf.writeMetadataEngines (upstream 8.13).
  • gotenberg.api.traceHeader has been renamed to gotenberg.api.correlationIdHeader (upstream 8.29).
  • gotenberg.prometheus.disableRouteLogging has been renamed to gotenberg.prometheus.disableRouteTelemetry (upstream 8.29).
  • gotenberg.logging.format now emits --log-std-format instead of the deprecated --log-format (upstream 8.29).
  • Outbound proxy behavior changed (upstream 8.35, breaking): Gotenberg no longer implicitly inherits HTTP_PROXY/HTTPS_PROXY/NO_PROXY for outbound requests. If you rely on an environment proxy for Chromium, LibreOffice, webhook delivery, or downloadFrom, set the corresponding new enableEnvironmentProxy value to true (gotenberg.chromium.enableEnvironmentProxy, gotenberg.libreOffice.enableEnvironmentProxy, gotenberg.webhook.enableEnvironmentProxy).
  • SSRF-hardening flags are available but default permissive (upstream 8.31 briefly defaulted to strict, then reverted in 8.32 after breaking internal-network deployments). If your Gotenberg instance is internet-facing, consider opting into gotenberg.chromium.denyPrivateIps, gotenberg.webhook.denyPrivateIps, and gotenberg.libreOffice.denyPrivateIps.
  • New optional gotenberg.openTelemetry section replaces/complements the existing Prometheus metrics config - see Gotenberg's configuration docs for the full set of OTEL_* environment variables it forwards.
  • A pre-existing template bug has been fixed: readinessProbe and startupProbe previously both rendered as a second/third livenessProbe block due to a copy-paste error. If you had readinessProbe.enabled: true or startupProbe.enabled: true set, the correct probe type is now applied - review your probe behavior after upgrading.

Notes

When is v9 coming

This chart intentionally stays on Gotenberg 8.40.0 for now. We want a thorough chart history that records which application versions, behavior changes and migration decisions each chart release represents. Keeping that history useful also means giving existing users a practical upgrade path instead of immediately switching the chart's configuration contract to a new application major version.

Moving the chart to v9 now would leave v8 users pinned to their last compatible chart release unless they take responsibility for custom images or image-version overrides and matching command-line arguments. An image tag alone is not enough when the chart emits flags for another major version. We want v8 users to remain able to receive chart improvements without having to maintain those workarounds themselves.

We therefore expect to wait longer, likely until upstream moves toward deprecating v8, before changing the chart's default major version. There is no fixed migration date. Upstream already describes 8.40.0 as the final v8 release; this policy does not promise further upstream v8 fixes or indefinite support. We will reassess compatibility and security as that lifecycle develops. Staying on 8.39.0 instead would leave the security and reliability fixes listed in the 0.8.0 upgrade notes unapplied.

Why migrate eventually? Gotenberg 9 replaces pdfcpu, QPDF, pdftk and ExifTool with the in-process litho PDF engine and uses a new LibreOfficeKit worker. Java, Python and several external tools leave the image, reducing the dependencies to patch. New capabilities include PDF conformance checking and repair, signing, redaction and ordered processing stages. These are useful reasons to adopt v9 once the surrounding integrations are ready.

Why wait? The v9 migration guide describes changes that require more than an image bump:

  • Our chart emits --pdfengines-* and --prometheus-* flags that v9 removes or replaces. Engine selection and webhook error settings also need migration.
  • PDF endpoints move from /forms/pdfengines/* to /forms/pdf/*; old paths return 404. Moved fields such as pdfa and merge return 400 and must become stages or their supported native equivalents.
  • Prometheus collection moves through OpenTelemetry, changing scrape configuration and metric names. Existing dashboards and alerts need review.
  • Replacing the PDF engine requires checking representative documents, fonts, metadata and PDF/A output. Some v8 features, including arbitrary ExifTool metadata tags and lossy PDF image optimization, have no direct equivalent. Custom images and scripts that invoke removed tools also need changes.

Paperless is a concrete compatibility concern. Its 3.4.2 conversion code uses the pinned Gotenberg client, whose PDF/A requests send the old pdfa field. Source inspection therefore indicates those conversions would fail against v9; this is not a completed integration test. Our Paperless chart separately pins Gotenberg chart ~0.4.0. Updating this standalone chart neither upgrades that bundled instance nor delivers the 8.40.0 fixes to it; that dependency needs its own compatibility review and update after the desired chart is published.

Parameters

Image parameters

NameDescriptionValue
image.registryThe Docker registry to pull the image fromdocker.io
image.repositoryThe registry repository to pull the image fromgotenberg/gotenberg
image.tagThe image tag to pull8.40.0
image.digestThe image digest to pull""
image.pullPolicyThe Kubernetes image pull policyIfNotPresent
image.pullSecretsA list of secrets to use for pulling images from private registries[]

Name overrides

NameDescriptionValue
nameOverrideString to partially override gotenberg.fullname""
fullnameOverrideString to fully override gotenberg.fullname""

Gotenberg Configuration parameters

| Name | Description | Value | | ------------------------

Deploy gotenberg with OpenTenant

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