CatalogCleanse / Engineering Guides / Custom App IP Allowlist 2026

Shopify Custom App IP Allowlist 2026: Static IPv4 /32 vs ASN, 403 Errors, and the January 1, 2027 Cutoff

Updated: 2026-12-05 Scope: Partner / agency custom apps · Admin API Reading time: ~9 min
Two dates, one portfolio-wide consequence.
Since 2026-11-20, a custom app needs an IP allowlist before it can be newly installed on a store outside the organization that owns it. From 2027-01-01 the rule covers existing installs too — 27 days after this guide was published. If even one custom app you own still has no allowlist, Shopify can block installs of all your custom apps on stores outside your organization.

Most agencies we talk to read the changelog entry, assumed it was about public apps, and moved on. It is not. The rule targets the exact setup agencies use every day: a custom app created under the agency's organization and installed on a client's store through a custom distribution link. Merchant-created apps that live inside the merchant's own organization, and apps installed only on stores inside your organization, are handled separately. Public apps run on their own timeline.

1. What a missing or wrong allowlist looks like in production

Shopify evaluates the allowlist when your server calls the Admin API (GraphQL or REST). If the request's source address does not match an entry, the call is refused with 403 Forbidden — even though the access token is valid and the scopes are correct.

$ curl -s -o /dev/null -w "%{http_code}\n" \
    -X POST "https://client-store.myshopify.com/admin/api/2026-10/graphql.json" \
    -H "X-Shopify-Access-Token: $SHOPIFY_TOKEN" \
    -H "Content-Type: application/json" \
    -d '{"query":"{ shop { name } }"}'
403        # same token, same scopes, request left from an address not on the list

Why this failure is quiet

2. Static IPv4 /32 vs ASN vs country: the real trade-offs

The Dev Dashboard (app → Settings → IP allowlist) accepts individual addresses and CIDR ranges, and offers ASN and country options for hosting that cannot guarantee fixed egress. Overly broad IPv4 ranges are rejected (wider than /16 at the time of writing), and entries per app are capped, so check the current limits in Shopify's docs before you plan around them.

OptionWhat it actually admitsOperational costFailure mode
Single IPv4 /32 per egress host Exactly your machine(s) You must own a static address and keep it attached Host replaced without moving the static IP → instant 403
Small CIDR (e.g. /29 NAT pool) Your NAT gateway range NAT gateway billing; more addresses to audit Pool expanded or re-created → new addresses not listed
Hosting provider ASN Every tenant of that provider Near zero A leaked token is usable from any VM on the same cloud
Country Anyone in that country Zero Provides almost no protection; treat as a stopgap

The control exists to make a stolen access token useless outside your infrastructure. An ASN entry for a hyperscaler quietly undoes that: anyone renting a VM on the same cloud passes the check. We use ASN only as a bridge for a week while a static egress is being built, never as the end state.

3. Building a dedicated static IPv4 egress on Lightsail + Caddy

For a single app or a small agency portfolio, one small Lightsail instance with an attached static IP is the cheapest setup that is easy to reason about. Caddy terminates TLS for the inbound webhook endpoint; the outbound Admin API calls leave from the instance's public IPv4, which is the static address you allowlist.

# 1. Reserve and attach a static IPv4 (stays yours if the instance is rebuilt)
aws lightsail allocate-static-ip --static-ip-name shield-egress-1
aws lightsail attach-static-ip   --static-ip-name shield-egress-1 --instance-name shield-worker-1
aws lightsail get-static-ip      --static-ip-name shield-egress-1 --query "staticIp.ipAddress"

# 2. Remove the IPv6 surprise: make the instance IPv4-only
aws lightsail set-ip-address-type --resource-type Instance \
    --resource-name shield-worker-1 --ip-address-type ipv4
