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

Remove obsolete data from interface interactions #84

Merged
merged 6 commits into from
Nov 26, 2019

Conversation

ahmetoz
Copy link
Contributor

@ahmetoz ahmetoz commented Nov 19, 2019

Related Issue: #63

Extensions:

  • Only store request body without header (which has adyen token in it): 7cc6018

Notification:

  • Remove additional additionalData and reason from notification requests/responses: 0dff86b

Note: cypress was not working in Travis for this I needed to update travis.yml: 95cd24c
Details: cypress-io/cypress#4069

@ahmetoz ahmetoz changed the title WIP - Remove sensitive or unneeded data from interface interactions Remove obsolete data from interface interactions Nov 20, 2019
.travis.yml Show resolved Hide resolved
@ahmetoz ahmetoz requested a review from LEQADA November 21, 2019 09:29
@@ -52,7 +52,7 @@ describe('Cancel or refund', () => {

const interfaceInteractionFields = updatedPayment.interfaceInteractions[1].fields
const adyenRequest = JSON.parse(interfaceInteractionFields.request)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
const adyenRequest = JSON.parse(interfaceInteractionFields.request)
const adyenRequestBody = JSON.parse(interfaceInteractionFields.request)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

extension/src/paymentHandler/payment-utils.js Show resolved Hide resolved
@@ -97,6 +97,9 @@ function calculateUpdateActionsForPayment (payment, notification) {
}

function getAddInterfaceInteractionUpdateAction (notification) {
delete notification.additionalData
Copy link
Contributor

Choose a reason for hiding this comment

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

// strip away sensitive data

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ahmetoz ahmetoz requested a review from butenkor November 25, 2019 13:00
@ahmetoz ahmetoz merged commit f5d0231 into master Nov 26, 2019
@ahmetoz ahmetoz deleted the remove-unnecessary-sensitive-data branch November 26, 2019 09:12
@ahmetoz ahmetoz removed the request for review from LEQADA November 28, 2019 16:41
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.

4 participants