Migration#
Recommended migration flow:
Start writing with current compact payload formats and active key ids.
Keep old keys in key rings for read-path compatibility.
Re-encrypt legacy strings/files/envelopes to active key ids.
Remove retired keys after successful migration and verification.
JWT migration notes:
Enforce strict validation incrementally with result APIs.
Require
kidwhen using key-set verification mode.