See all services → Shopify Plus Partner
Dev Dashboard Developer

Allow App Traffic From Serverless Hosts Using ASN Rules

Apps without static egress addresses can now allowlist their hosting provider's autonomous system numbers, narrowed to specific countries. It unblocks serverless apps ahead of the November allowlist deadlines, with a wider blast radius than IP rules.

Executive summary

What changed

The IP allowlist section of an app's Settings page now offers two rule types: IP addresses and Networks by ASN. An ASN identifies a network run by one organisation, typically a hosting provider or ISP. You can enter up to 10 ASNs, as numbers with or without an AS prefix, and narrow them to 10 countries. Requests from outside the allowed networks fail with a 403.

Matching is done by lookup. Shopify resolves each request's source address to an ASN and country using MaxMind GeoLite data, then allows it when the ASN is listed and, if you list countries, the country matches. Where the data has no ASN, or no country while you filter by country, the request is rejected. You can test a rule set against recent traffic before enabling enforcement.

IP address rules remain the narrower option: up to 100 entries, public addresses only, and the gateway address where servers sit behind NAT.

Why it matters

This is what makes the November requirement achievable for modern app architectures. Without it, every app on a serverless platform faced a requirement it could not technically meet, pushing otherwise healthy vendors toward the delisting date.

The tradeoff deserves naming. An ASN is a shared network: anyone else running servers inside an ASN you allow, holding a stolen token for your app, can use it from there. ASN rules are a real improvement over no allowlist and a clear step down from specific addresses. When evaluating a vendor, the useful question is not whether they have an allowlist but which rule type they use and whether it is constrained by country. The same discipline applies to the monitoring and alerting around your integrations, because a 403 from a misconfigured rule looks exactly like an outage.

Role-specific impact

Use-case example

Real-world scenario

An integration app on a serverless platform handles order webhooks and writes fulfilment updates back through the Admin API. Its egress addresses rotate across a provider range, so IP rules are unusable. The team pulls two weeks of Dev Dashboard logs, finds client addresses resolving to three provider ASNs across two countries, enters all three with both countries, and tests against recent traffic. The test surfaces a fourth ASN carrying roughly 4 percent of requests from a newly added region, which would have failed silently. Catching that before enforcement is the difference between a clean cutover and a day of dropped fulfilment updates.

Implementation checklist

  1. Check whether your egress addresses are genuinely dynamic, or whether your platform offers a static egress or NAT gateway option instead.
  2. Collect client addresses of recent Admin API requests from Dev Dashboard logs and resolve them to ASNs.
  3. Cross check that list against your provider's published ASNs, allowing for more than one.
  4. Enter up to 10 ASNs and add the countries your app runs in, since an unfiltered ASN is allowed from anywhere.
  5. Test against recent traffic and investigate every unmatched request before enforcing.
  6. Alert on Admin API 403 responses so a rule gap surfaces in minutes, not at the next reconciliation.

FAQ

Q: Is allowing an ASN as safe as allowing specific IP addresses?

A: No. An ASN covers a provider network shared with other customers, so a stolen token could still be used from inside it. Use IP rules when you can pin egress, and narrow ASNs by country.

Q: What if our provider adds a new ASN after we configure the list?

A: Requests from it are rejected with a 403. Re check your logs after any platform or region change, and keep alerting on 403 responses so gaps surface quickly.

Resources

Restrict API access with an IP allowlist

Need guidance? Talk to Makro.