certbot --dry-run checkbox in New Cert UI has no effect; real certificates are issued #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
In
_issue_certificate(), the code buildsargv_extraand appends"--dry-run"when the UI checkbox is checked, butargv_extrais never passed toissue_webroot(). Theissue_webroot()method has no parameter to accept extra argv, and theCertbotRunneronly honours itsself.dry_runflag (set from the app-level--dry-runCLI flag, not the UI checkbox). As a result, the UI checkbox labelled "certbot --dry-run (no quota cost)" is silently ignored.Location
src/certbot_manager/tui/app.py, lines 304–328Risk
A user checking the checkbox to rehearse issuance (e.g. to verify domain ownership or quota budget) actually triggers a real
certbot certonlyrun. This:Suggested fix direction
Add a
dry_run: bool = Falseparameter toCertbotRunner.issue_webroot()and conditionally append"--dry-run"to the argv inside that method before callingself._run(). Then threadrequest.certbot_dry_runthrough the call site. Alternatively, construct a temporaryCertbotRunner(dry_run=True)for the duration of the call.Severity
moderate
Found by
Automated audit by Claude Code