View Issue Details

IDProjectCategoryView StatusLast Update
0010273Talermerchant backendpublic2025-08-22 16:25
ReporterBohdan Assigned ToBohdan  
PrioritynormalSeverityfeatureReproducibilityalways
Status feedbackResolutionopen 
Product Versiongit (master) 
Summary0010273: Adding security header to the webhook
DescriptionThat would be nice if the webhooks could be checked against the specific header, in the opposite to checking that the webhook comes from the allowed list of IPs.

A.k.a on posting of the webhook user sets the webhook_token header option with some value (e.g. megasecuretoken)

and on every webhook call from the merchant backend, the request must have something as X-Taler-Merchant-Webhook-Token, which contains either a hash or the same header option value (e.g. megasecuretoken)
Additional InformationSomething similar is implemented at the Telegram bot api
https://core.telegram.org/bots/api#setwebhook


"If you'd like to make sure that the webhook was set by you, you can specify secret data in the parameter secret_token. If specified, the request will contain a header “X-Telegram-Bot-Api-Secret-Token” with the secret token as content."
TagsNo tags attached.

Activities

Christian Grothoff

2025-08-22 16:25

manager   ~0025680

I'm not sure I understand -- https://docs.taler.net/core/api-merchant.html#webhooks allows the client to specify arbitrary HTTP headers to be sent together with the Webhook. So obviously one could configure some "security" header here as well. So what are you asking for that is not already covered by this feature?

Issue History

Date Modified Username Field Change
2025-08-22 16:08 Bohdan New Issue
2025-08-22 16:25 Christian Grothoff Note Added: 0025680
2025-08-22 16:25 Christian Grothoff Assigned To => Bohdan
2025-08-22 16:25 Christian Grothoff Status new => feedback