feat(backend, mock-ase): encrypted data exchange#3888
Conversation
✅ Deploy Preview for brilliant-pasca-3e80ec canceled.
|
3bea0bd to
e8c8822
Compare
…#3810) * feat: update sender data in incoming partial payment webhook * feat(backend): update partial payment payload in webhook * feat: uuid to id, use args object
* feat: update sender data in incoming partial payment webhook * feat(backend): update partial payment payload in webhook * feat: uuid to id, use args object * feat(backend): add confirmPartialIncomingPayment resolver * feat: move return, revert jest env * chore: rename kyc decision prefix
* feat(backend): add confirmPartialIncomingPayment resolver * feat: move return, revert jest env * feat(backend): reject partial payment gql api * fix: use correct redis key * fix: use const * feat: move redis call out of resolver
… frames (#3706) * feat(backend): add middleware that handles STREAM KYC/additional data payloads - wip * feat(backend): add wip comment * feat: support arbitrary data on prepare packets - WIP * feat(pay): add controller to handle additional data in STREAM packets * feat: add STREAM connection id in cache key for KYC response, remove unused env vars * chore: address PR comments * chore: add tests for payment decision middleware and interledgerjs changes * fix: update app data controller ti return F99 * feat: update additional data middleware logic, add pay and stream-receiver updates * chore(backend): use updated pay and stream-receiver from npm, update lockfile * feat(backend): refactor partial payment middleware, add handler for partial payments to mock ASE * fix(backend): fix build errors in CI * fix(backend): formatting * fix(backend): formatting * fix(backend): partial payment decision middleware tests * fix(backend): formatting * feat(backend): address review comments * feat(backend): address PR comments * fix(backend): fix failing CI tests * chore: align open-payments-specifications with feature/encrypted-data-exchange * fix: webhooks tests * fix: delete flaky test * fix: backend build * chore: address review comments
e8c8822 to
fa44fe8
Compare
🚀 Performance Test ResultsTest Configuration:
Test Metrics:
📜 Logs |
njlie
left a comment
There was a problem hiding this comment.
LGTM just needs the merge conflicts fixed, of course
…nto feature/encrypted-data-exchange
ab50e18 to
bdc1dfa
Compare
…ub.com/interledger/rafiki into feature/encrypted-data-exchange
|
Seems like backend build is failing because of some failing Tigerbeetle tests, but all the other (build) jobs are successful. Currently looking into this issue, might be related to the new lockfile or overrides that I added on this branch. Nothing related to the data exchange logic, though. |
|
I looked at the failing backend tests and why testcontainer couldnt find docker. No resolution yet. Here is what I found: Last working commit: 683096a. After that the lockfile is broken - once its fixed and the tests can be run we see the error. See this on install: I pinned The failure we are seeing, for reference: |
As mentioned in Slack I think it would be best to revert the testcontainer upgrade and handle that in our normal renovate package updating process. The update was just incidental to fixing the lockfile. Should make an issue for it though. |
…nto feature/encrypted-data-exchange
* doc: update encrypted data exchange doc * chore: rename dataToTransmit to dataFromSender on recipient side * chore: rename updatePartialPaymentDecision args * test: add test for updatePartialPaymentDecision and for processPartialPayment * chore: make the partial payment decision success case more explicit * test: rename dataToTransmit to dataFromSender * test(backend): updates partial payment decision middleware tests * chore: update pay library version * chore: update pay library to alpha 12
BlairCurrey
left a comment
There was a problem hiding this comment.
1 small thing in the docs but looks good overall. ping me if you make any changes and need a re-review
|
|
||
| In the `happy-life-bank-mock-ase` logs: | ||
|
|
||
| - `incoming_payment.partial_payment_received` webhook was received, with `partialIncomingPaymentId` and the `dataToTransmit` defined in the payload |
There was a problem hiding this comment.
small thing but shouldn't dataToTransmit here be dataFromSender? I know there was a partial replacement of these terms but I think this one should be from sender. judging by the incomingPaymentEvent in the webhook.yaml open api spec, mock ase handleIncomingPartialPaymentReceived webhook handler, etc.
Co-authored-by: Max Kurapov <max@interledger.org>
Changes proposed in this pull request
This PR adds support for sending encrypted additional data over ILP on which the receiving ASE can action upon i.e. approve/reject a specific payment (e.g. if AML/KYC checks were not successful).
Context
Closes Rafiki Encrypted Data Exchange project
Checklist
fixes #numberuser-docslabel (if necessary)