Repository navigation
feat(stack-kms-vendor): keyset records, both key modes and the static key backend (CIP-5306) - #1526
Draft
Conversation
|
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true |
Contributor
Mutation testing (cargo-mutants,
|
| caught | missed | unviable | timeout |
|---|---|---|---|
| 60 | 0 | 94 | 0 |
Every mutant in the changed lines was caught by a test.
A key source can route by keyset. It can also load an index key for each settle.
…306) Add keyset records, the vendor seam, the two key modes and the static key backend.
Derive the terms inside the settle. KeysetCipher::prf now returns Option: a keyset whose key backend loads its index key per settle holds no PRF between settles.
Run the suite on the static vendor and on the fake vendor.
Also cover the key mode on retrieve.
freshtonic
force-pushed
the
james/cip-5306-keyset-records-the-two-key-modes-and-the-static-key-backend
branch
from
November 6, 2026 05:10
a4009c2 to
11819bf
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Layer 4 of the CIP-5203 stack. Implements CIP-5306 (ADR-0009).
stack-kms-vendor, with theKeyVendorBackendtrait. Each vendor crate implements only this trait.KeysetRecordis a versioned record, written asstack-keyset:+ base64url, withcreateandrewrap.KeyRouterholds ZeroKMS and at most one vendor.run_batch(concurrency limit, backoff on throttling), theVendorTransporttrait, and a shared contract suite.KeysetCipher::prf()now returns anOption.Decisions are in
docs/plans/2026-11-05-key-vendor-backends-decisions.md(CIP-5306 section).