Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How many webhooks are allowed?

Raja October 17, 2019

Dear All,

First off, thank you for reading and trying to help here is a little backstory first:

 

I have approximately more than 600 customers of which each has their own domain I manage all of them through Plesk.

In the near future I want to enable pulling in code through Git Clone, etc. Also at the same time I would like to implement web hooks.

I suspect that each domain or git clone will have its own unique web hook in Plesk.

So I am wondering for the one Repo that I have how many webhooks can I create? How does BitBucket handle calling all them? Because I saw there was  a limit of 250 somewhere, does that mean that the rest of the calls above 250 get ignored, thrown away, skipped?

Also I need to whitelist Bitbucket IP's, I have whitelisted more than 87 IP's and its still not sufficient. Retrieved from official documentation of Bitbucket of course.

I know the webhook works because I turned on accept all IP's for a brief moment and tested it, and the code was automatically and succesfully pulled from Bitbucket from Plesk.

So long story short:

1: How many webhooks can I create on one repo?

2: Can I call e.g. 600 webhooks without any problems?

3: How to find out which specific IP I need to whitelist?

 

Any help, tips, advice would be great appreciated. Architecture advice, or anything. I am here to learn and improve and thank you again for reading.

1 answer

0 votes
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 24, 2019

Hi Raja, welcome to the Community!

 

We've tested that for you and seems like the upper limit is 60 webhooks. We used a script to create them and the API returned this error after we tried creating more than 60:
{"type": "error", "error": {"fields": ["Hook limit exceeded."], "message": "Bad request"}}

Regarding the IP addresses, can you confirm you whitelisted the IP addresses shown in this article and in this other article?

Regards,

Ana

Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 24, 2019

To add one more thing to my previous response, if you absolutely need to create more than 60 webhooks per repository, please submit a Support request and my colleagues will be able to override this limit for you.

Hope that helps, 

Ana

Raja October 29, 2019

Hi, thank you for the help. It is much appreciated.

 

Yes I whitelisted all those IP's but still face issues. But I will try it again and get back to you A.S.A.P!

 

I would need a limit higher than 600, would this be an issue? If this is not possible or sustainable or if you have a better suggestion let me know.

Basically I want to update all my customers simultaneously and I need a different webhook because each customer has their own domain.

Raja October 29, 2019

ps: Do I whistelist the IP like:

 

18.205.93.0/25

or

18.205.93.0

 

so with or without the slash?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events