-
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
feat: add support outputting rekor response on signing #3248
feat: add support outputting rekor response on signing #3248
Conversation
Signed-off-by: Vishal Choudhary <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #3248 +/- ##
==========================================
+ Coverage 30.35% 30.82% +0.47%
==========================================
Files 155 155
Lines 9845 9967 +122
==========================================
+ Hits 2988 3072 +84
- Misses 6410 6442 +32
- Partials 447 453 +6
|
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.
Can you add a test for this too?
Signed-off-by: Vishal Choudhary <[email protected]>
Signed-off-by: Vishal Choudhary <[email protected]>
Signed-off-by: Vishal Choudhary <[email protected]>
Signed-off-by: Vishal Choudhary <[email protected]>
Signed-off-by: Vishal Choudhary <[email protected]>
@haydentherapper I have added a test and updated the logic, can you please review it Besides, I cannot run/debug tests in |
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.
One tiny comment, looks good!
test/e2e_test.go
Outdated
@@ -951,6 +951,51 @@ func TestRekorBundle(t *testing.T) { | |||
must(verify(pubKeyPath, imgName, true, nil, ""), t) | |||
} | |||
|
|||
func TestRekorOutput(t *testing.T) { | |||
// turn on the tlog | |||
defer setenv(t, env.VariableExperimental.String(), "1")() |
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.
Can you remove, the experimental flag is no longer used?
Signed-off-by: Vishal Choudhary <[email protected]>
@haydentherapper Removed the flag |
Summary
Closes: #3110
Previously, there's no support for outputting a bundle with
cosign sign
(code), onlysign-blob
(code). This PR adds support for outputting rekor response on signing. This supports use-cases where a signer does not want to attach metadata immediately to the container.Release Note
Added support outputting rekor response on signing with
cosign sign
Documentation