﻿# TUF thresholds count distinct authorized keys, not signature entries

Repeated signatures and valid signatures from another role do not satisfy a TUF role threshold. Test key membership and root-transition conditions explicitly.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/edge-tuf-threshold-distinct-authorized-role-keys/
Language: en

## A longer signature list can carry the same authority

An offline appliance receives model-update metadata with several signature records. Its integration report counts those records and declares the repository threshold satisfied. That shortcut can accept repeated material from the same key or a valid signature belonging to a different role. The relevant question is which distinct authorized keys verified the exact signed payload. Keep the metadata role and trusted policy beside the result; otherwise the count has no stable authorization meaning.

## Read the threshold through the role definition

The [TUF specification](https://theupdateframework.github.io/specification/latest/) associates a role with authorized key identifiers and a threshold. A key contributes only once to that threshold. Signature validity alone is insufficient when the key is not authorized for the role being checked. An application should retain the role, threshold and accepted key identifiers instead of reporting only a generic signature-success flag. This concerns cryptographic authorization; distinct keys do not automatically establish independent people, organizations or secret-storage locations.

## Verify membership before interpreting the count

The [python-tuf implementation](https://raw.githubusercontent.com/theupdateframework/python-tuf/develop/tuf/api/_payload.py) iterates the delegated role key identifiers, verifies the available corresponding signatures and records successful keys by identifier. This structure makes role membership part of verification rather than a later annotation. Preserve the exact payload bytes and trusted metadata used in an investigation. Re-signing modified metadata produces a different verification case, while counting signatures without checking their payload association does not establish authorization for the proposed update.

## Root transition has separate authorization conditions

When root metadata changes, do not combine old-policy and new-policy signing keys into a common total. The specification requires the new root to satisfy the applicable previous-root threshold and its own threshold. The implementation likewise requires both underlying verification results. A union of the observed key identifiers is useful diagnostic information, but it is not the acceptance condition. Record each policy outcome separately so an apparently well-signed transition cannot hide failure on one side.

## Build a fixture that distinguishes the failure classes

Propose harmless test metadata with repeated signatures from an authorized key, a valid wrong-role signature and enough distinct authorized signatures. Add a root-transition case that satisfies only the combined count. The first cases must not be confused with successful role authorization, and the transition must not pass merely through aggregation. Check the expected result through the supported client or verification API. No repository keys were used or update verification campaign executed here; these are proposed acceptance cases.

## A passed threshold is one part of update acceptance

[Artifact verification](/journal/artifact-signature-verification/) supplies the broader trust distinction. [Model-update canaries](/journal/model-update-canary/) address a separate operational decision after artifact selection. TUF threshold success does not by itself complete checks for metadata freshness, versions, target hashes or the model behavior. Keep the complete client workflow intact. Report a narrow outcome such as role threshold satisfied, then retain the remaining update decisions, instead of promoting that result into a guarantee that the downloaded model is safe and suitable.
