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

Add public key validation #1598

Merged
merged 3 commits into from
Mar 13, 2022
Merged

Conversation

kkavitha
Copy link
Contributor

@kkavitha kkavitha commented Mar 11, 2022

Signed-off-by: Kavitha Krishnan [email protected]

Sets util func for part of : #1596

cc: @vaikas @coyote240

Signed-off-by: Kavitha Krishnan <[email protected]>
@codecov-commenter
Copy link

codecov-commenter commented Mar 11, 2022

Codecov Report

Merging #1598 (9c359f6) into main (0d7bace) will increase coverage by 0.51%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1598      +/-   ##
==========================================
+ Coverage   27.44%   27.96%   +0.51%     
==========================================
  Files         137      137              
  Lines        7742     7789      +47     
==========================================
+ Hits         2125     2178      +53     
+ Misses       5387     5383       -4     
+ Partials      230      228       -2     
Impacted Files Coverage Δ
...cosigned/v1alpha1/clusterimagepolicy_validation.go 85.43% <100.00%> (+0.90%) ⬆️
pkg/reconciler/clusterimagepolicy/controller.go 86.00% <0.00%> (+3.50%) ⬆️
...econciler/clusterimagepolicy/clusterimagepolicy.go 68.47% <0.00%> (+25.85%) ⬆️

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 0d7bace...9c359f6. Read the comment docs.

Signed-off-by: hectorj2f <[email protected]>
@@ -21,8 +21,6 @@ spec:
- glob: images.*
- glob: image*
authorities:
- key:
data: "---another-public-key---"
- keyless:
Copy link
Contributor

Choose a reason for hiding this comment

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

I removed another-public-key and fixed the code validating the key.

@dlorenc
Copy link
Member

dlorenc commented Mar 13, 2022

Nice work!

@dlorenc dlorenc merged commit d22c312 into sigstore:main Mar 13, 2022
@github-actions github-actions bot added this to the v1.7.0 milestone Mar 13, 2022
mlieberman85 pushed a commit to mlieberman85/cosign that referenced this pull request May 6, 2022
* Add public key validation

Signed-off-by: Kavitha Krishnan <[email protected]>

* fix: key validation

Signed-off-by: hectorj2f <[email protected]>

* fix: test valid policy using wrong key data

Signed-off-by: hectorj2f <[email protected]>

Co-authored-by: hectorj2f <[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.

5 participants