Repository navigation
feat(container)!: Update image gotenberg/gotenberg to 9.10.1 - #7700
rust84-bot[bot] wants to merge 1 commit into
Conversation
|
Warning
Note 2 resources changed across 2 apps
konflate 0.6.6 · rendered |
{"schema":"review-handoff/v1","review_id":"b1363ba594d7919a","head_sha":"b6ceb2f7ef4f5e47a907dc9d72f24e9c66041f7e","verdict":"approve","review_result":"partial","required_checks":"incomplete","items":[{"id":"17c27b4369e32eceacae2882e86fa12b6f7bace88a3426b4d36f67d68cbf30b0","severity":"minor","category":"verification","path":"kubernetes/apps/selfhosted/paperless/app/helmrelease.yaml","line":100,"message":"Confirm after apply that paperless-ngx 3.5.1's Gotenberg client still converts documents against the rewritten 9.x API (9.0.0 renamed fields, moved post-processing to stages, replaced the PDF engine with litho); readiness probes will not catch broken conversion."},{"id":"a58f860485b8606b126fe6352dc0633138537e5cb4a954ba88e260a443c32f91","severity":"info","category":"verification","path":"kubernetes/apps/selfhosted/paperless/app/helmrelease.yaml","line":104,"message":"Verify the --chromium-disable-javascript and --chromium-allow-list command flags still exist in the Gotenberg 9 CLI (9.0.0 removed deprecated flags); an unknown flag would crash-loop the container."}],"items_total":2,"items_truncated":false,"unresolved_requirement_ids":[],"unresolved_requirement_ids_total":0,"unresolved_requirement_ids_truncated":false,"unresolved_requirement_ids_source_total":0,"unresolved_required_checks":["establish upstream provenance for the updated image: publisher a","inspect the exact old→new upstream release delta for the updated","check upstream security advisories for the updated image version"],"unresolved_required_checks_total":3,"unresolved_required_checks_truncated":false,"unresolved_required_checks_source_total":3,"unresolved_review_obligations":[],"unresolved_review_obligations_total":0,"unresolved_review_obligations_truncated":false,"derived_obligation_state":null}🟡 Automated recommendation: INCOMPLETE — no blocking code defect proven; approval withheld (a mandatory requirement remains unresolved) · 1 minor, 1 info Analysis engine: glm-5.3-flash (openai) — fallback (primary failed) · pr-reviewer-action v3.10.0
Findings (1 minor, 1 info)
Incomplete — no blocking code defect proven; approval withheld (a mandatory requirement remains unresolved). (Model suggestion before validation, not authoritative: Approve.) — a clean single-line Renovate bump ( Checks: Diff, PR metadata (+1/−1, one file), and konflate's rendered diff confirm only the image tag changed; repository unchanged (obligation-1). Provenance established: publisher is the Gotenberg project (releases by gulien), canonical repo Upstream claims: held at code level 2/2 for the 9.10.1 fixes (set-form widget drawing; Evidence providers: konflate rendered diff matches the git diff exactly (2 resources, tag-only); upgrade-impact's "no upstream notes" caveat is superseded by the direct release-body fetches. Tool harness: loop stopped on a request-error after the useful fetches; the gotenberg.dev upgrade-guide fetch was blocked (host not allowlisted). Unknowns / needs verification:
Sources: gotenberg/gotenberg release bodies and tag compares v8.40.0→v9.0.0 through v9.10.0→v9.10.1 (GitHub API); https://github.com/gotenberg/gotenberg/releases/tag/v9.10.1; konflate rendered diff. Unaddressed required checksThe classifier marked these checks as required for this PR's risk profile, but the review does not establish clean coverage for them (unresolved, or dispositioned
Unresolved Required Review EvidenceRequired-evidence coverage is incomplete: the review could not gather the required evidence above, so no defect is claimed here (an unresolved required check is a coverage marker, not a finding). The review is partial and trusted approval is withheld until the evidence is gathered. required review evidence unresolved: obligation-2, obligation-3, obligation-4 (review-owned required check not discharged; review partial, trusted approval withheld; PR 1381). Dependency Upgrade Coverage Accounting (reviewer-reported)
Statuses are the reviewer's answer, not harness receipts. Advisory coverage accounting: gaps are informational, not findings. |
81b43e6 to
b6ceb2f
Compare
This PR contains the following updates:
8.40.0→9.10.1Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
gotenberg/gotenberg
v9.10.1: 9.10.1Compare Source
Bug Fixes
set-formdraws each new value into the field (#1744). A text field or a combo now shows its new value in every widget, on one line in the field's font, with a font installed in the image for text outside Western European. Before,flatten-formprinted the value the stored appearance drew, as did viewers that ignoreNeedAppearances, and in/forms/pdf/pipeit dropped the widgets a field shows through kids. Thanks @SYCHOW.splitwhoseeveryexceeds the page count no longer exhausts memory. It returns the whole document as one part. Thanks @mappygrid.Chore
v9.10.0: 9.10.0Compare Source
New Features
showTrackedChangeson/forms/libreoffice/convert(#1743). A document with tracked changes converts as if every change were accepted, which 9.x has done since its first release. WithshowTrackedChanges=true, it keeps them marked up as Word shows them: deletions struck through, insertions underlined, a bar in the margin. Off by default, so current output does not change. Thanks @PhilipNgo.Bug Fixes
--libreoffice-enable-macros. LibreOffice queues a document's load event instead of firing it, so the macros bound to it ran on only some conversions. They now always run before the export.Chore
v9.9.3: 9.9.3Compare Source
Bug Fixes
--libreoffice-deny-list. LibreOffice goes through the outbound proxy Chromium uses, which matches an HTTPS tunnel on its root URL,https://host/. Before, LibreOffice matchedhttps://host:443, which a rule ending in/never matched, so the request went through. A tunnel shows its host and port only: a rule that must hold for HTTPS names the host. Thanks @johnp.^https://cdn\.example\.com/refused the tunnel tocdn.example.com:443that Chromium's WebSockets and Web Workers, and LibreOffice, open.Content-Disposition, the names theattachstage writes and the filesextract-attachmentsreturns keep letters, digits, spaces and common punctuation; any other character becomes_. A name such asC:evil.docxor..\evilcan no longer point at a Windows path, a Windows device name such asCONgets a_prefix, and two ZIP entries whose names differ by case only get a(2)suffix. Thanks @johnp.Chore
0means for the limit and lifecycle flags (gotenberg/gotenberg.dev#52).v9.9.2: 9.9.2Compare Source
Bug Fixes
index.htmlas a template. Gotenberg reads the page and replaces each{{ toHTML "<file>" }}with its Markdown, so a page can no longer loop or recurse until it exhausts the CPU or the memory, past--api-timeout. The page holds text andtoHTMLactions only, each Markdown file named once: anything else, or a file named twice, answers400with its position. Thanks @mccahan./forms/pdf/formand repeated filenames no longer cost time that grows with the square of their input, and archive extraction stops at the deadline. Thanks @mccahan.--remote-debugging-pipe, so a page can neither list other conversions nor close their tabs. Thanks @mccahan.file://URLs. With--chromium-allow-file-access-from-files, a dedicated, nested, shared or service worker could read files outside its request. Workers now start locked out offile://URLs, while the page keeps the files of its own request. Thanks @mccahan.Chore
v9.9.1: 9.9.1Compare Source
Bug Fixes
extract-attachmentsholds each attachment to--pdf-max-stream-bytes. An attachment compressed with a single filter decoded with no bound, so a small PDF could expand to any size on disk and in the response. Past the limit, the stage now fails with a 400 naming the attachment, and leaves no partial file behind. Thanks @nlugovskoi.Chore
v9.9.0: 9.9.0Compare Source
New Features
localeon/forms/libreoffice/convert(#1737). A BCP 47 tag such asen-AUorde-DEformats the dates, numbers and currencies that follow the reader's locale, such as Excel's short date, and sets the page size of a document that defines none. Content with its own language keeps it. Without the field, conversions come out as before, whatever an earlier request asked for. Thanks @robmueller.compressStreamsonoptimize. On by default, it compresses the streams a producer left uncompressed, such as page content or fonts. XMP metadata stays readable.Bug Fixes
remediateoutput (gotenberg/litho#5). The stage appended its repairs to the PDF, so the file kept every object it replaced: the original page content next to the tagged one atPDF/A-*aandPDF/UA, which was written uncompressed. It now rewrites the file and compresses what it writes. A signed PDF still gets its repairs appended, which keeps the signature. Thanks @KingSora.Chore
v9.8.0: 9.8.0Compare Source
New Features
extract-text(#1547).format: "markdown"writes a.mdfile with the headings, paragraphs, lists, tables, block quotes, bold and italic text, code and links of the PDF. A tagged PDF gives its structure, an untagged one its layout. The Chromium and LibreOffice routes print a tagged PDF whenever a stage asks for Markdown, so/forms/chromium/convert/urlwith[{"op":"extract-text","format":"markdown"}]turns a web page into Markdown in one request. Thanks @zeozeozeo.Bug Fixes
cmap, again (gotenberg/litho#2). A barcode font whose Mac Roman subtable maps the no-break space to another glyph than the space still leftGotenberg-Remediation-Residual: 1about one run in three. Thanks @schumacherwork.Chore
v9.7.0: 9.7.0Compare Source
New Features
fileBookmarksonmerge(#1736). Gotenberg 8'stitleBookmarksis back as amergeoption: one bookmark per PDF, at its first page, with the PDF's own bookmarks nested under it.fileBookmarks: {}labels each by its title, falling back to its filename without the extension, as 8.x did.labelpicks the sources to try, amongtitleandfilename, andlabelssets the label of the PDFs it names by filename. A single PDF gets its bookmark too. Thanks @s-bernstein.Bug Fixes
PDF/A and PDF/UA remediation of symbolic TrueType fonts with a Mac Roman
cmap(gotenberg/litho#2). 9.5.1 removed the encoding the standards forbid a symbolic TrueType font only when its program had a single Microsoft Symbolcmapsubtable. Wingdings and barcode fonts that also carry a Mac Roman (1,0) or a Unicode (3,1) subtable still leftGotenberg-Remediation-Residual: 1with ISO 19005-2, 6.2.11.6 t3 at PDF/A-2b. Remediation now removes it too when every code the document shows draws the same glyph with or without the encoding. Thanks @schumacherwork.--chromium-max-memoryand--libreoffice-max-memoryno longer kill a process just after its conversion ended. A memory reading that started during the conversion and finished after it could still kill Chromium or LibreOffice, over the limit but idle. The watch now drops the reading once the conversion is over.Chore
v9.6.0: 9.6.0Compare Source
New Features
dropSignatureson the stages that rewrite a PDF (#1735). A signature covers the bytes of the file it was made in, sosplit,merge,select,optimizeand the other stages that rewrite a PDF answer 400 on a signed one.dropSignatures: trueremoves the signatures and keeps their visible appearance on the page. A stage whose write ends up appending an update, such as a remediation that needs no rewrite, now keeps the signatures instead of answering 400. Thanks @gorankarlic.--libreoffice-max-memoryand--chromium-max-memory(#1734). On cgroup v2, Kubernetes kills every process of a container on OOM, so one runaway conversion took Gotenberg down with every request in flight. Past--libreoffice-max-memory, Gotenberg kills LibreOffice and answers that conversion 422, without retrying it. Past--chromium-max-memory, it restarts Chromium, and the conversions in flight answer 503. Both are off by default. Thanks @alexmonnerie-ys.Chore
v9.5.1: 9.5.1Compare Source
Bug Fixes
/WinAnsiEncodingkept a residual,Gotenberg-Remediation-Residual: 1with ISO 19005-2, 6.2.11.6 t3 at PDF/A-2b. Remediation now removes the encoding the standards forbid such a font when its program draws every code the same without it, and writes the text the encoding gave into a/ToUnicodewhere the font has none, so the page looks and extracts the same. Thanks @schumacherwork.Chore
v9.5.0: 9.5.0Compare Source
New Features
signedin/forms/pdf/info(#1728). Each PDF now says whether it carries a digital signature. Gotenberg doesn't check the signature, and an empty signature field doesn't count. Thanks @MaikNeubert.paperSizetakesA0,A1andA2on the Chromium and LibreOffice routes and in thecomposestage. Thanks @SerhiyBalan.Chore
v9.4.1: 9.4.1Compare Source
Behavior Changes
--chromium-proxy-server. That proxy replaces Gotenberg's pinning proxy, the only layer that cuts off a WebSocket handshake, so a page could open a WebSocket to an address--chromium-deny-private-ips,--chromium-deny-public-ipsor the deny-list refuses, and Gotenberg only logged it. The conversion now fails with a generic403, as it already did for a deny rule that names a path. A Web Worker's WebSockets still reach your proxy unchecked: enforce the policy there too. Thanks @manus-pi.v9.4.0: 9.4.0Compare Source
New Features
positionon the stamp routes and stages (#1725)./forms/pdf/stamp-text,/forms/pdf/stamp-imageand/forms/pdf/stamp-pdf, and their stages, takecenter,top-left,top,top-right,left,right,bottom-left,bottomorbottom-right. Each page places the stamp as a viewer shows it, rotation included, so a document mixing page sizes and orientations gets the stamp in the same place on each.xandythen move it from there, right and up. A turned stamp stays on the page in a corner, and text is placed by the ink of its glyphs:DRAFTcenters on its capitals. Thanks @spoltix.Bug Fixes
LibreOffice converted documents without a page size to Letter (#1723). A spreadsheet, CSV or text file that defines no page size came out Letter in 9.x, since LibreOfficeKit sets the locale to
en-USwhen it starts. It comes out A4 again, as in 8.x. A document that defines its page size keeps it. Thanks @TomokiOdakaSecureNavi.A cookie Chromium refuses answered
500, such as one whose path does not start with/. It now answers400, naming the cookie by its index and name.A hung or dead Chromium or LibreOffice took longer to recover (#1726). A browser that stopped answering cost two requests their whole
--api-timeoutbefore its restart: the request that finds it hung now restarts it after one health probe, and succeeds. A LibreOffice process killed after a timeout now restarts right away rather than on the next request, so/healthno longer reports it down meanwhile. Thanks @justinba1010Chore
v9.3.0: 9.3.0Compare Source
New Features
--pdf-max-render-pixels(#1722). Caps the pixels of a page therenderstage draws, which holds 16 bytes of memory per pixel.0keeps litho's default, 50 million pixels: a Letter or A4 page at 600 dpi, about 560 MB. A larger page answers400, which says to lowerdpior raise the flag.flatten-transparencycomposites at a lower resolution to fit instead. Thanks @DeJean100.--pdf-disable-stages(#1722). The Chromium and LibreOffice conversion routes answer400to astagesfield, and only convert. With--pdf-disable-routes, no request runs PDF processing. Thanks @DeJean100.Bug Fixes
extract-attachmentsanswered500for an attachment whose data does not decode. It now answers400, naming the attachment.rendererror readrender page 1: page 1: page render exceeds its budget: render exceeds its budget: ..., and anextract-texterror could name its page twice. Each now names its page and its failure once. So does astamp-imageerror for an image that does not decode:invalid image data: png: invalid format.Chore
v9.2.0: 9.2.0Compare Source
New Features
compose(#1663)./forms/pdf/composedraws pages of the uploaded PDFs on new pages of the size you choose: a label, a packing slip, a sheet of several pages.paperSize, orpaperWidthandpaperHeight, size the new pages; each entry ofplacementsdraws one page, withsource,sourcePage,page,x,y,scaleandrotation,xandyin points like a stamp. Every uploaded PDF must be placed. Annotations, form fields, bookmarks, tags and metadata of the sources are not carried. It is a stage too. Thanks @twitf.pagesoption takes!to exclude a part, and ranges open at one end:!1is every page but the first,3-page 3 to the end,-3pages 1 to 3,odd,!1the odd pages after the first,!lastevery page but the last. A selection that leaves no page still answers400. Thanks @ericsu14.downloadFromnames files without aContent-Dispositionheader. An entry takesfilename, which wins over the server's. Without it, Gotenberg takes the filename of theContent-Dispositionheader, then the last segment of the URL path when it has an extension, as object stores such as S3 serve. A download nothing names still answers400.Bug Fixes
stamp-pdfdrew rotated or cropped source pages shifted or turned. The stamp now draws the source page as a viewer shows it: its crop box, turned by its/Rotate.Chore
v9.1.0: 9.1.0Compare Source
New Features
extract-attachments(#1718)./forms/pdf/extract-attachmentsreturns the files a PDF embeds, every one or the onenamegives, as<pdf>_<attachment>:invoice.pdfgivesinvoice_factur-x.xml. Several files come back in a ZIP. A PDF without attachments, or without the named one, answers400. Thanks @Betelgeuse1.extract-text./forms/pdf/extract-textreturns the text of each PDF as a.txtfile, pages joined by a form feed.pagesselects pages;invisible,artifactsandannotationsadd invisible text, artifacts such as headers and stamps, and annotation text. Gotenberg does no OCR: a scanned page reads as empty.Both are stages too: they come last in a
stageslist, afterencrypt,signortimestampif any, and the response holds the PDFs and the extracted files.Bug Fixes
backdrop-filter: blur()rendered blank on linux/ppc64le (#1491). The ppc64le image pinned Chromium 146, which has the bug; it now installs the same Chromium as the other platforms. Thanks @florianaiautomation.splitorrenderon several PDFs, could register their output names concurrently.Chore
v9.0.0: 9.0.0Compare Source
Gotenberg 9 is out 🎉
One PDF engine
pdfcpu, QPDF, pdftk and ExifTool are replaced by litho, a PDF engine written in Go for Gotenberg, running in-process.
remediaterepairs a PDF until it conforms to one of the eleven PDF/A levels, to PDF/UA-1 or PDF/UA-2, to both together, or to Factur-X, then checks its own result:Gotenberg-Remediation-Residualcounts the violations left,Gotenberg-Remediation-Rolled-Backthe fixes undone to keep pages, text and images./forms/pdf/validateruns the same checks on any PDF.litho also signs and timestamps, redacts from the file rather than from view, infers a structure tree, renders pages as images, fills and flattens forms in the scripts the image's fonts cover, and shrinks a PDF without touching image quality. A stage that would drop the signatures of a signed PDF answers
400, as does text no font can draw.Stages, in your order
Post-processing is no longer flat fields in a fixed order. A
stageslist runs as written, on every route that makes a PDF and on/forms/pdf/pipefor PDFs you already have:[{"op": "merge"}, {"op": "stamp-text", "text": "DRAFT"}, {"op": "remediate", "profile": "PDF/A-2b"}]26 stages, each also a
/forms/pdf/<op>route with form fields, plus six JSON read routes: info, validation, metadata, bookmarks, attachments and form fields. A broken order answers400before anything runs.LibreOffice through lok
unoconverter, Python and the
sofficelistener are replaced by lok, a long-running LibreOfficeKit process that Gotenberg supervises and restarts after a crash. Macros stay off;--libreoffice-enable-macrosruns them.Fewer dependencies, less CVE surface
Java, Python, unoconverter, pdfcpu, QPDF, pdftk and ExifTool leave the image: fewer packages to patch, and no more CVE reports about tools Gotenberg does not ship. Variants, architectures, user, port and command don't change.
Upgrading
Start from the upgrade guide.
/forms/pdfenginesroutes become/forms/pdfroutes, post-processing fields become stages, and a field with a stage twin now starts withnative. A removed route answers404naming its replacement, a Gotenberg 8 field400saying where it went:Custom builds import
github.com/gotenberg/gotenberg/v9. ThePdfEngine,PdfEngineProviderandMetricsProviderinterfaces and the Prometheus module are gone:OTEL_METRICS_EXPORTER=prometheusserves the same.Everything else
PDF
set-formselects several list items, refuses a value a field cannot hold, and lists the PDF's fields when you name a missing one.flatten-formdraws a value without appearance over the field's own background and border.400naming the characters.optimizepacks objects into compressed streams, stores identical streams once, recompresses images losslessly and subsets fonts. Every pass runs unless turned off. An encrypted input needs adecryptorencryptstage first.mergekeeps each file's bookmarks, remapped, and names the result after the first file in alphanumeric order.renderdraws pages as PNG or JPEG at the resolution you ask.--pdf-max-stream-bytes,--pdf-max-embedded-file-bytesand--pdf-max-image-pixelsbound what litho reads.--pdf-allow-list,--pdf-deny-listand their siblings filter the timestamp authorities it calls.LibreOffice
nativePdfatakesPDF/A-1b,PDF/A-2b,PDF/A-3borPDF/A-4;nativePdfuatakesPDF/UA-1. The PDF/A export is no longer redone after the other steps: end the stages withremediatewhen they may break conformance.initialView,magnificationandpageLayouttake names such asoutlineorfitWidth, not numbers.firstPageOnLeft, which LibreOffice ignored, andnativePdfFormatsare gone.nativeWatermarkColortakes#rrggbb,nativeWatermarkRotationdegrees counter-clockwise,0being horizontal. A plain and a tiled watermark together answer400..epubis no longer accepted.report.docx.pdf, even for a single one.Gotenberg-Output-Filenamestill overrides.Chromium
paperSizenames a format, for LibreOffice too:A3,A4,A5,B4,B5,Letter,LegalorTabloid.waitForWindowStatus, renamed fromwaitWindowStatus, now waits as documented.skipNetworkAlmostIdleEvent=falsenow really waits fornetworkAlmostIdle.400: ascaleout of range, a negative length, awaitDelaylonger than the API timeout. A wait that outlasts the request answers503naming the field and its value.failOnHttpStatusCodesjudges the main page by its frame, not its URL. Screenshotqualitygoes from 1 to 100.--chromium-debug-protocolis set. URL queries and extra header values stay out too.API
archivesunpacks uploaded ZIPs, bounded by--api-archive-max-entriesand--api-archive-max-ratio.NaNand infinities are refused.downloadFromURLs must be absolutehttporhttpsURLs with a host.Gotenberg-Webhook-Events-Urlis required withGotenberg-Webhook-Urland receives errors aswebhook.errorevents: the error URL, method and lists are gone. A failed upload says what the webhook answered, or why it was unreachable.Gotenberg-Output-Filenameis encoded per RFC 6266. Every answer carries the trace header, 404 and 405 included; the version header too, without authentication.--api-bind-iptakes IPv6,--api-start-timeoutbounds module readiness,/debugreports the lok and litho versions.Telemetry
gotenberg.chromium.requests,gotenberg.<engine>.queue.size,chromium.pdf,webhook.send. A failed request carrieserror.type; thestatusattribute and the errors counter are gone.server.addressand aurl.fullstripped of credentials, query and fragment. Outbound URLs lose their query in errors and logs too.4xx, and sets Error on5xxwith the status code aserror.type.OTEL_PROPAGATORSselects the propagators. Each written document is traced, its editing stages as child spans.Security
*_DENY_PRIVATE_IPSchecks, Chromium distrusts the compromised eMudhra roots from the first request, and the pinning proxy stays on with--chromium-host-resolver-rules.500at once.Removed
--log-format,--log-enable-gcp-fields,--api-trace-header,--api-disable-health-check-logging,--chromium-incognito,--webhook-error-allow-listand--webhook-error-deny-listflags, and the--pdfengines-*and--prometheus-*ones.UNOCONVERTER_BIN_PATH, replaced byLOK_BIN_PATH, and the pdfcpu, QPDF, pdftk and ExifTool paths.downloadFrom[].embedded,facturxVersionand the merge bookmark options: the guide names their replacements.Chore
mainand tests the Chromium and LibreOffice variants.Configuration
📅 Schedule: (in timezone Europe/London)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR has been generated by Mend Renovate CLI.