You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci: build and publish Certbot deployment image to GHCR - #1
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.
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.
Also checked · 4 match
Docker context excludes credentials Publish only on main push or dispatch Save/load keeps image identity Context check catches subtree leaks
Proof on 5c03f17b (from a4972e97) · Did Proof get it right? Yes · No
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
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.
Summary
Verification
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.