Skip to content

Read the webhook caller address the way the instance is configured - #39

Merged
gagnieray merged 1 commit into
developfrom
feature/webhook-ip-preferences
Aug 31, 2026
Merged

Read the webhook caller address the way the instance is configured#39
gagnieray merged 1 commit into
developfrom
feature/webhook-ip-preferences

Conversation

@trasher

@trasher trasher commented Aug 31, 2026

Copy link
Copy Markdown
Member

The webhook checks that a notification comes from HelloAsso by comparing the caller address to a known one. It asked History for that address without handing over the preferences, so the X-Forwarded-For lookup was skipped: an instance behind a reverse proxy compared its own proxy address to HelloAsso's and answered 403, dropping the payment.

Galette 1.3 moved that setting out of behavior.inc.php into pref_x_forwarded_for_index, which findUserIPAddress() now expects to be given. The controller has the preferences injected, so it passes them.

The webhook checks that a notification comes from HelloAsso by comparing
the caller address to a known one. It asked History for that address
without handing over the preferences, so the X-Forwarded-For lookup was
skipped: an instance behind a reverse proxy compared its own proxy
address to HelloAsso's and answered 403, dropping the payment.

Galette 1.3 moved that setting out of behavior.inc.php into
pref_x_forwarded_for_index, which findUserIPAddress() now expects to be
given. The controller has the preferences injected, so it passes them.
@trasher
trasher requested a review from gagnieray August 31, 2026 09:01
@gagnieray

Copy link
Copy Markdown
Member

Thanks!

@gagnieray
gagnieray merged commit a3c5443 into develop Aug 31, 2026
12 checks passed
@gagnieray
gagnieray deleted the feature/webhook-ip-preferences branch August 31, 2026 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants