Serverless Apps Get IP Allowlist Support via ASNs – What You Need to Know

Shopify now lets serverless apps add their hosting provider’s ASNs to IP allowlists, simplifying security for dynamic egress IPs. Learn what changed, who’s impacted, and how to configure the new settings today.

Serverless Apps Get IP Allowlist Support via ASNs – What You Need to Know
8 sections

Shopify’s latest developer changelog introduces a game‑changing feature for apps running on serverless platforms: you can now add your hosting provider’s autonomous system numbers (ASNs) to an app’s IP allowlist. This move tackles the long‑standing pain point of dynamic egress IPs, letting developers secure API calls without hard‑coding static addresses. In this post we’ll unpack the update, explain who needs to act, and walk you through the exact steps to get your allowlist up and running.

Why IP Allowlists Matter for Shopify Apps

IP allowlists are Shopify’s first line of defense against unauthorized traffic. When an app calls the Admin API or GraphQL endpoints, Shopify checks the request’s source IP against the list you’ve defined. If the IP isn’t allowed, the request is rejected with a 403 status. This protects both merchants and Shopify from malicious traffic, rate‑limit abuse, and accidental data exposure. Historically, allowlists required static IP addresses—a simple model for traditional hosted apps but a nightmare for serverless functions that rotate IPs on every invocation.

What Changed: ASN Support for Serverless Hosting

The Settings > IP Allowlist section in the Dev Dashboard now accepts two entry types: individual IP addresses or whole networks identified by ASNs. You can add up to 10 ASNs and optionally restrict them to a maximum of 10 countries where your app runs. After you add the networks, you can test the configuration against recent traffic and then flip the “Enforcement” toggle. Once enforced, any request originating outside the allowed ASNs or IPs receives a 403 response.

Who Is Affected: Developers vs. Merchants

Developers building public or custom apps that run on AWS Lambda, Google Cloud Functions, Vercel, Netlify, or similar serverless services will benefit most—because their outbound IPs are not static. Merchants generally won’t need to take direct action, but they’ll notice more reliable app behavior and fewer “403 Forbidden” errors when the app’s allowlist is correctly configured. In short, developers must update their app settings; merchants reap the security and stability gains.

Step‑By‑Step: Adding ASNs to Your App’s Allowlist

  • Open your app in the Shopify Partner Dashboard and navigate to Settings → IP Allowlist. 2. Choose Add Network (ASN). 3. Enter the ASN(s) provided by your hosting provider (e.g., AS16509 for Amazon AWS). 4. (Optional) Select the countries where your functions execute to tighten the filter. 5. Click Test Allowlist – the dashboard will compare the entered networks against recent egress IP logs from your app. 6. When the test passes, toggle Enforcement to On. 7. Save changes.
  • If you also have static IPs (for example, a small VM used for webhook processing), you can keep those entries alongside the ASN entries. Shopify will treat the list as a union of allowed IPs and networks.

    Testing and Enforcing the Allowlist

    The “Test Allowlist” feature pulls the last 24‑hour request log for your app and highlights any calls that would have been blocked. Review the report, adjust ASN or country selections if needed, and re‑run the test. Once you’re confident, turn enforcement on. Remember: enforcement is global—all API calls, including webhooks, will be subject to the same check. If you rely on third‑party services (e.g., a payment gateway that posts to your webhook endpoint), ensure those services are covered by the ASN list or add their static IPs separately.

    Impact on Public Apps and Upcoming Requirements

    Shopify has announced that IP allowlists will soon become mandatory for every public app listed in the Shopify App Store. While the enforcement deadline has not been published, the guidance is clear: all public apps should have an allowlist configured today. Using ASNs is the recommended path for serverless apps because it future‑proofs your configuration against IP churn. Failing to add an allowlist may result in API request failures, negative merchant experiences, and potentially removal from the App Store during the compliance audit.

    Best Practices and Quick Checklist

  • Identify your hosting provider’s ASN(s). Most major cloud platforms publish them in their documentation (AWS AS16509, GCP AS15169, Azure AS8075, etc.). - Limit to relevant countries. If your functions only run in the US and Canada, restrict the list to those countries to reduce the attack surface. - Keep a fallback static IP entry for any on‑premise services that can’t be covered by an ASN. - Monitor the “Test Allowlist” report weekly during the rollout phase to catch any missed traffic. - Document the allowlist in your repo (e.g., a JSON file) so future developers know which networks are approved.
  • Here’s a minimal JSON snippet you might store in your repo for reference:

    {

    "ipAllowlist": {

    "asns": ["AS16509", "AS15169"],

    "countries": ["US", "CA"],

    "staticIps": ["203.0.113.45"]

    }

    }

    Conclusion & Call to Action

    The new ASN‑based IP allowlist removes a major obstacle for serverless Shopify apps, letting you secure API traffic without hunting down ever‑changing IP addresses. Update your app’s settings today, run the built‑in tests, and flip enforcement on before the mandatory‑allowlist deadline hits. Need a hand? Join the #shopify‑dev Slack channel or drop a comment below—we’re happy to help you get your allowlist configured perfectly.

    Tags
    Sources

    Related Articles

    Why Your Public App Must Add an IP Allowlist by November

    Why Your Public App Must Add an IP Allowlist by November

    Shopify now requires every public app that calls the Admin API to enable an IP allowlist. Learn the deadlines, how to configure it, and what to do if you use serverless or bulk operations.

    November 5, 20264 min
    Why IP Allowlists Are Now Mandatory for All Public Shopify Apps

    Why IP Allowlists Are Now Mandatory for All Public Shopify Apps

    Shopify now requires every public app to configure an IP allowlist by November 2026. Learn who’s affected, the exact deadlines, why it matters, and step‑by‑step instructions to stay compliant.

    November 5, 20264 min
    Test Your App’s Network Access Settings Directly on Dev Stores

    Test Your App’s Network Access Settings Directly on Dev Stores

    Learn how Shopify’s new network access testing preview lets developers validate allowed hosts and sources on a dev store, avoid navigation warnings, and keep merchant sites secure.

    November 4, 20264 min
    Understanding the NEW RETRY_DECLINED Reason in CustomerPaymentMethod Revocations

    Understanding the NEW RETRY_DECLINED Reason in CustomerPaymentMethod Revocations

    Shopify’s 2027-01 API adds a RETRY_DECLINED revocation reason for payment methods, helping developers distinguish processor blocks from consecutive failures. Learn what changed, who’s affected, and how to update your apps today.

    November 4, 20263 min