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

keys: move signing part out of find_by_thp() and to find_jws() #81

Merged
merged 1 commit into from
Dec 14, 2021

Conversation

sergio-correia
Copy link
Collaborator

Handle just signing keys in find_jws(), to make sure we are
responding only to proper queries.

Tests were also failing to detect this issue and were updated
accordingly.

Issue discovered by Twitter Kernel and OS team during a source
code audit while evaluating Tang/Clevis for their needs.

Fixes CVE-2021-4076

Handle just signing keys in find_jws(), to make sure we are
responding only to proper queries.

Tests were also failing to detect this issue and were updated
accordingly.

Issue discovered by Twitter Kernel and OS team during a source
code audit while evaluating Tang/Clevis for their needs.

Fixes CVE-2021-4076
@codecov-commenter
Copy link

codecov-commenter commented Dec 14, 2021

Codecov Report

Attention: Patch coverage is 63.63636% with 4 lines in your changes missing coverage. Please review.

Project coverage is 57.35%. Comparing base (1d1874b) to head (3503270).
Report is 34 commits behind head on master.

Files with missing lines Patch % Lines
src/keys.c 63.63% 2 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #81      +/-   ##
==========================================
+ Coverage   56.10%   57.35%   +1.24%     
==========================================
  Files           3        3              
  Lines         401      401              
  Branches      115      114       -1     
==========================================
+ Hits          225      230       +5     
+ Misses         90       88       -2     
+ Partials       86       83       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@sarroutbi sarroutbi left a comment

Choose a reason for hiding this comment

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

Change looks good to me. Thanks for the fix.

I like the change on the tests. From my perspective, they are more readable now.

@sarroutbi sarroutbi merged commit e82459f into latchset:master Dec 14, 2021
@sergio-correia sergio-correia deleted the find_jws branch December 14, 2021 11:19
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.

3 participants