Gotenberg's conversion API: outbound URL policy and document retention boundaries
Gotenberg turns URLs, HTML, office documents and images into PDFs or screenshots. It is often deployed as an internal service for invoices, reports and document pipelines. The API accepts a URL or uploaded file, runs conversion engines and may call a webhook with the result. That design makes the service a bridge between an application and arbitrary content. The bridge needs an outbound policy and a clear data-retention boundary.
The Gotenberg documentation recommends keeping the service behind a firewall. It supports basic authentication and OIDC bearer tokens, and recent versions include controls for URL conversion, downloads and webhook destinations. The error reference says the outbound URL filter returns 403 when it blocks a URL. These controls matter because a conversion request can cause the server to fetch a URL that the caller chooses.
Outbound request filtering should be tested with the same care as application authorization. A deny-private-IP setting must cover redirects, downloadFrom URLs, webhooks and Chromium subrequests. The documentation warns that WebSocket checks may not apply in every execution path and that the host resolver rules are not a complete policy. Review the actual version and its documented behavior rather than assuming one flag covers every route.
The API authentication choice depends on the caller model. Basic authentication is simple for an internal service, while OIDC can bind a request to a workload identity. In either case, restrict the network path and rotate credentials. A conversion service that accepts unauthenticated requests from a shared network can be used to fetch internal URLs or exhaust CPU and storage.
File retention needs a written policy. Temporary files, rendered PDFs, LibreOffice profiles and Chromium caches can contain sensitive documents. If webhooks are used, the remote endpoint and any intermediate object store become part of the data path. Delete temporary content on a schedule and prevent error logs from recording full document bodies or signed URLs.
ZoomEye observations collected on 2026-11-24 with sub_type=all, page 1 and page size 1 returned 4,036 for app="Gotenberg", 8 for title="Gotenberg" and 340,058 for http.body="Gotenberg". The application count is the most relevant lead, but the body count is too broad for a deployment estimate. Many pages may mention Gotenberg without running the service. None of these counts proves that an API is unauthenticated or that an outbound request is possible.
For an owned match, confirm the service through its API behavior or an internal inventory record, then test the authentication boundary and outbound policy from a controlled client. Do not ask a third-party service to fetch a URL for you. Check whether the API is bound only to localhost, a private container network or an ingress with authentication.
Logging should record the caller identity, conversion type, destination host and policy decision without storing the full document. Alert on blocked outbound requests and sudden conversion spikes. A burst may be legitimate batch work, but it can also be a sign that an attacker is probing internal addresses or using the service for resource exhaustion.
Top comments (0)