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

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

Merged
merged 1 commit into from
Jun 14, 2022

Conversation

baha-ai
Copy link
Contributor

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

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

@baha-ai baha-ai force-pushed the merge_easy_keyWrap branch from 406d3db to ca16de4 Compare June 14, 2022 14:51
@baha-ai baha-ai changed the title refactor: update remote kms tests with keynwrap refactor: re enable remote kms tests with unwrapKey Jun 14, 2022
@baha-ai baha-ai force-pushed the merge_easy_keyWrap branch from ca16de4 to 44181d9 Compare June 14, 2022 14:53
@baha-ai baha-ai changed the title refactor: re enable remote kms tests with unwrapKey refactor: re enable remote kms bdd-tests with unwrapKey Jun 14, 2022
This change updates the webkms server in bdd tests and re enables commented out webkms tests requiring cryptobox's /wrap and /unwrap operations.

closes hyperledger-archives#3262

Signed-off-by: Baha Shaaban <baha.shaaban@securekey.com>
@baha-ai baha-ai force-pushed the merge_easy_keyWrap branch from 44181d9 to 1158944 Compare June 14, 2022 14:55
@codecov
Copy link

codecov bot commented Jun 14, 2022

Codecov Report

Merging #3263 (1158944) into main (119077b) will decrease coverage by 0.01%.
The diff coverage is 52.63%.

@@            Coverage Diff             @@
##             main    #3263      +/-   ##
==========================================
- Coverage   88.39%   88.37%   -0.02%     
==========================================
  Files         311      311              
  Lines       42309    42324      +15     
==========================================
+ Hits        37399    37405       +6     
- Misses       3603     3609       +6     
- Partials     1307     1310       +3     
Impacted Files Coverage Δ
pkg/kms/webkms/crypto_box.go 84.41% <52.63%> (-4.80%) ⬇️

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 119077b...1158944. Read the comment docs.

@baha-ai baha-ai requested review from fqutishat and aholovko June 14, 2022 15:04
@fqutishat fqutishat merged commit 3d817ac into hyperledger-archives:main Jun 14, 2022
@baha-ai baha-ai deleted the merge_easy_keyWrap branch June 14, 2022 15:27
@baha-ai baha-ai self-assigned this Jun 14, 2022
Abdulbois pushed a commit to Abdulbois/aries-framework-go that referenced this pull request Jul 13, 2022
…archives#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 hyperledger-archives#3262

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
…archives#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 hyperledger-archives#3262

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.

re enable webkms tests requiring remote wrap/unwrap for legacy packing
3 participants