Hi all,
We’ve built a custom API on AWS API Gateway that gets called by HubSpot serverless functions (app functions), and we’re trying to figure out the best way to secure it.
Current setup:
- Custom REST API hosted on AWS API Gateway
- HubSpot serverless functions making HTTP requests to our API
- Looking at restricting access at the API Gateway level
Originally we were planning to lock it down using IP allowlisting via a resource policy, but from what I’ve seen HubSpot IP ranges can change from time to time. So now we’re not sure if relying only on IP allowlisting is a good idea, or if we should combine it with something else (like API keys / auth).
Questions:
1. Is there an official list of HubSpot outbound IP ranges used by serverless/app functions?
2. Do these differ depending on data centre (NA1 vs EU1)?
3. How often do these IPs change? and is there any way to get notified when they do?
4. Has anyone here actually implemented IP allowlisting for HubSpot on AWS API Gateway? if yes, how did you handle the IP changes?
We’re trying to avoid opening the API too broadly, but also don’t want something that breaks if HubSpot updates their IPs.
Any help or pointers would be really appreciated.
Thanks!