Navigating Shopify's IP Allowlist: A Deep Dive for Functions-Only App Developers (and the Hidden Gotchas!)
Hey everyone,
Security is always a hot topic in the e-commerce world, and Shopify is constantly working to keep our stores and data safe. One of the more recent updates that had a lot of app developers scratching their heads was the IP allowlist requirement for public apps. It's a fantastic security measure, but it raised a pretty specific question for those of us building with Shopify Functions: what do you enter in the IP allowlist if your app doesn't have an external server making Admin API calls?
This exact scenario sparked a really interesting discussion in the Shopify community forums, and I wanted to share the key takeaways and some crucial lessons learned. It turns out, what seems like a straightforward question can uncover some hidden complexities.
The IP Allowlist Conundrum for Functions-Only Apps
Our community member, t.saimen, kicked off the discussion with this exact problem. Their app was built with Rust, compiled to WASM, and ran entirely on Shopify as a Shopify Function. They were confident their app had no external backend server calling the Admin API. They checked the Dev Dashboard logs and saw no Admin API traffic for 30 days. Yet, when they tried to save the IP allowlist with an empty list, Shopify's dashboard insisted: "Please add at least one IP address, range, or ASN."
It's a frustrating spot to be in, right? If your app doesn't make those calls, there's no IP or ASN of your own to add. So, what's the deal?
The "Block All" Solution (for Truly Functions-Only Apps)
Thankfully, the community quickly chimed in with the official, clean answer for apps that genuinely don't make Admin API requests from their own servers. As Shawn-Z, Josh-FiveAcreCode, and pipelabs pointed out, Shopify has a specific option for this scenario:
In your Dev Dashboard > Settings > IP allowlist, you can select the option to "Block requests from all addresses."
This might sound counter-intuitive, but it's exactly what you need. If your app truly doesn't make Admin API requests using its own access tokens, then blocking all external addresses satisfies the allowlist requirement. Shopify runs your Functions directly, so they're not affected by this allowlist. Also, direct API access from embedded pages, Admin, or POS UI extensions, and inbound webhooks from Shopify, will continue to work normally.
But Here's the Critical Catch: Is Your App Truly Functions-Only?
This is where t.saimen's update became the biggest lesson of the thread. Despite initial assumptions and log checks, it turned out their app wasn't entirely "Functions-only." After digging deeper, they discovered a component built by another developer was communicating with Shopify from an external server. This external communication wasn't immediately obvious from their first checks.
This is a super common scenario, especially with apps that have been developed over time, by different teams, or have multiple functionalities. What you think is the architecture might not be the whole picture.
Your Action Plan: How to Navigate the IP Allowlist
Based on the community's insights, here's a step-by-step approach to make sure your app is compliant without any nasty surprises:
Step 1: Verify Your App's Architecture (Thoroughly!)
This is the most crucial step. Before you do anything else, confirm with every developer who has ever worked on your app whether any part of it makes Admin API calls from an external server. Don't just rely on recent logs, as websensepro wisely noted. Calls that only run during onboarding or specific, infrequent events might not show up in 30 days of traffic if you haven't had new installs. Ask specifically about merchant billing, app activation, or any setup processes.
Step 2: Head to Your Dev Dashboard
Once you're confident about your app's traffic patterns, navigate to:
Dev Dashboard > Settings > IP allowlist
Step 3: Choose the Right Option
-
For Truly Functions-Only/Extension-Only Apps: If you've confirmed your app makes absolutely no Admin API calls from your own hosted backend (like t.saimen initially thought they had), select "Block requests from all addresses." No placeholder IP needed!
-
For Apps with External Backends: If, like t.saimen discovered, your app does have an external server making Admin API calls, you'll need to enter the outbound IP address(es) or ASN(s) of that server. Josh-FiveAcreCode highlighted that Shopify now lets you configure both IP addresses and ASNs simultaneously, which is great for mixed setups (e.g., static backend IPs and dynamic/serverless hosting).
Step 4: "Test Against Recent Traffic" – Don't Skip This!
Even if you're sure, always, always run "Test against recent traffic" before enforcing the policy. This tool checks your app's recent API calls against your proposed allowlist rules. As pipelabs and hashlogics emphasized, a forgotten background call could easily turn into a 403 error later if you don't test first.
Step 5: Enforce and Save
Once your test passes and you're confident in your settings, click "Enforce IP allowlist" and save your changes. Your app listing should return automatically, and any pending reviews can proceed.
The key takeaway here is clarity and diligence. The IP allowlist is a crucial security feature, and understanding your app's true architecture is paramount to getting it right. Don't assume; verify. The community's experience, especially t.saimen's journey, really underscores that.