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

Export Fulcio extension OIDs #761

Merged
merged 3 commits into from Aug 25, 2022
Merged

Export Fulcio extension OIDs #761

merged 3 commits into from Aug 25, 2022

Conversation

wlynch
Copy link
Member

@wlynch wlynch commented Aug 24, 2022

Summary

Pulls Fulcio OIDs into a global var so that they can be referenced by
other libraries.

Signed-off-by: Billy Lynch billy@chainguard.dev

Release Note

NONE

Documentation

NONE

Pulls Fulcio OIDs into a global var so that they can be referenced by
other libraries.

Signed-off-by: Billy Lynch <billy@chainguard.dev>
@codecov-commenter
Copy link

codecov-commenter commented Aug 24, 2022

Codecov Report

Merging #761 (880eb15) into main (9c19f08) will increase coverage by 0.14%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #761      +/-   ##
==========================================
+ Coverage   54.05%   54.19%   +0.14%     
==========================================
  Files          36       36              
  Lines        2257     2275      +18     
==========================================
+ Hits         1220     1233      +13     
- Misses        944      948       +4     
- Partials       93       94       +1     
Impacted Files Coverage Δ
pkg/certificate/extensions.go 100.00% <100.00%> (ø)
pkg/identity/email/principal.go 90.90% <100.00%> (ø)
pkg/identity/github/principal.go 90.47% <100.00%> (ø)
pkg/identity/kubernetes/principal.go 83.92% <100.00%> (ø)
pkg/identity/spiffe/principal.go 100.00% <100.00%> (ø)
pkg/identity/uri/principal.go 92.68% <100.00%> (ø)
pkg/identity/username/principal.go 100.00% <100.00%> (ø)
pkg/ca/fileca/watch.go 50.00% <0.00%> (-50.00%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@haydentherapper
Copy link
Contributor

What do you think about putting this under its own package, so that clients don’t need to pull in the rest of the CA package?

@wlynch
Copy link
Member Author

wlynch commented Aug 24, 2022

Works for me! I'll pull all the extension bits into its own package - we could use this to consolidate https://github.com/sigstore/cosign/blob/890cec1f43a8ec0754e0dd5a5d120847b63b6c4e/pkg/cosign/certextensions.go

Refactors common certificate behavior into a distinct package.

Adds ability to go to/from Extension type <-> []pkix.Extensions.

Signed-off-by: Billy Lynch <billy@chainguard.dev>
Copy link
Contributor

@haydentherapper haydentherapper left a comment

Choose a reason for hiding this comment

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

Thanks, this looks great!

pkg/certificate/doc.go Show resolved Hide resolved
pkg/ca/extensions.go Outdated Show resolved Hide resolved
Replaced with pkg/certificates/extensions.go.

Signed-off-by: Billy Lynch <billy@chainguard.dev>
@haydentherapper haydentherapper merged commit d9086d2 into sigstore:main Aug 25, 2022
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.

None yet

3 participants