IP Allowlist

Table of Contents

  • Overview
  • What the allowlist covers
  • How it works
  • Enabling the allowlist
  • Adding addresses and ranges
  • Common scenarios
  • Avoiding lockouts
  • What a refused request looks like
  • AI agent apps
  • Related

Overview

The IP allowlist restricts access to your organization's data to the IP addresses and ranges you trust, such as your office network or corporate VPN. It applies to every way of reaching that data: the web app, and non-interactive credentials such as API keys, OAuth access tokens, AI agent tokens and SCIM tokens.

This binds each credential to a trusted source. Even with a valid key or token, a request from any other address is refused.

The IP allowlist is configured per organization and is available on enterprise plans with single sign-on (SSO) enabled. It is managed from your organization settings by an organization administrator.

What the allowlist covers

AccessFrom an address that isn't on the list
Web appMembers can still sign in. The organization is marked Not available from your current network, and its tests, results and settings can't be opened.
API keys and OAuth access tokensRequests for the organization's data are refused with a 403 error. Lists that span organizations, such as /v1/suites, leave the organization out.
AI agent (MCP) tokensThe connection is refused. A session that's already open is checked on every message, so it's refused as soon as it moves to another address.
Recording browser extensionMembers can still sign in to the extension. Reading from or recording into the organization is refused.
SCIM provisioning tokensYour identity provider's requests are refused with a 403 error.

Scheduled tests and suites aren't affected: they run on Ghost Inspector's own servers, not from your network.

How it works

  • It protects one organization. The allowlist applies to the organization it's set on, whichever credential is used and whoever it belongs to. A member's other organizations keep working from any address, unless they have allowlists of their own.
  • When it's disabled, requests from any address are allowed (the default). The same is true if it's enabled with no entries.
  • When it's enabled, only requests from an address that matches an entry can reach the organization's data.
  • It depends on SSO. The allowlist is only enforced while SSO is enabled for the organization. If SSO is turned off, the allowlist stops applying.
  • It checks the real source address. The check uses the address your request reached us from. An X-Forwarded-For header sent by the client is ignored, so it can't be used to pretend to be on the list.
Before you enable the allowlist, make sure your own current IP address is included. Your current address is displayed on the settings page, and saving an enabled allowlist that doesn't include it is refused.

Enabling the allowlist

  1. Open your organization settings and go to the IP Allowlist page.
  2. Add an entry that covers your current network (your current IP address is displayed on the page for reference).
  3. Add an entry for everything that calls Ghost Inspector on your behalf: CI/CD runners, AI agents, and your identity provider's SCIM provisioning servers.
  4. Check the box to enable the IP allowlist.
  5. Save your changes.

IP Allowlist settings

Adding addresses and ranges

You can add entries as either a single IP address or a network range in CIDR notation:

  • Single address — for example, 203.0.113.42. Use this for a fixed office or VPN exit IP.
  • CIDR range — for example, 203.0.113.0/24. Use this to cover a block of addresses, such as an entire office subnet.

Add each address or range you want to trust. To stop trusting a network, remove its entry from the list using the Remove action next to it.

If your office or VPN uses a dynamic IP that changes periodically, prefer adding the provider's CIDR range rather than a single address, so members aren't unexpectedly blocked when the address rotates.

Common scenarios

  • Office only — add your office's public IP address or subnet so the organization can only be accessed on-site.
  • VPN required — add your VPN's exit IP address(es) so members must connect through the VPN first.
  • Multiple locations — add an entry for each office or trusted network; members on any listed network are allowed.
  • CI/CD and automation — add the outbound addresses of the systems that use your API keys. A hosted CI service may publish its ranges, or offer static addresses.
  • SCIM provisioning — add the addresses your identity provider sends provisioning requests from. See your identity provider's documentation for the current list.

Avoiding lockouts

  • Always confirm your current IP (shown on the settings page) is covered before enabling.
  • When adding a VPN or office range, double-check the address with your network administrator.
  • From an address that isn't on the list, the organization's settings can't be opened either, so an administrator has to connect from a listed network to change the allowlist.
  • If you do get locked out — for instance, after a network change — contact your Ghost Inspector account representative or support for help restoring access.

What a refused request looks like

An API request is refused with HTTP status 403 and the standard authentication error:

{
"code": "ERROR",
"errorType": "AUTHENTICATION_ERROR",
"message": "Access denied. Your IP address is not on the allowlist for this organization."
}

A SCIM request gets a 403 in the SCIM error format, with the same message.

Each refusal is listed in the organization's access events with the address it came from, as Request blocked, AI agent connection blocked, AI agent request blocked or SCIM request blocked.

AI agent apps

Desktop AI apps don't always show why a connection failed. Claude Desktop, for example, only says the server couldn't start. The allowlist message appears in its MCP log:

  • macOS: ~/Library/Logs/Claude/mcp*.log
  • Windows: %APPDATA%\Claude\logs\mcp*.log

If you see that message, connect from an allowlisted network, or ask an organization admin to add your address.

If an administrator removes an address, an AI agent session that's already open from it is refused within a minute.