Skip to main content

Module presets

Module presets 

Source
Expand description

Helper function to create common authentication configurations.

Presets that include ambient discovery (AuthStrategy::Default) opt into AuthMode::AllowAmbient explicitly, since their purpose is operator-style access to first-party/trusted remotes. The strict certificate default is preserved in every preset.

Functionsยง

github_token
GitHub personal access token scoped to the canonical github.com authority, with SSH-agent and ambient fallback.
public_only
Public repository access via ambient discovery only. Opts into AllowAmbient.
ssh_key_file
SSH key file authentication with agent and ambient fallback.
ssh_standard
Standard SSH configuration (agent + ambient fallback). Opts into AllowAmbient because the ambient fallback is the explicit intent.