module documentation
TTL cache of configured credentials.
The cache isn't bound to an event loop, so that it can be shared across clients created under different loops (e.g. the per-invocation loops of a Lambda worker). Fetches run in daemon threads, state is guarded by thread locks, and callers wait for a fetch on their own loop.
| Class | |
One or more secrets that are fetched and replaced together, cached as a single parsed value. |
| Class | |
TTL cache of the configured credentials that falls back to the last fetched value, up to max_staleness old, when a refresh fails. |
| Class | |
Configured secret IDs. Empty strings are unset. |
| Exception | |
A failed fetch of one or more secrets, with its failure_reason label. |
| Constant | FAILED |
Undocumented |
| Variable | logger |
Undocumented |
| Class | _ |
Undocumented |
| Function | _new |
Entry for the client cert and key, which may be the same secret if bundled. Each secret's relevant PEM blocks are extracted, so a bundled secret can be used as both. A newly fetched pair that doesn't match (e... |
| Function | _new |
Undocumented |
| Function | _parse |
Undocumented |
| Function | _pem |
Undocumented |
| Constant | _CERT |
Undocumented |
| Constant | _KEY |
Undocumented |
| Type Variable | _T |
Undocumented |
def _new_client_cert_entry(cert_id:
str, key_id: str) -> CacheEntry[ tuple[ bytes, bytes]]:
(source)
¶
Entry for the client cert and key, which may be the same secret if bundled. Each secret's relevant PEM blocks are extracted, so a bundled secret can be used as both. A newly fetched pair that doesn't match (e.g. fetched partway through rotating separate cert and key secrets) is treated as a failed fetch, so the previous pair keeps being used.
Undocumented
| Value |
|
Undocumented
| Value |
|