Skip to content

Require at least one keyid for each root role - #334

Open
cvas22 wants to merge 1 commit into
theupdateframework:masterfrom
cvas22:root-role-keyids
Open

cvas22 wants to merge 1 commit into
theupdateframework:masterfrom
cvas22:root-role-keyids

Conversation

@cvas22

@cvas22 cvas22 commented Nov 24, 2026

Copy link
Copy Markdown

Fixes #251. The threshold part of that issue is already done, since #314 made THRESHOLD a positive integer. This adds the other half: each role in root.json's roles object MUST list at least one keyid, since a role with an empty "keyids" can never be signed by anyone.

I said "keyid" in plain text rather than linking the root KEYID definition, because #332 removes that definition and this way the two don't depend on each other. Bumped to 1.0.40 after #332 (1.0.38) and #333 (1.0.39), and I'll fix the version up depending on what lands first. Builds cleanly with bikeshed 7.1.1 and --die-on=warning.

Fixes theupdateframework#251. A role with an empty keyids list can never reach its threshold. The threshold half of the issue was already covered by theupdateframework#314.

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.

Does each of the root metadata roles require at least one keyid, and a threshold >= 1?

1 participant