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?
models.pyraisesInvalidBundle("expected exactly one log entry in bundle")for any bundle whoseverification_material.tlog_entries has length ≠ 1. The comment notes this is "for the time being".sigstore-python/sigstore/models.py
Lines 441 to 446 in 2c74d8f
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?