Your webhook endpoint worked for two years. Then deliveries stop arriving, the provider dashboard shows failures, and nothing in your code has changed. The culprit is often a firewall rule you wrote once and forgot: a webhook IP allowlist that no longer matches where the provider actually sends from.
In 2026, GitHub, Twilio and SendGrid have each published changes that touch the addresses webhooks come from. This article covers what changed, how to keep a GitHub allowlist current with the Meta API, why signature checks are the stronger control, and how to test the whole path through a tunnel.
Key takeaways
- GitHub added three webhook delivery ranges to the
hooksfield of its Meta API, announced on October 29, 2026. - Twilio announced on August 4 a new US East range for Event Streams webhooks (
3.80.20.0/25), scheduled for September 15, 2026. The older range stays active alongside it until Twilio says otherwise. - SendGrid moved its Event Webhook and Inbound Parse delivery to new IP ranges in a maintenance window that ran from February 23 to March 6, 2026. Its support team says it generally can’t provide stable ranges and points to signature verification.
- A signature proves the provider created this exact payload. An IP list proves only where a packet appeared to come from.
- If you keep an allowlist, generate it from the provider’s API on a schedule, and treat it as a second layer.
What changed in 2026
GitHub: three new webhook ranges (October 29)
GitHub announced on October 29, 2026 that the Meta API’s hooks field now includes additional ranges for webhook deliveries on github.com:
9.234.98.160/289.234.98.176/289.234.106.48/28
If you maintain a static allowlist, GitHub says to add these alongside your existing webhook ranges. If you already refresh from the Meta API, nothing needs to change. The ranges apply on all plans, including GitHub Enterprise Cloud.
This has happened before. On March 29, 2019, GitHub announced that from April 9 it would send webhooks from 140.82.112.0/20 in addition to the older 192.30.252.0/22. It noted that the new block had been in the /meta endpoint since May 2018. The pattern repeats: the API shows the change first, and anyone hardcoding values finds out from failed deliveries.
Twilio Event Streams: regional addresses (September 15)
Twilio’s changelog entry, dated August 4, 2026, says that on September 15 it would introduce a new US East (us-east-1) range for Event Streams webhook traffic: 3.80.20.0/25 (3.80.20.0 to 3.80.20.127). Twilio describes this as a move from a single shared range to dedicated regional addresses, with other regions to follow.
The existing range, 35.90.102.128/25, remains active alongside the new one, and Twilio says it will publish a follow-up changelog entry when the legacy range is safe to remove. That range was set by Twilio’s Event Streams GA migration guide, which made it the source of Event Streams webhooks starting October 1, 2023. As of November 27, 2026, I couldn’t find the removal notice, so check Twilio’s changelog before deleting anything. Only customers who validate Event Streams traffic by source IP are affected.
Twilio’s Static Proxy page, which applies to customers on eligible Twilio Editions, lists both ranges. It says Twilio reserves the right to add or remove addresses and will notify customers at least seven days in advance.
SendGrid: two different changes that are easy to confuse
SendGrid has had two separate address changes this year. They point in opposite directions, and summaries often blur them.
Where webhooks come from (February 23 to March 6). SendGrid’s status page describes a maintenance to migrate its Event Webhook and Inbound Parse infrastructure to new IP ranges. For about two weeks, the legacy webhook infrastructure was disabled for 12 hours a day. During those windows, deliveries came only from the new ranges, and customers still allowlisting the old addresses saw delivery failures. SendGrid told them to contact support for the new ranges. It also recommended signature or OAuth verification instead, noting that IP ranges are subject to change and provide limited security. The maintenance was marked completed on March 6, 2026.
Where you connect to (August). Twilio’s status page lists a “SendGrid Legacy Public IP Deprecation”. It concerns legacy IP addresses used to reach SendGrid via the API and SMTP, so it hit customers who connected to raw IPs instead of domain names such as sendgrid.com or smtp.sendgrid.net. The status page listed temporary disablement windows on August 24, 25 and 27 and permanent deprecation on August 31, 2026, and marks the maintenance as completed on September 15. This is traffic to SendGrid, not the addresses webhooks are sent from.
For the sending side, SendGrid’s support guidance says it’s generally unable to provide static IP ranges for Event Webhook or Inbound Parse because the services run on dynamic cloud infrastructure. It also says domain allowlisting isn’t supported for webhooks and that reverse DNS shouldn’t be your main defense. Yet during the migration it asked allowlisting customers to get ranges from support. Both facts point the same way: don’t build your security on a list SendGrid doesn’t promise to keep stable.
A 2021 advisory did list three ranges (167.89.116.0/24, 167.89.117.0/24, 167.89.119.0/24) for a change scheduled for May 4, 2021, though a later update said the change was postponed. Don’t copy those into a firewall. After the 2026 migration, you can’t assume any list from that era is still right, which is exactly the failure this article is about.
Stripe: the better-behaved example
Stripe shows what good IP hygiene from a provider looks like. It publishes its webhook source addresses on its IP addresses page, also as machine-readable ips_webhooks.txt and ips_webhooks.json files. It says it gives seven days’ notice of changes through its API announce mailing list. Even so, Stripe tells you to use both IP allowlisting and signature verification.
Why IP allowlists drift
Providers send from cloud pools that scale, move between regions and get re-addressed. GitHub’s documentation says it changes its IPs from time to time, doesn’t recommend allowing by IP, and urges regular monitoring of the API if you do. It also says the Meta API list isn’t intended to be exhaustive, so treat it as the best available list rather than a guarantee.
That produces three failure modes:
- Additions you never learned about. New ranges go live and your firewall rejects them. This is the GitHub, Twilio and SendGrid story above.
- Removals you never noticed. Dead ranges linger in your list, accepting traffic from addresses the provider may no longer control.
- Wrong source of truth. A blog post or last year’s runbook becomes the “official” list.
The first causes outages. The others cause quiet security debt.
Missed deliveries are sometimes recoverable. GitHub lets you redeliver webhook deliveries from the past 3 days, through the web interface or the REST API, but doesn’t redeliver failed deliveries automatically. Stripe retries live-mode events for up to three days and lets you resend manually for up to 15 days from the Dashboard or 30 days with the CLI. Don’t count on this for providers whose retry behavior you haven’t checked.
Pull GitHub’s ranges from the Meta API
GET https://api.github.com/meta returns GitHub’s service addresses, including the hooks array of CIDR ranges. It can be called without authentication for public resources, and it returns both IPv4 and IPv6 addresses. GitHub’s REST best practices describe conditional requests: most endpoints return an etag, which you send back as If-None-Match, and you get 304 Not Modified if nothing changed. A 304 doesn’t count against your primary rate limit, but only if the request carried an Authorization header. An hourly refresh is well within limits either way.
Here is a Node.js (18+) module using only built-ins. I checked the matching logic on Node 22 against the October ranges: addresses inside matched, addresses outside didn’t, and the IPv4-mapped IPv6 form (::ffff:9.234.98.165) matched too.
// github-hooks-allowlist.js import { BlockList, isIP } from "node:net"; let etag = null; let allow = new BlockList(); let lastGood = []; export async function refreshGitHubHooks() { const res = await fetch("https://api.github.com/meta", { headers: { Accept: "application/vnd.github+json", "User-Agent": "my-webhook-allowlist", ...(etag ? { "If-None-Match": etag } : {}), }, }); if (res.status === 304) return lastGood; if (!res.ok) throw new Error(`meta fetch failed: ${res.status}`); etag = res.headers.get("etag"); const { hooks } = await res.json(); if (!Array.isArray(hooks) || hooks.length === 0) { throw new Error("no hooks ranges"); // never swap in an empty list } const next = new BlockList(); for (const cidr of hooks) { const [addr, prefix] = cidr.split("/"); next.addSubnet(addr, Number(prefix), isIP(addr) === 6 ? "ipv6" : "ipv4"); } allow = next; lastGood = hooks; return hooks; } export function isGitHubHookIp(ip) { return allow.check(ip, isIP(ip) === 6 ? "ipv6" : "ipv4"); } Design choices worth copying:
- Refresh at startup and on a schedule, hourly or daily. Until the first refresh succeeds, the list is empty and every check fails, so don’t accept traffic before it completes.
- Fail safe. On error, keep the last good list and alert. An empty list turns an API hiccup into a total outage.
- Log rejections with the source IP. A cluster of rejects from a new range is your earliest warning.
- Alert on diffs. A changed
hooksarray is the October 29 announcement, delivered automatically.
If the allowlist lives in a cloud firewall or WAF, run the same refresh as a scheduled job that updates the rule.
Signature checks beat IP lists
An IP list asks whether a packet appeared to come from a provider address. A signature asks whether the provider created this exact payload with a secret only you share. Signatures don’t drift when a region is added, and they cover the content. Providers recommend them: GitHub’s best practices say to use a webhook secret, and SendGrid’s support guidance says to verify signatures rather than rely on IPs.
GitHub
With a secret configured, GitHub sends X-Hub-Signature-256, formatted as sha256= plus an HMAC hex digest of the payload. The header is absent if you set no secret. The older X-Hub-Signature uses SHA-1 and is included only for legacy reasons.
import crypto from "node:crypto"; export function verifyGitHub(rawBody, header, secret) { if (!header) return false; const expected = "sha256=" + crypto.createHmac("sha256", secret).update(rawBody).digest("hex"); const a = Buffer.from(expected); const b = Buffer.from(header); return a.length === b.length && crypto.timingSafeEqual(a, b); } Hash the raw body bytes, compare in constant time, and make sure no proxy or load balancer alters the payload or headers. GitHub publishes a test vector: secret It's a Secret to Everybody, payload Hello, World!, signature 757107ea0eb2509fc211221cce984b8a37570b6d7586c22c46f4379c8b043e17. The function above returns true for it and false for a wrong signature.
Twilio
X-Twilio-Signature is a base64 HMAC-SHA1, keyed with your primary Auth Token. It covers the full request URL (scheme, port and query string) followed by each POST parameter’s name and value, sorted alphabetically by name, with no delimiters. Because the URL is signed, anything that changes what your app thinks the URL is will break validation. That includes a TLS-terminating proxy, a rewritten host, or a trailing slash added by a web server.
Twilio’s notes add a few details that matter behind a tunnel:
- For JSON bodies, Twilio adds a
bodySHA256query parameter, and you validate with the body-aware helper (validateRequestWithBodyin the Node SDK). - Port handling differs by product. For SMS callbacks, Twilio keeps the port in the URL it signs; for voice callbacks over HTTPS, it drops it.
- Twilio recommends using the SDK validators rather than your own implementation, and passing them the exact public URL you configured.
SendGrid
The Signed Event Webhook uses ECDSA. Each POST carries X-Twilio-Email-Event-Webhook-Signature and X-Twilio-Email-Event-Webhook-Timestamp. The signed value is a SHA-256 hash of the timestamp followed by the payload, using the raw bytes. SendGrid warns that converting raw bytes to a JSON string can alter characters that were part of the signature. You enable signing per webhook in Mail Settings under Event Webhooks, and the key pair is generated when you save. Use the public key shown there, and prefer SendGrid’s official Event Webhook helpers over hand-rolled verification. SendGrid also offers OAuth 2.0 as a separate, independent control; the two can be used together.
What signatures don’t solve
A valid signature doesn’t stop replay by itself. GitHub suggests using X-GitHub-Delivery to ensure each delivery is processed once (a redelivery reuses the original ID). Stripe signs a timestamp into its header, and its libraries reject events more than 5 minutes off by default; Stripe warns against setting the tolerance to 0, which disables the check. For SendGrid, the signed timestamp lets you apply your own window. The documentation I read doesn’t prescribe one, so pick one and keep your server clock synced.
The one paragraph on X-Forwarded-For
Behind a proxy or tunnel, the TCP peer your app sees is the proxy, not GitHub, so an IP check must read the client address from a forwarded header. That header is trustworthy only when set by infrastructure you control. A request carrying a forged X-Forwarded-For with a GitHub address must never pass. Set your framework’s trusted-proxy option to the exact hop, and see the Forwarded Headers post in this series for the full treatment.
Test the allowlist path through a tunnel
Stale allowlists survive because nobody exercises them until production. A tunnel gives you a public HTTPS URL pointing at your laptop, so the real provider, the real proxy hop and your real rules run together. A stable subdomain lets you register the callback once.
- Run the app with the allowlist and signature check on, tunnel attached.
- Register the tunnel URL as a webhook on a throwaway GitHub repo, with a secret. Trigger an event, or redeliver one from the last 3 days. Confirm a
2xxand a verified signature. - Log both the socket peer and the forwarded IP. If your check uses the wrong one, everything is rejected (the peer is the tunnel agent) or everything passes (you trusted a spoofable header).
- Send a spoofed request.
curlthe tunnel URL with a forgedX-Forwarded-Forin a GitHub range and a bogus signature. It must be rejected on the signature, whatever the IP check does. That proves the signature, not the list, is the real gate. - Simulate drift. Drop one new
/28from your test list, redeliver, and confirm the rejection is logged with the IP and fires your alert. Then restore it. - Break the proxy on purpose. For Twilio, change the scheme or host your app reconstructs and watch validation fail, safely.
If your tunnel offers a request log, compare headers as sent with headers as received to find modified bodies or dropped headers.
Local forwarders are not the same test
GitHub’s CLI extension (gh webhook forward) and Stripe’s stripe listen both forward events to a local endpoint without a public URL. They’re handy for handler logic. GitHub says webhook forwarding works only for repository and organization webhooks, is meant for testing and development, and allows one person at a time per repository or organization. The pages I read don’t say that forwarded events pass through your firewall rules, so use a tunnel when you want to exercise the allowlist.
Maintenance checklist
- Make signature verification the primary control wherever offered.
- Generate any IP allowlist from the provider’s API or published list, never a pasted one.
- Refresh on a schedule, keep the last good copy, alert on diffs.
- Subscribe to the GitHub and Twilio changelogs, SendGrid’s status page, and Stripe’s API announce list.
- For Twilio Event Streams, keep both ranges until Twilio retires the legacy one.
- Deduplicate on delivery IDs and check signed timestamps.
- Re-run the tunnel test after firewall, proxy or framework upgrades.
FAQ
Does GitHub recommend IP allowlisting for webhooks?
Mixed signals, so read both pages. Its webhook best practices describe an allowlist as a way to block spoofed requests and tell you to update it periodically. Its IP documentation says it doesn’t recommend allowing by IP and urges regular monitoring of the API if you do. For verifying origin and integrity, it tells you to validate the signature.
Where are GitHub’s current webhook IP ranges?
In the hooks array returned by GET https://api.github.com/meta. Query the API; don’t copy documentation examples.
How fast must my endpoint respond to GitHub?
With a 2xx within 10 seconds, or GitHub terminates the connection and counts the delivery as failed. Acknowledge quickly and process asynchronously.
Do I need to change anything for Twilio’s new range?
Only if you validate Event Streams traffic by source IP. Add 3.80.20.0/25 and keep 35.90.102.128/25 until Twilio says otherwise.
Can I allowlist SendGrid’s webhook IPs?
SendGrid generally can’t provide stable ranges, and it changed its webhook ranges in early 2026. Use the Signed Event Webhook, optionally with OAuth 2.0.
Can I recover deliveries I missed while my allowlist was stale?
GitHub allows redelivery of deliveries from the past 3 days and doesn’t redeliver automatically. Stripe retries automatically for up to three days in live mode and allows manual resends for longer. Check each provider’s retry and replay window before you rely on it.
Conclusion
Provider IP ranges are configuration owned by someone else. GitHub added webhook ranges in October, Twilio is moving Event Streams to regional addresses, and SendGrid migrated its webhook infrastructure in February and March and says not to rely on IPs. Verify signatures on the raw body, deduplicate deliveries, and treat any network allowlist as a self-refreshing defense in depth. Then prove it through a tunnel before a missed delivery proves it doesn’t.
One adjacent note: on November 17, GitHub put Event Streams into preview (waitlist required), where a client keeps a connection open to receive pull request events and no public webhook endpoint is required. It doesn’t replace ordinary webhooks, but for agents waiting on PR activity it removes the inbound endpoint, and the allowlist question, entirely.
Sources
- GitHub Changelog: Webhook IP ranges added to the Meta API
- GitHub Changelog: GitHub Event Streams is now in preview
- GitHub Docs: About GitHub’s IP addresses
- GitHub Docs: Best practices for using webhooks
- GitHub Docs: Validating webhook deliveries
- GitHub Docs: Redelivering webhooks
- GitHub Docs: Using the GitHub CLI to forward webhooks for testing
- GitHub Docs: REST API endpoints for meta data
- GitHub Docs: Best practices for using the REST API
- GitHub Developer: Webhook IP addresses are changing (2019)
- Twilio Changelog: New Regional IP Address for Event Streams Webhooks in US East
- Twilio Docs: Event Streams GA migration
- Twilio Docs: Static Proxy for Webhooks
- Twilio Docs: Security (validating requests)
- Twilio Status: SendGrid Legacy Public IP Deprecation
- SendGrid Status: Event Webhook and Inbound Parse Maintenance, February 23 to March 6, 2026
- SendGrid Support: Firewall settings for Webhook and Inbound Parse IPs
- SendGrid Docs: Event Webhook security features
- SendGrid Status: Event Webhook outbound IP change (2021)
- Stripe Docs: Domains and IP addresses
- Stripe Docs: Receive Stripe events in your webhook endpoint
Originally published at https://instatunnel.my/blog/the-webhook-allowlist-that-went-stale-provider-ip-ranges-change-under-you