Skip to main content

rotate_es256_keys

Function rotate_es256_keys 

Source
pub async fn rotate_es256_keys(
    config: &OAuthConfig,
    secrets_dir: &Path,
    store: &Es256SigningKeyStore,
    now: i64,
) -> bool
Expand description

Returns true if the active key was promoted (lead → active). An installed in-process promotion hook is invoked before the candidate becomes visible.

Promotion is recoverable with respect to the live key: the store write guard prevents readers from observing the candidate key until persistence and the persisted repo-head re-sign both succeed. Deployments without an in-process publisher may omit the hook and rely on the bounded overlap slots used by --ipc workers.