Documentation
¶
Overview ¶
Package credentials holds the two guards every driver runs before it talks to a cloud API: the provider credential presence check (bash: utils/credentials.sh, credentials::require) and the HTTPS-only URL check (bash: utils/http.sh, http::require_https). Bearer tokens travel on these calls, never over plain HTTP.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NoNewline ¶
NoNewline refuses a credential value that contains a CR or LF. The carriers the drivers feed such a value through are line based (a curl config line, an env file for kubectl --from-env-file), so a newline in the value breaks the line. name is the environment variable the value came from. The returned error is already printed (ui.Handled).
Types ¶
This section is empty.