Assign a network policy to control where an MCP server, an API token, a webhook listener, workspace-user sign-in, or end-user authentication can be reached from. Each MCP server, token, webhook listener, and restriction holds one policy, and you can assign the same policy to as many of them as you like. An assignment takes effect within about 30 seconds, and until you assign a policy, an MCP server, token, or webhook listener accepts requests from any address.
For how Celigo evaluates a policy and what a blocked caller sees, see Network policies overview. To create a policy first, see Create and manage network policies, or create one from any Network policy field as you go.
Prerequisites:
- You're signed in as an account owner or administrator.
- A policy can only be assigned within the environment where it was created.
- The policy includes the public addresses your callers or users connect from. For a sign-in restriction, that includes your own.
Assign a policy to an MCP server
An MCP server policy applies to every call to the MCP server, whichever authentication method the caller uses.
- At the top of the page, in Environment, select the environment that holds the MCP server.
- Go to AI studio > MCP servers, and then select the MCP server.
- Select the Access tab, and then select Governance.
- In Network policy, select a policy. To create one, open the list and select Create network policy. If no policy exists yet, the field shows a Create network policy button instead of a list.
- Select Save.
Within about 30 seconds, the MCP server refuses calls from addresses the policy doesn't allow with HTTP 403, before any tool runs. Each blocked call appears in the MCP server's request logs as an errored call with status 403. Calls from allowed addresses are unchanged.
Note: The end-user restriction under Account > Security applies to end users who sign in with OAuth, not to API tokens or personal access tokens (PATs). To restrict token traffic to this MCP server, assign an MCP server policy, or assign a policy to the token itself.
Assign a policy to an API token
A token policy applies to every call that authenticates with the token, to any endpoint, in addition to any policy on the endpoint itself.
- At the top of the page, in Environment, select the environment that holds the API token.
- Go to Resources > API tokens.
- Select Actions (…) next to the token, and then select Edit token. To restrict a new token, select Generate token instead. The Create service token drawer opens.
- In General, in Network policy, select a policy.
- Select Save.
Calls with the token from addresses the policy doesn't allow receive HTTP 403 on every endpoint, including MCP servers. When you open the token, its Network policy section shows the assigned policy with a View policy button that opens the policy read-only. Token blocks are recorded in request logs. If a caller reports a 403, compare their public address with the policy.
Personal access tokens have no Network policy field. A PAT follows the workspace-user sign-in restriction of the environment it was created in. See Restrict workspace-user sign-in to approved IP addresses.
Assign a policy to a webhook listener
A webhook listener policy applies to every request sent to the webhook listener's URL, whichever verification type the webhook listener uses. Before you assign one, make sure the policy allows every public address the sending application calls from. A missing range means the sender's requests are refused and your flow doesn't run.
- At the top of the page, in Environment, select the environment that holds the webhook listener.
- Open the webhook listener in one of these ways:
- In the flow that contains the webhook listener, select the webhook listener.
- Go to Resources > Exports, and select the webhook listener.
- Expand Advanced. Only account owners and administrators see the Network policy field.
- In Network policy, select a policy. To create one, open the list and select Create network policy. If no policy exists yet, the field shows a Create network policy button instead of a list.
- Select Save.
Within about 30 seconds, the webhook listener refuses requests from addresses the policy doesn't allow with HTTP 403, before Celigo processes the payload, so no flow run starts. Requests from allowed addresses are unchanged. To confirm the policy works, send a test request from an address the policy doesn't allow, and check that it's refused with HTTP 403. Each blocked request appears in the webhook listener's debug logs with status 403.
Note: You can't assign a network policy to API Builder or JavaScript APIs. To restrict an API you publish through API Management by IP address, use the IP Filtering policy. See APIM Policy Reference Guide.
Restrict workspace-user sign-in to approved IP addresses
This restriction applies to every workspace user of the environment at sign-in and at each account or environment switch. It also applies to every PAT created in the environment, on every call. It doesn't end sessions that are already open, but a blocked user's next request opens the blocked-access page. The Celigo support user is exempt. API tokens, which have their own Network policy field, and SCIM provisioning tokens aren't checked against it. It's separate from the end-user restriction, which has its own checkbox and its own policy.
- At the top of the page, in Environment, select the environment you want to restrict.
- Go to Account (the avatar at the top of the page), select Security, and then select Governance from the left menu.
- Select the IP-based access restriction checkbox. The Network policy field appears below it — it holds one policy and is required while the restriction is on.
- In Network policy, select the policy that allows your users' networks.
- If the warning
Your current IP address (203.0.113.5) is not allowed by this policy. Saving may lock you out.appears, edit the policy to include that address, or connect from an approved network before you continue. The warning doesn't prevent the save. - Select Save.
A user who connects from an address the policy doesn't allow sees a blocked-access page instead of this environment: at sign-in, when switching to it, or on their next request if they're already signed in. The page names the account and environment, says that access is restricted to approved networks, and shows the IP address that was checked. From the page, the user can retry after connecting to an approved network, switch to another account or environment they belong to, or sign out. Each denied sign-in or switch is written to the account's audit log with the IP address that was checked and the reason IP address not permitted by network policy. PATs created in the environment receive HTTP 403 from the same addresses.
To turn the restriction off, clear IP-based access restriction and select Save, or select the trash icon next to the assigned policy. The trash icon removes the assignment immediately.
Restrict end-user sign-in to approved IP addresses
This restriction applies to every end user who signs in to an MCP server in the environment from an AI client, and to every later use of their OAuth token, whichever identity provider they sign in through.
- At the top of the page, in Environment, select the environment you want to restrict.
- Go to Account (the avatar at the top of the page), select Security, and then under End users, select Authentication from the left menu.
- Under Trusted devices, select the IP-based access restriction checkbox. The Network policy field appears below it — it holds one policy and is required while the restriction is on. This checkbox is separate from the workspace sign-in one under Governance, and the two can hold different policies.
- In Network policy, select the policy that allows your end users' networks.
- Select Save.
Within about 30 seconds, an end user who signs in from an address the policy doesn't allow receives HTTP 403 before Celigo issues a token, and an end user whose token is used from such an address receives the same response on every call. These blocks are recorded in request logs. An end user who calls an MCP server that has its own policy must pass both.
The Save button here also saves the end-user MFA settings on the same page. The trash icon next to the assigned policy removes the assignment immediately.
Remove a network policy assignment
Every Network policy field shows the assigned policy with an Edit button and a trash icon. The trash icon next to the assigned policy unassigns it from this MCP server, token, webhook listener, or restriction only. The policy stays in the Network policies table, and its other assignments are unchanged. On an MCP server, an API token, or a webhook listener, select Save afterward. Under IP-based access restriction, the removal is saved at once and the restriction turns off.
The trash icon on a policy's row inside the open Network policy list is different: it deletes the policy for the whole environment, after a confirmation, and the deletion is refused while the policy is assigned anywhere. See Create and manage network policies.
Note: Network policies aren't included when you install an MCP server from a Marketplace template or upload one from a ZIP file. Assign a network policy to the installed server if needed.