Skip to content

Add configurable exclusion of attestation files from model signatures#590

Open
ralphbean wants to merge 1 commit intosigstore:mainfrom
ralphbean:exclude-attestations-from-signatures
Open

Add configurable exclusion of attestation files from model signatures#590
ralphbean wants to merge 1 commit intosigstore:mainfrom
ralphbean:exclude-attestations-from-signatures

Conversation

@ralphbean
Copy link
Copy Markdown

Adds support for excluding attestation files (signature and attestation bundle files) from model signatures by default, addressing #586.

Changes

  • Attestation files (*.sig, *.sigstore.json, claims.jsonl) are now excluded from model signatures by default
  • New --ignore-att-paths / --no-ignore-att-paths CLI flag to control this behavior
  • New ignore_att_paths parameter in the hashing API
  • Updated documentation and tests

Rationale

Per #586, attestation files should be signed independently to allow attestations to accumulate throughout a model's lifecycle without invalidating the original signature. This is especially important when using the claims.jsonl pattern where attestations are appended over time.

The exclusion is enabled by default but can be disabled for edge cases where users need different behavior.

Related: ossf/model-signing-spec#4

@ralphbean ralphbean requested review from a team as code owners December 17, 2025 21:20
@ralphbean ralphbean force-pushed the exclude-attestations-from-signatures branch 3 times, most recently from 7da5c0a to d7962a8 Compare December 17, 2025 22:02
Attestation files (*.sig, *.sigstore.json, claims.jsonl) are now excluded
from model signatures by default to allow attestations to accumulate
throughout a model's lifecycle without invalidating the original signature.

This behavior can be controlled via the new --ignore-att-paths CLI flag
or the ignore_att_paths parameter in the hashing API, similar to how
git-related files are handled with --ignore-git-paths.

Fixes sigstore#586

Assisted-by: Claude Sonnet 4.5 <noreply@anthropic.com>
Signed-off-by: Ralph Bean <rbean@redhat.com>
@ralphbean ralphbean force-pushed the exclude-attestations-from-signatures branch from d7962a8 to 05e04cc Compare December 17, 2025 22:05
@mihaimaruseac
Copy link
Copy Markdown
Member

Can you fix the failing tests please?

@mihaimaruseac
Copy link
Copy Markdown
Member

Let's also discuss this PR on the next model signing SIG group as it fits with the work from #592 and #591.

@mihaimaruseac mihaimaruseac added the discusion pending Label for PRs and Issues that we should discuss at a Model Signing SIG Meeting label Mar 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

discusion pending Label for PRs and Issues that we should discuss at a Model Signing SIG Meeting

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants