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

Resolves literal read-only client configuration. More...

Functions

int certbotbot_client_error (String message, String status)
 Reports a fixed, nonsecret error.
 
int certbotbot_client_read_file (String path)
 Parses literal KEY=VALUE configuration without shell evaluation.
 
int certbotbot_client_config_resolve (String arg)
 Resolves client CLI, environment and literal file settings.
 

Variables

AssociativeArray CERTBOTBOT_CLIENT_FILE_VALUES
 Parsed literal configuration.
 

Detailed Description

Resolves literal read-only client configuration.

CLI > exported environment > literal .env > defaults. The client accepts the producer's nonsecret file keys for file sharing, but activates only S3 bucket, current key and ADR-037 nonsecret encryption mode. The secret comes only from an exported environment variable captured by the caller. Literal configuration is data, never evaluated as shell code.

Function Documentation

◆ certbotbot_client_config_resolve()

int certbotbot_client_config_resolve ( String  arg)

Resolves client CLI, environment and literal file settings.

Parameters
argClient options; destination is CLI-only.
STDIN
Nothing is read from STDIN.
Returns
Destination, frozen bucket/key and effective client crypto mode.
Return values
0All settings accepted.
64Invalid input.

◆ certbotbot_client_error()

int certbotbot_client_error ( String  message,
String  status 
)

Reports a fixed, nonsecret error.

Parameters
messageStatic diagnostic.
statusNonzero exit status.
STDIN
Nothing is read from STDIN.
Returns
Nothing is written to STDOUT.
Return values
64Invalid CLI or configuration.

◆ certbotbot_client_read_file()

int certbotbot_client_read_file ( String  path)

Parses literal KEY=VALUE configuration without shell evaluation.

Parameters
pathExisting config file.
STDIN
Nothing is read from STDIN.
Returns
Parsed values in CERTBOTBOT_CLIENT_FILE_VALUES.
Return values
0File accepted.
64Invalid file.

Variable Documentation

◆ CERTBOTBOT_CLIENT_FILE_VALUES

CERTBOTBOT_CLIENT_FILE_VALUES

Parsed literal configuration.

Bash variable: read-write associative_array