Skip to content

Conversation

@ckotzbauer
Copy link
Contributor

Signed-off-by: Christian Kotzbauer [email protected]

Summary

This adds a CertExtensions function to the signature package to extract all extensions from a cert and return them as map. The map-key is either a human-readable name or the extensionID (if no name is specified in the mapping).
I did not remove the CertIssuerExtension func for backward compatibility.

Ticket Link

close #1456

Release Note

Add CertExtensions func to extract all extensions

/cc @JimBugwadia

Copy link
Contributor

@asraa asraa left a comment

Choose a reason for hiding this comment

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

Hey just curious! Do you actually see extensions for trigger and sha on fulcio issued certs in the last few weeks?

(see sigstore/fulcio#437)

@ckotzbauer
Copy link
Contributor Author

@asraa Yes, I signed some stuff earlier this day with GH and all extensions added with sigstore/fulcio#306 where there.

Signed-off-by: Christian Kotzbauer <[email protected]>
@dlorenc dlorenc merged commit c8e152a into sigstore:main Feb 26, 2022
@github-actions github-actions bot added this to the v1.6.0 milestone Feb 26, 2022
@ckotzbauer ckotzbauer deleted the feature/cert-extensions branch February 27, 2022 08:13
coyote240 pushed a commit to coyote240/cosign that referenced this pull request Mar 1, 2022
* Add CertExtensions func to extract all extensions

Signed-off-by: Christian Kotzbauer <[email protected]>

* Renamed issuer to oidcIssuer

Signed-off-by: Christian Kotzbauer <[email protected]>
mlieberman85 pushed a commit to mlieberman85/cosign that referenced this pull request May 6, 2022
* Add CertExtensions func to extract all extensions

Signed-off-by: Christian Kotzbauer <[email protected]>

* Renamed issuer to oidcIssuer

Signed-off-by: Christian Kotzbauer <[email protected]>
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.

Extract more certificate-extensions for validation

5 participants