Repository navigation
fix: add CA certificates so pgBackRest verifies TLS to R2 - #3
Merged
Merged
Conversation
The image had no CA trust bundle. pgBackRest failed against R2 with "[095] unable to get local issuer certificate". Install the pinned Debian ca-certificates package. The smoke test now connects pgBackRest to a public R2 host with TLS verification on. Refs JUDY-2045 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
judy
approved these changes
Nov 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The published image cannot send backups to Cloudflare R2. It has no CA trust bundle, so pgBackRest stops with
[095] unable to get local issuer certificate. Until now, the only way to make it work was to mount the host's certificates into the container.What
ca-certificatespackage (pinned, the same as pgBackRest).pub-…r2.dev) with TLS verification on. It passes when R2 sends back an HTTP error, because that error can only come after a verified handshake. It fails on[095].Verification
[095] … unable to get local issuer certificate../test-imagepasses, withpgBackRest reached R2 over verified TLS.<account>.r2.cloudflarestorage.com) with real credentials. A made-up account ID gives no certificate, and the real ID should not go into a public repo. That check is part of JUDY-1966.Operator steps
After merge, push a new
postgres-v*tag (for examplepostgres-v1.0.1). Then update the pin in Kormosconfig/deploy.yml.Ticket: JUDY-2045. Pipeline: direct run, Work stage. The PR stays a draft until review.
🤖 Generated with Claude Code