GitHub Application Installation Specific WebHook Settings


#1

Hi all!

I have an application that integrates GitHub and our servers. Thing is, we provide some of our customers with dedicated online servers. That’s why we can’t rely on the constant webhook URL value, and need to be able to override it per installation.

Is there a way to achieve this? If not - what is the best solution you can suggest?

Thanks,
Itai.


#2

I’m just a random commenter, but couldn’t you have a single server that serves as your webhook receiver and fan out your data to your customers from there? In other words, when those customers install your GitHub App, you’d populate a table in your database on your centralized server to track the Installation. Then when you receive webhooks for that Installation, fan the data out from the centralized server to your customers’ servers own webhook processing endpoints.

In the absence of a dynamic webhook URL per-Installation, that’s the approach I would take.


#3

I thought of this approach too. But figured I should ask first to see if
there is another way or a best practice.
Thanks!


#4

What about adding a feature to the API, where it’ll be possible to set a different WebHook URL per Installation, but only using the REST API (not using the UI), and only after authorizing the calling server? Can it be added to the backlog?


#5

Hi @itaibh,

Per-installation webhook URLs are not currently supported. I’ll pass your request on to the team for consideration!

have a single server that serves as your webhook receiver and fan out your data to your customers from there

This is the solution we’d recommend. Thank you @joshsmith1!

Cheers,
Matt