Connections
Connections are encrypted credential vaults for upstream MCP servers. Instead of putting real API keys in your code, you create a connection in Igris that stores the credential securely and gives you a clean gateway URL.How Connections Work
- Real credentials never leave Igris — encrypted at rest with AES-256-GCM
- Rotate credentials instantly without changing any code
- Revoke access by disabling the connection
- Full audit trail of every request per connection
Create a Connection
In the dashboard: Govern → Connections → New Connection Or via API:201 with the connection (without the credential). A duplicate slug returns 409. A body that fails validation returns 422. A rejected authType or a missing credential returns 400. Creating connections needs the connections:write permission.
Connection types
serverType is http (the default, an MCP server; needs upstreamUrl) or llm (needs llmProvider). stdio is not supported and is rejected on create. An LLM connection looks like this:
llmProvider values and LLM Gateway for how the gateway uses the connection.
Fields
Auth types
authType controls how Igris sends your credential upstream. The default is none: if you leave authType out, the connection sends no credential.
oauth, mtls, azure, aws and gcp are not supported. Creating or updating a connection with one of them returns 400.
Self-hosted LLM providers (Ollama, openai-compatible, HuggingFace, Triton, Modal) can be created without a credential.
For an LLM connection with api_key, the credential goes where you say:
Custom Auth Headers
Some MCP servers expect credentials in a non-standard header. UseauthType: "header" with authHeaderName (it defaults to Authorization):
X-API-Key: sk_my_secret_key to the upstream server.
Use a Connection
With the SDK
Direct MCP Client Config
See MCP Client Config for per-client files. A generic example:Credential Injection
When the gateway receives a request, it:- Strips your Igris API key (never forwarded upstream)
- Decrypts the connection’s credential
- Injects it using the configured auth type:
- bearer:
Authorization: Bearer <credential> - header:
<authHeaderName>: <credential> - none: no credential injected
- bearer:
customHeaders) are added before the auth header, and the auth header always wins if the names collide.
The upstream server only sees its own credential. Your users only see the Igris API key.
Upstream URL safety
Igris refuses to forward to internal addresses. The gateway resolves the hostname before each request and blocks localhost, private IP ranges (10.x, 172.16-31.x, 192.168.x, 127.x), link-local addresses and cloud metadata endpoints. A hostname that resolves to an internal address is also blocked. ThePOST /api/v1/connections/test probe applies the same check.
Igris does not follow upstream redirects. If your upstream answers with a redirect, the request fails with an error that names the redirect target (“use that URL as the endpoint”). Point the connection at the final URL instead.
Rotate Credentials
Update a credential without changing any SDK configs:Manage Connections
Reading needs
connections:read. Everything else needs connections:write. Owner, Admin and Developer can write. CISO and Auditor are read-only. See Roles and permissions.
Creating, updating, rotating and deleting a connection each write a connection_lifecycle audit event.
The SDK has the same operations:
Slug Format
Connection slugs must be:- Lowercase letters, numbers, underscores, hyphens
- 3-64 characters
- Start with a letter or number
github-prod, slack-mcp, analytics01