|
oc_connect
|
Classes | |
| class | CredentialPathError |
| class | CredentialFileError |
| class | CredentialNotFoundError |
| class | CredentialBackend |
| class | SidecarCredentialBackend |
| class | CredentialBroker |
Functions | |
| Path | _existing_ancestor (Path path) |
| bool | is_gitignored (str|Path path) |
| None | _chmod_private (Path path) |
Variables | |
| int | SECRET_FILE_MODE = 0o600 |
| _NAME_RE = re.compile(r"^[a-z][a-z0-9_.-]*$") | |
| float | _GIT_TIMEOUT_SECONDS = 5.0 |
Sidecar-backed credential broker with a runtime gitignore canary. The implementation follows the plan-216 provider sidecar pattern. Raw values are accepted by the backend and returned only to the caller that asks for a named credential. Diagnostics, printed output, logging, and exception messages carry names and paths only. Dependencies ------------ - oc_connect.workspace (credential_path - the default workspace-anchored sidecar path) - oc_diagnostics (_dbg structured logger) - git (not imported; run as git check-ignore, the canary that proves the sidecar is gitignored)
|
protected |
|
protected |
| bool oc_connect.credentials.is_gitignored | ( | str | Path | path | ) |
Ask git whether *path* is ignored; every probe error fails closed.
Definition at line 69 of file credentials.py.
|
protected |
Definition at line 33 of file credentials.py.
|
protected |
Definition at line 32 of file credentials.py.
| int oc_connect.credentials.SECRET_FILE_MODE = 0o600 |
Definition at line 31 of file credentials.py.