Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix DSSE Signature KeyID compatiblity with Sigstore signatures #362

Merged
merged 3 commits into from
Aug 24, 2024

Conversation

kairoaraujo
Copy link
Collaborator

What this PR does / why we need it

Using sigstore to sign some metadata, a key ID isn't part of the resulting date.

Archivista cannot handle it on upload, getting a key id length error when it's blank.

The DSSE specification allows key id to be blank.

Fixes #321

Acceptance Criteria Met

  • Docs changes if needed
  • Testing changes if needed
  • All workflow checks passing (automatically enforced)
  • All review conversations resolved (automatically enforced)
  • DCO Sign-off

Special notes for your reviewer:

The last commit is only auto-generated code.

Using sigstore to sign some metadata, a key ID isn't part of the
resulting date.

Archivista cannot handle it on upload, getting a key id length
error when it's blank.

The DSSE specification allows key id to be blank.

closes in-toto#321

Signed-off-by: Kairo Araujo <[email protected]>
Signed-off-by: Kairo Araujo <[email protected]>
Copy link

codecov bot commented Aug 20, 2024

Codecov Report

Attention: Patch coverage is 0.93458% with 106 lines in your changes missing coverage. Please review.

Project coverage is 1.62%. Comparing base (a035c62) to head (1355ca8).
Report is 153 commits behind head on main.

Files Patch % Lines
ent/attestation_query.go 0.00% 10 Missing ⚠️
ent/attestationcollection_query.go 0.00% 10 Missing ⚠️
ent/attestationpolicy_query.go 0.00% 10 Missing ⚠️
ent/dsse_query.go 0.00% 10 Missing ⚠️
ent/payloaddigest_query.go 0.00% 10 Missing ⚠️
ent/signature_query.go 0.00% 10 Missing ⚠️
ent/statement_query.go 0.00% 10 Missing ⚠️
ent/subject_query.go 0.00% 10 Missing ⚠️
ent/subjectdigest_query.go 0.00% 10 Missing ⚠️
ent/timestamp_query.go 0.00% 10 Missing ⚠️
... and 4 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #362       +/-   ##
==========================================
- Coverage   82.40%   1.62%   -80.78%     
==========================================
  Files          10     120      +110     
  Lines         358   28845    +28487     
==========================================
+ Hits          295     468      +173     
- Misses         43   28320    +28277     
- Partials       20      57       +37     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jkjell jkjell merged commit f872a7f into in-toto:main Aug 24, 2024
12 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Should Archivista use DSSE envelope signature keyid as optional?
2 participants