Step 7
Securing the MCP Bridge
Overview
Your MCP Bridge is now publicly reachable — anyone who knows the endpoint can call your tools. In this step you’ll apply a Client ID Enforcement policy with Basic Authentication to require credentials on every request.
Step 1 — Navigate to the MCP Server instance
- Go to MCP Servers
- Find and click PhotoMCPServer
- Click Instances
- Click on the Instance ID to open the instance detail page
Step 2 — Apply the Client ID Enforcement policy
- In the instance detail page, click the Policies tab
- Click Apply Policy
- In the policy list, select Client ID Enforcement
- Under Credential origin, select Basic Authentication - Simple
-
Fill in the credentials:
Field Value User Name mcp-userUser Password mcp-pass - Click Apply Policy
The policy is pushed to the gateway within 30 seconds. No restart required.
Step 3 — Verify the policy is enforced
Without credentials — reconnect in Postman without setting any auth:
- Open your existing MCP Request in Postman
- Remove any auth headers, then click Connect
- Postman should receive a
401 Unauthorizederror and fail to connect
With credentials — add Basic Auth and reconnect:
- In the Postman MCP Request, go to the Authorization tab
- Set Type to
Basic Auth - Enter Username:
mcp-userand Password:mcp-pass - Click Connect
You should connect successfully and see both tools in the Tools tab as before. ✓
What you’ve secured
- Unauthenticated requests return
401 Unauthorized - Authenticated requests (Basic Auth) return the tool list
Continue to Summary & Next Steps →