Repository navigation
fix(certbot): bound the zone listing, write keys owner-only, publish the live pair atomically, and rotate on renewal - #1241
Merged
Merged
Conversation
This was referenced Sep 20, 2026
# Conflicts: # CHANGELOG.md
kvinwang
added a commit
that referenced
this pull request
Sep 25, 2026
…n and bounded hooks PR #1241 writes account and certificate keys owner-only, publishes the live pair through one .current link, issues every renewal under a new key, bounds the renewed hook by renew_timeout and caps Cloudflare zone discovery. tc-gw-certbot-006 checks the first four against the real CLI and tc-gw-certbot-003 runs the zone-cap test. Signed-off-by: Kevin Wang <wy721@qq.com>
kvinwang
added a commit
that referenced
this pull request
Nov 8, 2026
…n and bounded hooks PR #1241 writes account and certificate keys owner-only, publishes the live pair through one .current link, issues every renewal under a new key, bounds the renewed hook by renew_timeout and caps Cloudflare zone discovery. tc-gw-certbot-006 checks the first four against the real CLI and tc-gw-certbot-003 runs the zone-cap test. Signed-off-by: Kevin Wang <wy721@qq.com>
kvinwang
added a commit
that referenced
this pull request
Nov 8, 2026
…n and bounded hooks PR #1241 writes account and certificate keys owner-only, publishes the live pair through one .current link, issues every renewal under a new key, bounds the renewed hook by renew_timeout and caps Cloudflare zone discovery. tc-gw-certbot-006 checks the first four against the real CLI and tc-gw-certbot-003 runs the zone-cap test. Signed-off-by: Kevin Wang <wy721@qq.com>
kvinwang
added a commit
that referenced
this pull request
Nov 10, 2026
…n and bounded hooks PR #1241 writes account and certificate keys owner-only, publishes the live pair through one .current link, issues every renewal under a new key, bounds the renewed hook by renew_timeout and caps Cloudflare zone discovery. tc-gw-certbot-006 checks the first four against the real CLI and tc-gw-certbot-003 runs the zone-cap test. Signed-off-by: Kevin Wang <wy721@qq.com>
kvinwang
added a commit
that referenced
this pull request
Nov 11, 2026
…n and bounded hooks PR #1241 writes account and certificate keys owner-only, publishes the live pair through one .current link, issues every renewal under a new key, bounds the renewed hook by renew_timeout and caps Cloudflare zone discovery. tc-gw-certbot-006 checks the first four against the real CLI and tc-gw-certbot-003 runs the zone-cap test. Signed-off-by: Kevin Wang <wy721@qq.com>
kvinwang
added a commit
that referenced
this pull request
Nov 11, 2026
…n and bounded hooks PR #1241 writes account and certificate keys owner-only, publishes the live pair through one .current link, issues every renewal under a new key, bounds the renewed hook by renew_timeout and caps Cloudflare zone discovery. tc-gw-certbot-006 checks the first four against the real CLI and tc-gw-certbot-003 runs the zone-cap test. Signed-off-by: Kevin Wang <wy721@qq.com>
kvinwang
added a commit
that referenced
this pull request
Nov 16, 2026
…n and bounded hooks PR #1241 writes account and certificate keys owner-only, publishes the live pair through one .current link, issues every renewal under a new key, bounds the renewed hook by renew_timeout and caps Cloudflare zone discovery. tc-gw-certbot-006 checks the first four against the real CLI and tc-gw-certbot-003 runs the zone-cap test. Signed-off-by: Kevin Wang <wy721@qq.com>
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.
Six defects in the
certbotcrate. Item 1 also affects the gateway; items 2–6 affect the standalonecertbot-clionly.total_pages. Zone discovery runs under the cluster-wide ACME lock. Now: 30 s timeout on every call, zone listing capped at 100 pages (warns when truncated).safe_write_with_mode(.., 0o600).ln_forcewas remove-then-symlink, solive/cert.pemcould be missing, and cert and key flipped separately. Now both live names resolve through one.currentsymlink that is swapped with a singlerename(2). Existing layouts migrate on the next publish.live/key.pemfor every renewal. It now issues each certificate under a new key, as the gateway'sdistributed_certbotalready does. Past keys stay in the archive.std::process::Command::status()inside the async loop. Now it usestokio::processwithkill_on_drop, bounded byrenew_timeout.tries: u8DNS poll counter could overflow. Changed tou32.Verification
Regression tests fail on
next:zone_discovery_stops_at_the_page_cap(Elapsed(())after 10 s)a_stored_certificate_key_is_owner_only/stored_account_credentials_are_owner_only(436 != 384)a_reader_never_catches_the_live_pair_half_published(cert Err(NotFound))a_hook_that_never_returns_gives_the_renewal_loop_back(held 30 s)Checks run:
cargo test -p certbot: passcargo clippy -p certbot -p certbot-cli --all-targets -- -D warnings: cleancargo check -p dstack-gateway: clean