Credentials
Credential injection and environment variable resolution.
Secrets are stored exclusively in environment variables and resolved at
runtime via ${VAR} references. No credential value is ever written to
logs or exposed in exception messages beyond the variable name.
| CLASS | DESCRIPTION |
|---|---|
CredentialError |
Raised when a required credential or env var is missing. |
| FUNCTION | DESCRIPTION |
|---|---|
get_github_token |
Return the GitHub Personal Access Token from the environment. |
resolve_env_refs |
Substitute all |
Classes¶
Functions¶
get_github_token
¶
get_github_token() -> str
Return the GitHub Personal Access Token from the environment.
| RETURNS | DESCRIPTION |
|---|---|
str
|
The value of the |
| RAISES | DESCRIPTION |
|---|---|
CredentialError
|
If |
resolve_env_refs
¶
Substitute all ${VAR} patterns with their environment variable values.
| PARAMETER | DESCRIPTION |
|---|---|
value
|
A string potentially containing
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
str
|
The string with every reference replaced by the corresponding |
str
|
environment variable value. |
| RAISES | DESCRIPTION |
|---|---|
CredentialError
|
If any referenced variable is absent from the environment. The message names the missing variable but never includes surrounding literal text or any resolved values. |