Skip to content

Verfier rejects valid bundles with more than one tlog entry #1821

Description

@lsd-cat

models.py raises InvalidBundle("expected exactly one log entry in bundle") for any bundle whose verification_material.tlog_entries has length ≠ 1. The comment notes this is "for the time being".

# Extract the log entry. For the time being, we expect
# bundles to only contain a single log entry.
tlog_entries = self._inner.verification_material.tlog_entries
if len(tlog_entries) != 1:
raise InvalidBundle("expected exactly one log entry in bundle")
tlog_entry = tlog_entries[0]

However, the bundle protobuf spec declares tlog_entries as repeated with no exactly-one constraint (contrast the explicit "DSSE envelopes MUST have exactly one signature"), and behavior across the various verifiers is not uniform.

Sources:

Would you be open to a PR to address this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions