Skip to content

Clarify whether Snapshot meta may contain an extra root.json entry #331

Open

Description

@cky361

Hi TUF maintainers,

I have a narrow conformance question about TUF v1.0.37 (spec commit e2bc7d83d0740aaae8dd7133dd4f237ce3d86b16), section "File formats: snapshot.json" (tuf-spec.md L858-875). The spec defines METAFILES as a METAPATH -> {version, length?, hashes?} object and states: "For snapshot.json, these are top-level targets metadata and delegated targets metadata." The example (L917-934) lists only targets.json and delegated targets; root key update is handled separately in #update-root (L1310-1361).

However, the spec text does not appear to state explicitly whether an additional root.json entry in snapshot.signed.meta is (a) allowed, (b) forbidden, or (c) something clients MUST reject or MUST ignore.

Could you clarify:

  1. Is such an extra root.json entry permitted by the v1.0.37 format, or is it a conformance violation?
  2. If it is not permitted, MUST a conforming client reject the snapshot, or is it permitted to ignore the entry?
  3. If the current specification does not decide this, would you recommend an errata/clarification path, and which venue should track it?

Motivation: a published repository publishes snapshot.signed.meta["root.json"] with version: 2, length: 5297, and a matching SHA-256 digest. I am asking only for the normative interpretation; I am not asking for a security assessment of that repository. Please let me know if an existing issue already covers this — I found #144/#103/#150 but none appears to answer this specific question.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions