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

Retrieves one selected current object without any S3 write authority. More...

Functions

int certbotbot_client_s3_fetch (String workspace, String bucket, String key)
 Stages one nonempty current S3 object into a private workspace.
 

Detailed Description

Retrieves one selected current object without any S3 write authority.

The caller owns an absolute private mode-0700 workspace. HeadObject 404 proves absence only when HeadBucket succeeds. AWS errors are classified without exposing raw stderr or any downloaded content. The resulting downloaded.tar.gz contains unvalidated bytes for task #53.

Function Documentation

◆ certbotbot_client_s3_fetch()

int certbotbot_client_s3_fetch ( String  workspace,
String  bucket,
String  key 
)

Stages one nonempty current S3 object into a private workspace.

Parameters
workspaceNew private absolute staging directory (0700).
bucketOperator-selected existing S3 bucket.
keyExact selected current object key.
STDIN
Nothing is read from STDIN.
Returns
Nothing is written to STDOUT; bytes staged as downloaded.tar.gz.
Return values
0Nonempty untrusted object staged.
64Invalid workspace or object selection.
66Confirmed absent key.
69Missing/incompatible AWS client or uncertain remote operation.
74Failed local staging or empty/partial download.