Repository navigation
feat(stack-kms): typed errors and payload checks for key vendor backends (CIP-5304) - #1522
Conversation
|
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: truePre-merge checks:
|
|
Mutation testing (cargo-mutants,
|
| caught | missed | unviable | timeout |
|---|---|---|---|
| 20 | 0 | 12 | 0 |
Every mutant in the changed lines was caught by a test.
8a5f036 to
d6c5305
Compare
707a00b to
64c59ec
Compare
d6c5305 to
cd77cf8
Compare
64c59ec to
d23ee85
Compare
d23ee85 to
a787ddd
Compare
8036d19 to
fb05412
Compare
a787ddd to
dffc9f5
Compare
|
Scope reduced (2026-11-12). This branch was rebuilt from one final tree by path, and the follow-up PRs #1555 to #1563 were folded in. The plan is In this PR: |
…nds (CIP-5304) Add Error::Backend and Error::ZeroKmsOnly, refuse_zerokms_extensions, IndexKey::from_key_bytes, the stable KeyVendor and KeyMode bytes, and the ZeroKmsKeySource marker. The key source traits are unchanged, so stack-encrypt does not change.
fb05412 to
cd90970
Compare
dffc9f5 to
9a17fe4
Compare
|
Replaced by #1632, in the new stack #1633. The code is the same, rebased onto the latest |
Layer 2 of the CIP-5203 stack. Implements CIP-5304.
KeyLifetimeis returned with the index key, and the stack-encrypt keyset cache obeys it.Error::Backend { vendor, kind, source }andError::ZeroKmsOnlyare added, withrefuse_zerokms_extensionsfor key vendor backends.IndexKey::from_key_bytesis a public constructor.Decisions made without review are in
docs/plans/2026-11-05-key-vendor-backends-decisions.md. Read the CIP-5304 and orchestrator sections.