|
certbotbot
Reference documentation for a modular Bash project
|
Maps selected Certbot renewal paths between canonical and private roots. More...
Functions | |
| int | certbotbot_renewal_map (String config, String name, String direction) |
| Maps a complete selected lineage's renewal paths atomically. | |
Maps selected Certbot renewal paths between canonical and private roots.
Implements the approved reversible path policy under ADR-022. Only the exact five documented path-bearing keys are changed, and unsupported Certbot metadata fails closed without partially rewriting the file.
| int certbotbot_renewal_map | ( | String | config, |
| String | name, | ||
| String | direction | ||
| ) |
Maps a complete selected lineage's renewal paths atomically.
Requires a restored private configuration passing the local ACME state preflight, and a regular private renewal file for the selected name. prepare converts canonical /etc/letsencrypt paths into the private root; finalize performs exactly the inverse for five durable path fields. Certbot 5.8 can save explicit invocation-private config_dir, work_dir, and logs_dir fields in renewalparams. Under ADR-051, only finalize may omit those fields, and only if each equals the exact current workspace path. prepare and read-only verify reject the three ephemeral fields in archives. The entire input is parsed before a same-directory replacement, so validation failures preserve the original bytes. The exact Certbot pref_challs one-element value dns-01, is accepted under ADR-052; alternate/multiple challenge identities remain forbidden. Other Route53 metadata remains narrowly allowlisted. No account, host, PEM, or S3 data is mutated.
| config | Absolute canonical owned mode-0700 config directory. |
| name | Validated single non-wildcard certificate lineage name. |
| direction | prepare, finalize, or read-only verify. |
| 0 | Paths mapped or canonical metadata verified, as requested. |
| 64 | Invalid caller arguments or unsafe config root. |
| 65 | Unexpected, incomplete, or unsafe renewal metadata. |
| 74 | Failure writing a private replacement file. |