Encrypt webhook with secret key or similar #33
Replies: 2 comments 3 replies
-
|
That is a great point, we should support this. I'm assuming you mean signed, not encrypted. What language are you using in your backend? Did you consider using websocket for notifications, which would remove the issue? |
Beta Was this translation helpful? Give feedback.
-
|
Hey @pm47 You are right, meant signed not encrypted! WooCommerce Payment Gateways expose an endpoint to ckeck the payment has arrived. Usually all payment platforms use webhooks to talk to this endpoint, firing actions on payment ok, fail, refused, etc. Thank you for the #34 will try and let you know! Talking about the websocket now, is there a possibility to open a websocket connection for a particular invoice and not all invoices? This will help notifications in the frontend for the buyer, getting only the invoice and not all other invoices. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey! We are working on some payment solution involving Phoenixd on online stores but we realize that the webhook data is plain and opened (not secured in any way)...
Usually notification webhooks had some shared encryption key that both, the server and the online store know to open the data. The data travels encrypted. Actually, if an attacker knows the webhook endpoint they can attack the online store making payments as fulfilled when they are not.
The online store has no way to prove that the request is legit from phoenixd server. Maybe generating a secret key on phoenixd and making the data to travel encrypted, and then opened by the online store will make the request legit. Stripe and BTCPay Server use them.
Have you something in mind to implement in a near future? Would be nice to have this feature.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions