Upstream routing
Connect Farther Shore to the API you already run.
Connect Farther Shore to the API you already run.
The gateway forwards allowed subscriber requests to your upstream API. Upstream routing is the connection between the public product hostname and the service that actually handles the work.
For an allowed request, the gateway forwards:
The gateway also applies enforcement before forwarding. Denied requests do not reach the upstream.
Use the stable base URL for the API environment you want the product to call.
https://api.example.com
If your upstream has versioned paths, keep the base URL stable and let callers send the path:
GET https://<product-host>/v1/weather?city=Boston
The gateway forwards the request to:
GET https://api.example.com/v1/weather?city=Boston
If your upstream requires its own secret, configure that secret in Farther Shore instead of asking subscribers to send it. Subscribers should use their Farther Shore API key. The gateway can then authenticate to the upstream on their behalf.
This keeps upstream credentials private and lets you rotate subscriber API keys independently from upstream secrets.
Design upstream behavior so it does not depend on subscribers sending internal headers. Subscriber-facing headers should be documented in product docs. Internal headers should be configured at the gateway or upstream integration layer.
After publishing a product:
curl https://<product-host>/health \
-H "Authorization: Bearer <subscriber-api-key>"
Check three things:
If the upstream receives no traffic, start with Gateway response codes and Troubleshooting.