Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

refactor: remote cryptobox URLs renamed to /wrap and /unwrap #3259

Merged
merged 1 commit into from
Jun 10, 2022

Conversation

baha-ai
Copy link
Contributor

@baha-ai baha-ai commented Jun 9, 2022

this change updates the remote CryptoBox api URIs to point to remote KMS's key /wrap and /unwrap to match ECDH-ES and ECDH-1PU key wrapping.

This change requires the KMS server to udpate /easy to /wrap, /easyOpen and /sealOpen to /unwrap

Signed-off-by: Baha Shaaban baha.shaaban@securekey.com

@codecov
Copy link

codecov bot commented Jun 9, 2022

Codecov Report

Merging #3259 (d9fac56) into main (748fd2b) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #3259   +/-   ##
=======================================
  Coverage   88.39%   88.39%           
=======================================
  Files         311      311           
  Lines       42309    42309           
=======================================
  Hits        37399    37399           
  Misses       3603     3603           
  Partials     1307     1307           
Impacted Files Coverage Δ
pkg/kms/webkms/crypto_box.go 89.20% <100.00%> (ø)

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 748fd2b...d9fac56. Read the comment docs.

@baha-ai baha-ai force-pushed the merge_easy_keyWrap branch 2 times, most recently from 751e7f5 to 71168f6 Compare June 9, 2022 19:49
this change updates the remote CryptoBox api URIs to point to remote KMS's key /wrap and /unwrap to match ECDH-ES and ECDH-1PU key wrapping.

This change requires the KMS server to udpate /easy to /wrap, /easyOpen and /sealOpen to /unwrap

Signed-off-by: Baha Shaaban <baha.shaaban@securekey.com>
@baha-ai baha-ai force-pushed the merge_easy_keyWrap branch from 71168f6 to d9fac56 Compare June 9, 2022 20:22
@fqutishat fqutishat merged commit 119077b into hyperledger-archives:main Jun 10, 2022
Abdulbois pushed a commit to Abdulbois/aries-framework-go that referenced this pull request Jul 13, 2022
…dger-archives#3259)

this change updates the remote CryptoBox api URIs to point to remote KMS's key /wrap and /unwrap to match ECDH-ES and ECDH-1PU key wrapping.

This change requires the KMS server to udpate /easy to /wrap, /easyOpen and /sealOpen to /unwrap

Signed-off-by: Baha Shaaban <baha.shaaban@securekey.com>
Signed-off-by: Abdulbois <abdulbois.tursunov@avast.com>
Abdulbois pushed a commit to Abdulbois/aries-framework-go that referenced this pull request Jul 16, 2022
…dger-archives#3259)

this change updates the remote CryptoBox api URIs to point to remote KMS's key /wrap and /unwrap to match ECDH-ES and ECDH-1PU key wrapping.

This change requires the KMS server to udpate /easy to /wrap, /easyOpen and /sealOpen to /unwrap

Signed-off-by: Baha Shaaban <baha.shaaban@securekey.com>
Signed-off-by: Abdulbois <abdulbois.tursunov@avast.com>
fqutishat pushed a commit that referenced this pull request Jul 18, 2022
…ds while creating forward message. Add legacyForward model (#3272)

* refactor: remote cryptobox URLs renamed to /wrap and /unwrap (#3259)

this change updates the remote CryptoBox api URIs to point to remote KMS's key /wrap and /unwrap to match ECDH-ES and ECDH-1PU key wrapping.

This change requires the KMS server to udpate /easy to /wrap, /easyOpen and /sealOpen to /unwrap

Signed-off-by: Baha Shaaban <baha.shaaban@securekey.com>
Signed-off-by: Abdulbois <abdulbois.tursunov@avast.com>

* refactor: re enable remote kms bdd-tests with unwrapKey (#3263)

This change updates the webkms server in bdd tests and re enables commented out webkms tests requiring cryptobox's /wrap and /unwrap operations.

closes #3262

Signed-off-by: Baha Shaaban <baha.shaaban@securekey.com>
Signed-off-by: Abdulbois <abdulbois.tursunov@avast.com>

* refactor: Enable usage of legacy Anoncrypt packer. Make nested forwards while creating forward message. Add legacyForward model

- Add legacy Anoncrypt packer while creating packers
- Add ability to create nested packed forwards (one nested forward for each routing key)
- Check and convert msg field of Forward to Envelope in order to support DIDComm V1 Forward types
- Revert part of 04bfea8 commit related to generating keys inside mediator service. Because with previous changes (having two types of generated keys belonging to the same router) it breaks Route Coordination protocol (while creating nested forwards it will pack two times to the same mediator then mediator cannot handle second forward message)

Signed-off-by: Abdulbois <abdulbois.tursunov@avast.com>

* refactor: Remove test due to forcing anoncrypt while calling createForwardMessage. Fix lint errors

Signed-off-by: Abdulbois <abdulbois.tursunov@avast.com>

Co-authored-by: Baha <29608896+Baha-sk@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants