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

feat(key-manager): implement JWE functionality directly in key-manager #557

Merged
merged 1 commit into from
Jun 11, 2021

Conversation

mirceanis
Copy link
Member

The KMS is only used to compute shared secret, it doesn't need to deal with JWE directly.
This PR moves the responsibility of createJWE and decryptJWE to the key-manager layer which eventually uses the shared secret functionality of the KMS to perform the same task.

fixes #556

The KMS is only used to compute shared secret, it doesn't need to deal with JWE directly
fixes #556
@mirceanis mirceanis requested a review from awoie June 10, 2021 11:27
@codecov
Copy link

codecov bot commented Jun 10, 2021

Codecov Report

Merging #557 (2d7e858) into next (0bf7b24) will increase coverage by 9.93%.
The diff coverage is 67.00%.

@@            Coverage Diff             @@
##             next     #557      +/-   ##
==========================================
+ Coverage   67.58%   77.51%   +9.93%     
==========================================
  Files          62       71       +9     
  Lines        1530     1890     +360     
  Branches      247      319      +72     
==========================================
+ Hits         1034     1465     +431     
- Misses        400      423      +23     
+ Partials       96        2      -94     

Copy link
Member

@awoie awoie left a comment

Choose a reason for hiding this comment

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

lgtm - although i think the JWE functionality should be entirely removed at some point in favour of did-jwt

@mirceanis mirceanis merged commit a030f0a into next Jun 11, 2021
@mirceanis mirceanis deleted the 556-implement-jwe-on-key-manager-directly branch June 11, 2021 10:08
@mirceanis mirceanis mentioned this pull request Jul 13, 2021
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.

[proposal] JWE functionality should be implemented on the key-manager layer
2 participants