This page lists every field of connections.ivy.yaml, the file at the top of a space that declares the outside services its code steps may call. It is generated from the same schema Ivy checks the file with. The secrets themselves are never in the file: space admins set them in the space’s connections (see Use connections and secrets).
The assistant sees the file’s problems whenever it saves it. To check it in your own editor, use the JSON Schema at /schemas/connections.schema.json on your Ivy address, for example with # yaml-language-server: $schema=https://<your Ivy address>/schemas/connections.schema.json as the first line.
File fields
| Field |
Type |
Required |
Default |
Description |
connections |
map of names to object, see connections.<name> |
no |
{} |
By name: lowercase letters, digits, - and _, starting with a letter. Steps name them in connections:. |
ivy |
one of connections/v1 |
yes |
|
The format version. |
connections.<name>
| Field |
Type |
Required |
Default |
Description |
auth |
bearer or basic or header: text or query: text or github_app: object, see connections.<name>.auth.github_app or oauth2_client_credentials: object, see connections.<name>.auth.oauth2_client_credentials |
yes |
|
How the secret is sent with each request. bearer: Authorization: Bearer <secret>. basic: Authorization: Basic <secret>, the secret being user:password. header:: The secret as the value of this header. query:: The secret as the value of this query parameter. github_app:: The secret is the app’s private key; the gateway exchanges it for short-lived installation tokens. oauth2_client_credentials:: Authorization: Bearer <token>, the token obtained by the gateway with the client credentials grant (RFC 6749 §4.4) from the stored client id and secret. |
description |
text |
no |
|
Shown to the space admins who set its value. |
direct_runs |
true or false |
no |
|
People may use it in direct code runs. |
hosts |
list of text |
yes |
|
Exact host names, also on the space’s egress allow-list. |
connections.<name>.auth.github_app
A GitHub App installation, narrowed to the repositories and permissions its token gets.
| Field |
Type |
Required |
Default |
Description |
app_id |
whole number |
yes |
|
|
installation_id |
whole number |
yes |
|
|
permissions |
map of names to one of read, write |
yes |
|
The permissions each installation token is narrowed to. |
repositories |
list of text |
no |
|
Repository names (without the owner); every repository the installation covers when empty. |
server |
text |
no |
|
A GitHub Enterprise Server host; github.com when absent. |
connections.<name>.auth.oauth2_client_credentials
| Field |
Type |
Required |
Default |
Description |
audience |
text |
no |
|
|
client_auth |
one of basic, body |
no |
basic |
How the client authenticates to the token endpoint (RFC 6749 §2.3.1). basic: HTTP Basic with the URL-encoded client id and secret. body: client_id and client_secret in the form body. |
scope |
text |
no |
|
|
token_url |
text |
yes |
|
The token endpoint: https://<host>/<path>, the host on the space’s egress allow-list. |
Example
ivy: connections/v1
connections:
crm:
auth: bearer
description: The sales CRM's REST API
hosts:
- api.crm.example.com
helpdesk:
auth:
oauth2_client_credentials:
scope: tickets.write
token_url: https://login.example.com/oauth2/token
direct_runs: true
hosts:
- helpdesk.example.com