What the proxy reaches
- Exigo’s REST API: any subdomain of
exigo.com, on port 443. The bareexigo.comhost is refused. - Exigo-hosted SQL replicas: port 1433, matched by the address the host name resolves to, not by the name itself. This covers Exigo’s own networks and Exigo’s shared Azure SQL server, including the aliases that point to it.
- A replica host name that doesn’t resolve to one of Exigo’s addresses is refused with a
403. - The proxy refuses IP addresses as destinations. Connect to a host name and a port.
Before you start
- Your Mist app has a droplet attached. See Integration points.
- You’re an admin of the company that owns the droplet, or you use a company service token of that company.
-
The Exigo tenant has allowlisted all four of Fluid’s egress addresses, for both the API and the SQL replica:
Fluid is moving the proxy to a new region, and the move has no date yet. Until it moves, Exigo sees only the first two addresses. Allowlist all four now, so calls keep working through the move. Fluid will update this page when the first two can be removed.
Turn on the egress proxy
Turn it on with any of these:- CLI, on an existing app: run
fluid mist droplet egress-proxy onfrom the app’s folder, or pass the app’s slug:fluid mist droplet egress-proxy on spring-bonus. - CLI, when you add the droplet: add
--egress-proxytofluid mist createwith a droplet, or tofluid mist attach --kind droplet. - Mist: check the egress option when you add or edit the droplet in the integration point dialog. The option shows when your company has it.
- Admin: open the droplet’s settings, and under Network Access, check Let this droplet reach external systems (e.g. Exigo) through Fluid’s egress proxy.
fluid mist droplet egress-proxy off, or uncheck the option.
Only an admin of the company that owns the droplet, or a company service token of that company, can turn egress on. For anyone else, the API refuses the change. The CLI’s --egress-proxy adds the droplet without egress and prints a warning. Admin and Mist don’t show the option.
How long a change takes
The proxy keeps each droplet’s answer for a short time:- After you turn egress on, new connections can still be refused for up to a minute.
- After you turn egress off, new connections are refused within a minute.
Use the proxy from your app
Fluid setsFLUID_EGRESS_PROXY_URL on your app when you add a droplet, in environments that have an egress proxy. The variable is set whether egress is on or not, so it doesn’t mean egress is on: until it is, the proxy answers 403. A Mist app whose droplet was added before the proxy existed doesn’t have the variable. Add the droplet again to get it.
Your app authenticates to the proxy with the installation’s droplet installation token, which starts with dit_. See Authentication for where the token comes from.
With the Exigo connection SDK, pass both to the REST client and the SQL pool:
CONNECT proxy, and send the token on the proxy request:
https, because the token travels outside the tunnel.
Local runs
fluid mist env pull doesn’t include FLUID_EGRESS_PROXY_URL, so a local run calls Exigo directly from your own IP address. The code above does that when the variable isn’t set. To test the proxied path, deploy the app.
When the proxy refuses
The Exigo connection SDK throwsExigoProxyError, whose status is the proxy’s answer:
If the proxy lets you through but Exigo still refuses the call, one common cause is that the Exigo tenant hasn’t allowlisted Fluid’s egress addresses for that service. The API and the SQL replica are allowlisted separately. Wrong Exigo credentials look similar: the SDK throws
ExigoAuthError.
Related pages
- Exigo connection SDK: call Exigo’s API and query its SQL replica.
- Hosting: the environment variables Fluid sets on your app.
- Integration points: attach a droplet to your Mist app.