# /etc/caddy/Caddyfile  (inbound webhooks only; egress is unaffected by Caddy)
hooks.example-agency.com {
    encode gzip
    reverse_proxy /webhooks/* 127.0.0.1:3000
    respond /healthz 200
}
The dual-stack trap. If the instance has IPv6, your HTTP client may resolve *.myshopify.com over AAAA and leave from an IPv6 address you never listed. You added the right IPv4 and still get 403. Either disable IPv6 as above, add the IPv6 address explicitly, or force IPv4 in the client.
// Node 20+: prefer IPv4 for every outbound call from this worker
import dns from "node:dns";
dns.setDefaultResultOrder("ipv4first");

const res = await fetch(`https://${shop}/admin/api/2026-10/graphql.json`, {
  method: "POST",
  headers: { "X-Shopify-Access-Token": token, "Content-Type": "application/json" },
  body: JSON.stringify({ query: "{ shop { name } }" }),
});
if (res.status === 403) throw new Error("Egress IP not on allowlist - do not retry");

Note the last line: classify 403 from the Admin API as non-retryable and alert on it. Retrying an allowlist rejection never succeeds.

4. Verify before you enforce

We run this sequence on every egress host, in this order, and only then switch enforcement on:

  1. Confirm the observed egress address. From the worker itself, not your laptop:
    curl -4 -s https://checkip.amazonaws.com     # must equal the static IP
    curl -6 -s --max-time 5 https://checkip.amazonaws.com || echo "no IPv6 egress (good)"
  2. Positive probe. Run the shop { name } query from section 1 on the worker with curl -4. Expect 200.
  3. Replay recent traffic. Use the Dev Dashboard's test against recent traffic to see whether any request in the last window came from an address you did not list (old cron box, a developer's machine, a forgotten Lambda).
  4. Negative probe after enforcement. Send the same query from a machine that is not listed. Expect 403. If you get 200, enforcement is not active for that app.
  5. Exercise a real write. Set a hidden test product to Draft and back with productUpdate. Reads passing while writes fail usually means a second code path (a queue worker, a separate region) egresses elsewhere.

5. Agency migration checklist (27 days)

6. If you would rather not run egress for a price guard

Many agencies built a custom app only to watch prices: catch a $0.00 variant or an inverted compare-at price pushed by an ERP and pull the product before it sells. That now means static egress, allowlist audits and 403 alerting on top of the webhook loop guard.

CatalogCleanse Auto-Shield is that guard as a managed custom app. Its Admin API traffic has egressed from a dedicated static IPv4 on our own allowlist since 2026-11-20, so installing it on a client store adds nothing to your allowlist backlog. It listens to product webhooks and moves a $0 product to Draft in 3.05 seconds (measured on a live store), clears inverted compare-at prices, and starts every store in a 48-hour Dry-Run that changes nothing until you reply GO LIVE. The Agency plan is $99/month for up to 5 stores, and the $199 done-with-you setup covers the private app install, threshold tuning and a live $0.00 drill, with the first month included.

Check a client's catalog for free first

Drop a Shopify product export into the browser-local checker. It runs entirely in your browser, nothing is uploaded, and it flags $0 prices, inverted compare-at prices and duplicate SKUs in seconds.

FAQ

Does the Shopify IP allowlist affect incoming webhooks?

No. The allowlist is checked when your server calls the Admin API. Webhooks are Shopify calling you, so they keep arriving even when every outbound write from your app is being rejected with 403. That is exactly why the failure is easy to miss.

What happens on January 1, 2027 if one of my custom apps has no allowlist?

Existing installs outside your organization fall under the rule, and Shopify can block you from installing any of your custom apps on stores outside your organization until every app in the portfolio has an allowlist configured. One forgotten legacy app can stall new client onboarding.

Should I allowlist a static IPv4 /32 or my hosting provider's ASN?

A single static /32 per egress host is the tightest option and the easiest to audit. An ASN entry is convenient for serverless hosting but admits every customer of that provider, which weakens the point of the control. Use ASN only as a temporary bridge.

Why do I still get 403 after adding my server's IPv4 address?

The most common cause is dual-stack hosting: the server resolves the shop domain over IPv6 and egresses from an IPv6 address that is not on the list. Force IPv4 in your HTTP client or disable IPv6 on the instance, then re-test.