certbotbot
Reference documentation for a modular Bash project
Loading...
Searching...
No Matches
Functions
client-extract.bash File Reference

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.
 

Detailed Description

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.

Function Documentation

◆ certbotbot_client_extract_and_activate()

int certbotbot_client_extract_and_activate ( String  workspace,
String  destination 
)

Verifies, privately extracts and activates one complete S3 archive.

Parameters
workspaceCanonical private mode-0700 invocation staging directory.
destinationPreviously selected canonical, absent output directory.
STDIN
Nothing is read from STDIN.
STDOUT
Nothing is written to STDOUT. The entrypoint reports the final path.
STDERR
Fixed, nonsecret diagnostics; external extractor output is suppressed.
Returns
A complete normalized Certbot tree at the selected destination.
Return values
0All archive and destination checks passed; output installed.
65Unsupported, encrypted, corrupt, oversized or unsafe archive.
69GNU tar/gzip or required archive inspection tool unavailable.
73The chosen destination is no longer absent or trustworthy.
74Local staging, permission hardening, or rename failed.