Commit Graph
3 Commits
Author SHA1 Message Date
such-gitea ff152f216d fix(webhooks): refuse internal webhook targets and stop following redirects
Merchant-supplied webhook URLs were posted to without any host check,
redirects were followed, and the raw request error was stored and returned
to the caller. With open registration, anyone could make the service send
requests to the wallet RPC, the database, the daemon or a cloud metadata
address, and read back what the error revealed.

Every delivery path now goes through webhook_targets.post_webhook. It
accepts only http and https URLs without embedded credentials, requires
every resolved address to be public, and never follows redirects (a 3xx is
a failed delivery). WEBHOOK_ALLOWED_PRIVATE_HOSTS names exact hosts that may
resolve privately, for receivers reached over a LAN. Stored delivery errors
carry only the refusal reason or the exception class.
2026-11-18 15:40:59 -05:00
jwinterm cb24f5a597 fix: add resilient WOW price fallback 2026-07-16 08:59:16 -04:00
jwinterm ad661ebad9 feat: expose settlement evidence in Greenfield API 2026-07-16 08:13:02 -04:00