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 key usage for issued certificates #549

Merged
merged 1 commit into from Apr 30, 2022

Conversation

haydentherapper
Copy link
Contributor

@haydentherapper haydentherapper commented Apr 29, 2022

The key usage should be Digital Signature, not Key Cert Sign. The latter
requires that isCA also be asserted. The certificate's key is only used
to verify signatures, not certificates.

Note that this does not affect the GCP CA.

Signed-off-by: Hayden Blauzvern hblauzvern@google.com

Summary

Ticket Link

Fixes #550

Release Note

Fixed key usage for issued certificates not from GCP CA Service

The key usage should be Digital Signature, not Key Cert Sign. The latter
requires that isCA also be asserted. The certificate's key is only used
to verify signatures, not certificates.

Note that this does not affect the GCP CA.

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

@cpanato - We're going to want to cut a release with this fix before rolling out the new CA to production.

@codecov-commenter
Copy link

Codecov Report

Merging #549 (573705c) into main (851d95a) will not change coverage.
The diff coverage is 0.00%.

@@           Coverage Diff           @@
##             main     #549   +/-   ##
=======================================
  Coverage   35.47%   35.47%           
=======================================
  Files          18       18           
  Lines        1415     1415           
=======================================
  Hits          502      502           
  Misses        853      853           
  Partials       60       60           
Impacted Files Coverage Δ
pkg/ca/x509ca/common.go 3.53% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 851d95a...573705c. Read the comment docs.

@dlorenc dlorenc merged commit 040241b into sigstore:main Apr 30, 2022
@haydentherapper haydentherapper deleted the fixkeyusage branch May 3, 2022 16:59
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.

Incorrect key usage set for certificates generated by service
3 participants