Spec: add key revocation, key distribution, size limits, replay enfor…#2
Merged
Conversation
…cement
Defense-in-depth additions (no wire-format change).
- §4.1 model_hash now constrained to "sha256:" + hex of weights, omitted
otherwise (no more signature-binding theatre on an undefined field).
- §4.3 (new) Size limits: pin JSON ≤ 64 KiB, extra ≤ 32 entries,
key ≤ 128 B, value ≤ 1 KiB, vec_dim ≤ 2^20, sig exactly 64 B.
- §5 step 0 makes size-limit enforcement a verifier MUST before parsing;
step 7 requires verifiers to MUST-check vectorpin.{record,collection,
tenant}_id against caller-supplied expected values.
- §5 adds KEY_EXPIRED, RECORD_MISMATCH, COLLECTION_MISMATCH,
TENANT_MISMATCH, PARSE_ERROR to the required failure-mode taxonomy.
- §7 split into rotation and revocation; introduces (valid_from,
valid_until) registry semantics so a compromised key invalidates
post-compromise pins without invalidating historical ones.
- §10 (new) Key distribution: fingerprint format, transparency-log
SHOULD, TOFU NOT RECOMMENDED, per-tenant kid separation SHOULD.
- §9 security considerations updated to reference §4.3 DoS limits,
§7 revocation window, and §5 step 7 replay enforcement.
- §11 versioning adds an explicit downgrade-resistance argument.
Wire format unchanged; existing pins continue to verify.
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.
…cement
Defense-in-depth additions (no wire-format change).
Wire format unchanged; existing pins continue to verify.