gotenberg
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.hostResolverRulesnow prevent startup. Correct malformedMAP/EXCLUDErules. 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. denyPrivateIpsin 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.proxyServeris 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://andhttps://. 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 keysj,addtagsfromfileandalltagsfromfilereturn HTTP 400; use group-qualified names such asXMP:jwhen writing literal tags with these names. - Chromium WebSocket connections now enforce full-URL deny rules, including paths and
wss://patterns. Check required WebSocket endpoints againstgotenberg.chromium.denyList; denied handshakes fail the conversion with HTTP 403. - The
XRECHNUNGFactur-X profile now embedsxrechnung.xmlinstead offactur-x.xml. Update downstream attachment extraction and validation accordingly; other profiles keepfactur-x.xml. - The image removes the
emSign ECC Root CA - G3andAAA Certificate Servicestrust 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 defaultfalsefor isolation between callers. gotenberg.chromium.clearCache,clearCookiesandclearStoragenow apply only whengotenberg.chromium.sharedBrowserContextis enabled; isolated contexts are discarded after each conversion.gotenberg.api.bodyLimitnow 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.incognitohas been removed. Upstream Gotenberg silently ignores this flag since 8.25 - remove it from your values if set.gotenberg.pdf.engineshas been replaced by three separate keys:gotenberg.pdf.convertEngines,gotenberg.pdf.readMetadataEngines, andgotenberg.pdf.writeMetadataEngines(upstream 8.13).gotenberg.api.traceHeaderhas been renamed togotenberg.api.correlationIdHeader(upstream 8.29).gotenberg.prometheus.disableRouteLogginghas been renamed togotenberg.prometheus.disableRouteTelemetry(upstream 8.29).gotenberg.logging.formatnow emits--log-std-formatinstead 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_PROXYfor outbound requests. If you rely on an environment proxy for Chromium, LibreOffice, webhook delivery, ordownloadFrom, set the corresponding newenableEnvironmentProxyvalue totrue(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, andgotenberg.libreOffice.denyPrivateIps. - New optional
gotenberg.openTelemetrysection replaces/complements the existing Prometheus metrics config - see Gotenberg's configuration docs for the full set ofOTEL_*environment variables it forwards. - A pre-existing template bug has been fixed:
readinessProbeandstartupProbepreviously both rendered as a second/thirdlivenessProbeblock due to a copy-paste error. If you hadreadinessProbe.enabled: trueorstartupProbe.enabled: trueset, 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 aspdfaandmergereturn 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
| Name | Description | Value |
|---|---|---|
image.registry | The Docker registry to pull the image from | docker.io |
image.repository | The registry repository to pull the image from | gotenberg/gotenberg |
image.tag | The image tag to pull | 8.40.0 |
image.digest | The image digest to pull | "" |
image.pullPolicy | The Kubernetes image pull policy | IfNotPresent |
image.pullSecrets | A list of secrets to use for pulling images from private registries | [] |
Name overrides
| Name | Description | Value |
|---|---|---|
nameOverride | String to partially override gotenberg.fullname | "" |
fullnameOverride | String 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartgotenberg is pinned at v0.8.2 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