-
Notifications
You must be signed in to change notification settings - Fork 547
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
Default generated PEM labels to SIGSTORE #2735
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the slow review! I should be quicker in the future.
Can we add a test case to make sure that both are read successfully?
One for writing too would be good.
6da70f6
to
d912415
Compare
Thanks @znewman01 ! I added tests for reading both the old and the new type, and writing the new type, as the current change defaults to "SIGSTORE". You mentioned an option to emit the old "COSIGN" type for backwards compatibility and I have some questions:
This is why the current change emits only "SIGSTORE", but I'm happy to add support for both if you think that would be the right approach. Thank you for your input in advance. |
The question is: are we worried about scenarios where a new client generates a key and an older client uses that key? I can see an argument for "no" because this is mostly a client-side concern, but I worry about public keys generated by new clients. That said--I'd be okay omitting the option for now for the other reasons you mention. |
If you fix lint I'm happy with this! |
This change adds SIGSTORE PEM label and accepts both the old COSIGN label and the new one. Newly generated keys are now created with SIGSTORE label Signed-off-by: Ivana Atanasova <[email protected]>
d912415
to
dfbb56c
Compare
Thanka @znewman01, I pushed an update |
Codecov Report
@@ Coverage Diff @@
## main #2735 +/- ##
==========================================
- Coverage 29.54% 29.54% -0.01%
==========================================
Files 151 151
Lines 9646 9658 +12
==========================================
+ Hits 2850 2853 +3
- Misses 6357 6366 +9
Partials 439 439
... and 10 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
This change adds SIGSTORE PEM label and accepts both the old COSIGN label and the new one. Newly generated keys are now created with SIGSTORE label Signed-off-by: Ivana Atanasova <[email protected]> Co-authored-by: Ivana Atanasova <[email protected]>
Summary
This change adds "SIGSTORE" PEM label and accepts both the old "COSIGN" label and the new one.
Newly generated keys are now created with "SIGSTORE" label
Resolves #2471
As #2376 is not closed yet, this change updates to generating private keys with "SIGSTORE" PEM label by default.
Did not update the CI (in particular .github/workflows/cosign-test.key) for backwards compatibility safety (i.e. still available "COSIGN" label support).
Release Note
Generated PEM labels were updated to "SIGSTORE" rather than the previous "COSIGN". Both are still supported and accepted, but newly generated will be with the updated label.
Documentation
PEM labels were not previously referenced in the docs, so nothing to update.