|
certbotbot
Reference documentation for a modular Bash project
|
Activates a fully validated plaintext Certbot archive without clobber. More...
Functions | |
| int | certbotbot_client_extract_and_activate (String workspace, String destination) |
| Verifies, privately extracts and activates one complete S3 archive. | |
Activates a fully validated plaintext Certbot archive without clobber.
This module owns the consumer-only transition from untrusted S3 bytes to a complete caller-visible certificate state directory. It reuses the producer's strict gzip/tar validator and inactive restore adapter at build time. Extraction and permission normalization occur only within a new invocation- owned mode-0700 staging directory. An absent destination is rechecked immediately before a same-filesystem no-clobber rename. Concurrent writes by a separate process with the same UID must be serialized by the operator, as explicitly limited in ADR-035. No archive contents are executed.
| int certbotbot_client_extract_and_activate | ( | String | workspace, |
| String | destination | ||
| ) |
Verifies, privately extracts and activates one complete S3 archive.
| workspace | Canonical private mode-0700 invocation staging directory. |
| destination | Previously selected canonical, absent output directory. |
| 0 | All archive and destination checks passed; output installed. |
| 65 | Unsupported, encrypted, corrupt, oversized or unsafe archive. |
| 69 | GNU tar/gzip or required archive inspection tool unavailable. |
| 73 | The chosen destination is no longer absent or trustworthy. |
| 74 | Local staging, permission hardening, or rename failed. |