cache_key_check
Checks the cache encryption key once when a pod starts, without failing.
This release doesn't enforce a key yet. The check looks the key up read-only,
logs what it found, and reports it as a cache_encryption_key event, which shows
which hosts can read the key before any cache depends on it.
What is logged depends on who started the process. The desktop app creates the key and puts the orchestrator on its access list, and may not have done so yet, so a missing key there is only noted. Anything else (a headless pod, the SDK) is warned that the next release will require a key or an opt-out. A malformed key setting, or a key that doesn't match the caches, is an error wherever it happens, even where the site has opted out, since caches already encrypted still need the key.
Module
Functions
check_cache_key_at_startup
def check_cache_key_at_startup() ‑> None:Looks up the cache key once per process, logs and reports it.
Never raises: this release doesn't depend on the key, so a failed check must not stop a pod from starting. Later calls in the same process do nothing.
started_by_desktop_app
def started_by_desktop_app() ‑> bool:Whether the desktop app started this process.
The app sets ORCHESTRATOR_UUID on every orchestrator it starts, as a
runtime value it never writes to its config file, and pods inherit it.
Headless sites run pods without the orchestrator, so never have it. Only
its presence counts: dev builds of the app set it to
DEVELOPMENT_ORCHESTRATOR, which is also the orchestrator's value when it
is unset.
Global variables
KEY_REQUIRED : Final[bool]- Whether this release refuses to open the caches without a key.