|
certbotbot
Reference documentation for a modular Bash project
|
Authenticates an optional encrypted envelope around the shared tar. More...
Functions | |
| int | certbotbot_crypto_packet_valid (String workspace, String packet) |
| Rejects any GnuPG encrypted payload without the required AEAD mode. | |
| int | certbotbot_crypto_encrypt_packet (String workspace, String source, String target) |
| Creates a verified authenticated OCB ciphertext packet. | |
| int | certbotbot_crypto_decrypt_packet (String workspace, String source, String target) |
| Quarantines decrypted bytes until authenticated GnuPG exits zero. | |
| int | certbotbot_crypto_require (String workspace) |
| Probes the minimum GnuPG version and actual AES-OCB roundtrip. | |
| int | certbotbot_crypto_unwrap (String workspace) |
| Authenticates the downloaded object before ordinary tar restore. | |
| int | certbotbot_crypto_wrap (String workspace) |
| Encrypts a validated full tar candidate and verifies a local roundtrip. | |
Authenticates an optional encrypted envelope around the shared tar.
ADR-031 requires AES-256/OCB, iterated SHA-512 S2K, an exact versioned envelope, and a private staging boundary before exposing plaintext. The operator's exported secret must already have been captured into the unexported CERTBOTBOT_GPG_SECRET variable and removed from the environment. The runtime treats GnuPG as a trusted external executable, not a sandbox.
| int certbotbot_crypto_decrypt_packet | ( | String | workspace, |
| String | source, | ||
| String | target | ||
| ) |
Quarantines decrypted bytes until authenticated GnuPG exits zero.
| workspace | Private runner root with an isolated GPG home. |
| source | Validated-mode packet staged under private root. |
| target | Absent private plaintext staging file. |
| 0 | Authentication succeeded and complete staged plaintext exists. |
| 65 | Authentication or private decryption failed. |
| int certbotbot_crypto_encrypt_packet | ( | String | workspace, |
| String | source, | ||
| String | target | ||
| ) |
Creates a verified authenticated OCB ciphertext packet.
| workspace | Private existing runner root with an isolated GPG home. |
| source | Existing plaintext file, never a remote or logged argument. |
| target | Absent private output filename. |
| 0 | A supported authenticated encryption packet was produced. |
| 65 | Unsupported mode or failed private encryption. |
| int certbotbot_crypto_packet_valid | ( | String | workspace, |
| String | packet | ||
| ) |
Rejects any GnuPG encrypted payload without the required AEAD mode.
| workspace | Owned private runner root with isolated GPG home. |
| packet | Existing private OpenPGP ciphertext file. |
| 0 | Expected AES256/OCB and SHA512 iterated S2K packet layout. |
| 1 | Unrecognized or downgraded OpenPGP packet layout. |
| int certbotbot_crypto_require | ( | String | workspace | ) |
Probes the minimum GnuPG version and actual AES-OCB roundtrip.
| workspace | Newly allocated private mode-0700 runner workspace. |
| 0 | Runtime supports authenticated encryption and decryption. |
| 69 | Missing or incompatible GnuPG runtime. |
| int certbotbot_crypto_unwrap | ( | String | workspace | ) |
Authenticates the downloaded object before ordinary tar restore.
With a known encrypted envelope, successful GnuPG authentication and full gzip/tar validation are required before renaming staged plaintext to downloaded.tar.gz. Plaintext-to-encrypted conversion requires the independently confirmed migration settings before any provider work.
| workspace | Private workspace with downloaded.tar.gz from S3. |
| 0 | Existing object matches the selected mode and migration intent. |
| 65 | Wrong format, invalid key, archive or authentication. |
| int certbotbot_crypto_wrap | ( | String | workspace | ) |
Encrypts a validated full tar candidate and verifies a local roundtrip.
| workspace | Private workspace with an assembled candidate.tar.gz. |
| 0 | Candidate.tar.gz.enc contains verified authenticated ciphertext. |
| 65 | Encryption, format inspection or roundtrip verification failed. |