Skip to content

Define KEYID only once - #332

Open
cvas22 wants to merge 1 commit into
theupdateframework:masterfrom
cvas22:single-keyid-definition
Open

cvas22 wants to merge 1 commit into
theupdateframework:masterfrom
cvas22:single-keyid-definition

Conversation

@cvas22

@cvas22 cvas22 commented Nov 23, 2026

Copy link
Copy Markdown

Fixes #323

Same idea as #322 for THRESHOLD. KEYID was defined twice, once under the signatures array (the sha256 of the canonical key) and once in root.json (the client MUST checks), and refs were split between the two. I moved it to one KEYID definition in the key objects section, next to KEY, kept the existing MUST text, and pointed all the refs at it. The "keyid" entry under signatures now just links to it and keeps the uniqueness rule, and root.json gets a short pointer like DELEGATIONS already has.

I didn't touch the signatures uniqueness MUST vs SHOULD wording since that's #308 and probably wants its own discussion. Bumped to 1.0.38 and the date per the README. I haven't built it with bikeshed locally, so leaning on CI for that.

The spec had two KEYID definitions, one for the signatures array and one
in root.json, with the hashing rule in the first and the client checks
in the second. Merge them into a single KEYID next to KEY in the key
objects section and point every reference at it. No change in meaning.

Fixes theupdateframework#323

Signed-off-by: Srinivas Chippagiri <cvas22@gmail.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Two definitions of KEYID

1 participant