Connecting an Endpoint
Katara’s gateway calls your endpoint for every request your Plexus serves. Nothing from Katara runs on your side: you choose how the gateway reaches the endpoint, and what it must present when it gets there. Whichever way you pick, the endpoint must meet the endpoint requirements.
All three ways share these rules:
- The base URL is
https, up to and including/v1. Katara sendsPOST {base}/chat/completionsand, for the check,GET {base}/models. - The gateway needs a credential at the endpoint: a bearer key, a client certificate, or both. A network rule alone is never enough.
- TLS is 1.2 or later, and the server certificate must verify against public roots or the CA bundle you upload. Verification cannot be turned off.
- Redirects are not followed. Point the URL at the server that answers.
- The host must resolve to a public address. Katara checks the address at every connection and refuses loopback, private, link-local and other non-public ranges, so a name that later resolves somewhere private stops working. Katara’s own hostnames are refused too. PrivateLink is the one exception, and only for the address Katara recorded for that endpoint.
- Every request carries
X-Katara-Request-Id. Log it to match your records to Katara’s.
Direct HTTPS
Section titled “Direct HTTPS”Use this when the endpoint, or a gateway in front of it, can have a public HTTPS address.
- Publish the endpoint on a hostname with a certificate from a public CA, or from your own CA if you upload its bundle.
- Allow inbound HTTPS from Katara’s egress addresses, listed below, and nothing else.
- Require a credential: a bearer key, a client certificate (mTLS below), or both. A bearer key goes in the
Authorization: Bearerheader, which most inference servers and gateways check with an API key setting. Both together are the strongest choice. - In Plexus → Connect, choose HTTPS and enter the base URL and credentials.
Katara’s gateway calls endpoints from these addresses. Live and Test send from the same ones.
| Address |
|---|
3.150.56.227 |
18.225.186.83 |
AWS PrivateLink
Section titled “AWS PrivateLink”Use this to keep traffic between Katara and your endpoint off the public internet. Katara’s production account connects to an endpoint service you run, from its VPC in us-east-2.
- Put a Network Load Balancer in front of your gateway and create a VPC endpoint service for it. Listen on TCP 443 and terminate TLS on your gateway, with a certificate for the hostname in your base URL.
- Add Katara’s production account to the service’s allowed principals:
arn:aws:iam::259887029254:root. Live and Test both connect from it. - Send support the service name (
com.amazonaws.vpce.<region>.vpce-svc-…) and its region, with the endpoint’s id from the portal. Katara’s VPC uses one availability zone, and support tells you its zone ID: your load balancer must serve that zone. Zone IDs, not zone names, match across AWS accounts. - Accept Katara’s connection request if your service requires acceptance.
- In Plexus → Connect, choose PrivateLink and enter the base URL with your real hostname, such as
https://llm.internal.example.com/v1, and a bearer key or client certificate.
Katara records the private address of its interface endpoint on your endpoint, where the portal shows it. The gateway then connects to that address only and verifies the certificate against the hostname in the URL, so the hostname need not resolve publicly. Each new interface endpoint is a change Katara makes in its own account, so allow a short wait between sending the service name and the first check.
For a service in another region, enable cross-region access on it for us-east-2. AWS offers this only in some regions and charges the service owner for it.
A Tunnel You Run
Section titled “A Tunnel You Run”Use this when the endpoint has no public address and you already run a tunnel service that publishes private services on a public hostname, with an access policy at its edge.
- Publish the endpoint through the tunnel on a hostname, such as
llm.example.com. - Put an access policy in front of it that admits a service token: a non-interactive credential the edge accepts in request headers, with no browser sign-in.
- Keep a bearer key or client certificate at the origin as well. The access policy guards the edge; the credential guards the endpoint.
- In Plexus → Connect, choose Tunnel, enter the base URL, the credential, and the access headers with the token’s values, under the header names your tunnel’s edge expects, such as
CF-Access-Client-IdandCF-Access-Client-Secret.
The egress addresses do not apply here: your tunnel’s edge, not your firewall, sees Katara’s connection. Up to four access headers are sent with every request. Their values are stored like any other credential and only their names are shown. A header may not be Authorization, Host, Cookie, a Content- header, Transfer-Encoding, Connection or an X-Katara- header.
Your proxy can require a client certificate from Katara’s gateway on any of the three connections. Choose one of two sources under Client certificate (mTLS).
Issued by Katara. Katara’s gateway presents a certificate from Katara’s Plexus certificate authority, made for that one endpoint. Have your proxy trust the authority’s certificate, which the gateway publishes:
curl -s https://api.katara.com/v1/plexus/ca.pem -o katara-plexus-ca.pemThen admit only the certificate for your endpoint. Each one names it twice:
| Field | Value |
|---|---|
| URI subject alternative name | katara-plexus://<organization id>/<environment id>/<endpoint id> |
| Common name | The endpoint’s id |
| Organizational units | organization:<id>, environment:<id> and network:live or network:test |
Match the URI exactly: trusting the authority alone would admit an endpoint of another organization. The key is P-256 and the certificate allows client authentication only. Each one is valid for a week and the gateway replaces it two days before it expires, so pin the URI or the common name, never a particular certificate or its serial number.
Your own. Have your proxy require a certificate from your CA, and upload that certificate and its private key, in PEM. Admit only that certificate’s subject. To rotate it, upload the new one with Replace Credentials before the old one expires; Katara keeps presenting the old one until a check passes with the new one. The portal shows each certificate’s expiry.
When the Check Fails at Reach
Section titled “When the Check Fails at Reach”| Reason | What to look at |
|---|---|
address_refused | The hostname resolves to an address Katara does not connect to, such as a private one, or the URL is not https |
unreachable | Nothing answered. For direct HTTPS, check that the firewall allows the egress addresses; for PrivateLink, the allowed principal and the zone |
tls_failed | The certificate did not verify for the hostname, or the server asked for a client certificate it did not get |
timeout | The connection or the first reply took too long |
unauthorized | The endpoint answered 401 or 403: the bearer key, certificate or access headers were refused |
redirect_refused | The endpoint answered with a redirect. Use the URL it points to |