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

Refactor Identities API #1611

Merged
merged 2 commits into from
Aug 7, 2023

Conversation

haydentherapper
Copy link
Contributor

Instead of providing raw strings that are up to the client to determine how to parse, return typed structs. Encoded keys are included and should be parsed based on the returned type.

Summary

Release Note

Documentation

Instead of providing raw strings that are up to the client to determine
how to parse, return typed structs. Encoded keys are included and should
be parsed based on the returned type.

Signed-off-by: Hayden Blauzvern <hblauzvern@google.com>
@haydentherapper
Copy link
Contributor Author

FYI: TUF requires a new root because go-tuf dropped support for hex-encoded keys, as they were not conformant to the TUF spec.

@codecov
Copy link

codecov bot commented Aug 3, 2023

Codecov Report

Merging #1611 (e7e0dcd) into main (924fb3a) will decrease coverage by 0.18%.
The diff coverage is 58.62%.

@@            Coverage Diff             @@
##             main    #1611      +/-   ##
==========================================
- Coverage   67.07%   66.90%   -0.18%     
==========================================
  Files          83       83              
  Lines        8441     8452      +11     
==========================================
- Hits         5662     5655       -7     
- Misses       2101     2118      +17     
- Partials      678      679       +1     
Flag Coverage Δ
e2etests 48.03% <1.72%> (-0.04%) ⬇️
unittests 47.80% <58.62%> (-0.15%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
pkg/pki/tuf/tuf.go 48.80% <38.46%> (-4.47%) ⬇️
pkg/pki/minisign/minisign.go 75.83% <100.00%> (ø)
pkg/pki/pgp/pgp.go 78.19% <100.00%> (-0.41%) ⬇️
pkg/pki/pkcs7/pkcs7.go 55.70% <100.00%> (-1.72%) ⬇️
pkg/pki/ssh/ssh.go 60.00% <100.00%> (+0.62%) ⬆️
pkg/pki/x509/x509.go 69.88% <100.00%> (+0.32%) ⬆️

... and 1 file with indirect coverage changes

pkg/pki/tuf/tuf.go Outdated Show resolved Hide resolved
bobcallaway
bobcallaway previously approved these changes Aug 4, 2023
Copy link
Member

@bobcallaway bobcallaway left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm minus one errant 🥔

also, since this changes a public API surface we should probably bump into a new minor release.

Signed-off-by: Hayden Blauzvern <hblauzvern@google.com>
@haydentherapper
Copy link
Contributor Author

@bobcallaway Agreed on the minor bump.

@bobcallaway bobcallaway merged commit e7b377a into sigstore:main Aug 7, 2023
14 checks passed
@github-actions github-actions bot added this to the v1.2.2 milestone Aug 7, 2023
@haydentherapper haydentherapper deleted the refactor-identities branch August 7, 2023 16:25
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.

2 participants