Skip to main content

Module service_jwt

Module service_jwt 

Source
Expand description

Shared helper for service JWT issuance with load-or-renew semantics.

Both the wizard and bootstrap manager use this function to avoid duplicating the “load existing JWT, renew if within 7 days of expiry” logic.

Functions§

issue_or_load_service_jwt
Load an existing service JWT from disk, or sign a new one if absent, within RENEW_THRESHOLD seconds of expiry, not binding the local issuer URL in BOTH iss and aud, or carrying a classical (non-PQ-covering) header alg — the last two are backfills that re-mint tokens older bootstraps (or older renewal paths, which stamped iss but not aud) produced in shapes the composite dispatch verification now rejects.