Skip to content

ci: build and publish Certbot deployment image to GHCR - #1

Merged
purpleempress merged 2 commits into
mainfrom
ci/deployment-artifacts
Nov 3, 2026
Merged

purpleempress merged 2 commits into
mainfrom
ci/deployment-artifacts

Conversation

@purpleempress

@purpleempress purpleempress commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Build a runnable Certbot image with the scoped amber DNS plugin.
  • Gate container builds on unit tests, package build and installed-wheel discovery; run offline container smoke checks on PRs.
  • Publish the exact tested image to ghcr.io/ambr-s/certbot-dns-amber with sha- and latest tags only on main pushes or manual main runs.
  • Isolate packages:write to the publisher, use Blacksmith runners, and restrict Docker context to nine explicitly named inputs. Path filtering does not detect secrets embedded in those allowed files.
  • Document persistent certificate/journal mounts, read-only credentials, renewal and recovery.

Verification

  • 57 tests passed locally.
  • Real Docker build and offline installed-container smoke checks passed.
  • Docker save/load preserved image identity.
  • Actionlint and independent review passed.

Boundaries

No merge or GHCR publication performed yet. No live DNS or ACME calls. Package visibility is not changed. Base image/action digest pinning and ordering protection for latest are follow-up hardening opportunities.

Docker context correction

Blacksmith correctly identified that directory exceptions admitted extra source-tree files. Commit 5c03f17 removes those exceptions. A real BuildKit regression reproduced nested credential/module/bytecode inclusion before the fix, then confirmed exactly nine allowed files and exclusion of eight synthetic probes. CI runs this before the runtime build. No actual credential exposure was established. Independent review passed.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-03T16:25:03.771470Z a4972e9 PR opened
🔒 Security Review ✅ Completed 2026-11-03T16:29:02.021883Z a4972e9 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@blacksmith-sh

blacksmith-sh Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Matches Image builds and passes offline smoke

With the tightened allowlist the image still builds from a clean cache, and the offline smoke check finds dns-amber with its options, a clean pip check and the recover CLI. It fails with exit 1 when the plugin is removed.

Build and smoke pass

Smoke fails without plugin

Also checked · 4 match

Matches Docker context excludes credentials
Matches Publish only on main push or dispatch
Matches Save/load keeps image identity
Matches Context check catches subtree leaks

Proof on 5c03f17b (from a4972e97) · Did Proof get it right? Yes · No

View full Proof report

@purpleempress
purpleempress merged commit 94ea97f into main Nov 3, 2026
3 checks passed
@purpleempress
purpleempress deleted the ci/deployment-artifacts branch November 3, 2026 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant