NAME
integrations —
HTTP services with secrets kept outside the VM
SYNOPSIS
ssh |
chroot.dev integrations add http-proxy
--name name
--target target
[--header
header:value ...]
[--bearer token]
[--strip-prefix prefix]
[--comment text]
[--attach vm ...] |
ssh |
chroot.dev integrations add reflection
--name name
[--comment text]
[--attach vm ...] |
ssh |
chroot.dev integrations list |
ssh |
chroot.dev integrations remove
name |
ssh |
chroot.dev integrations attach |
detach name vm |
DESCRIPTION
Services your VMs reach at
http://name.int.chroot.run;
the credentials stay on the host, never in the VM. A VM reaches only the
integrations attached to it. vm is
vm:name for one of your VMs,
or ‘all’ for every one, those made
later included.
There are two kinds:
http-proxy- Forwards each request to the target, with the integration's headers in place of any the VM sent with the same name.
reflection- Answers with the VM's own data as JSON: / lists the paths; /owner, /port, /https_url and /integrations, each an object with that field, give the account, the port behind https://name.chroot.run, that URL, and the name, type, comment and URL of each integration attached to the VM.
A target is
https://host[:port],
on a public IPv4 address outside chroot.dev's hosts, or
vm:name[:port]
for another of your VMs, which gets the name of the VM that made the request
in ‘X-Fcm-Source-Vm’.
http:// targets are refused; one added before
October 9, 2026 fails when used: remove it and add it again with https://.
The VM's own ‘X-Fcm-’ headers do not
pass.
addkind--namename- Create an integration and print its URL. The name is a-z, 0-9 and -, up to
63 characters, not ‘
int’. The options are:--targettarget- Where requests go; needed by
http-proxy. --headerheader:value- A header sent to the target with each request; repeatable.
header:- reads the value from standard input.
‘
Host’, ‘Content-Length’, ‘Transfer-Encoding’, ‘Connection’, ‘Upgrade’, ‘TE’, ‘Trailer’, ‘X-Fcm-*’ and ‘Proxy-*’ are refused. --bearertoken- Send ‘
Authorization: Bearer token’; ‘-’ reads it from standard input. Only one value is read from standard input, here or in a--header. --strip-prefixprefix- Removed from the start of the path before the request goes on, at a
‘
/’ boundary: with ‘/api’, /api/v3/user goes as /v3/user. --commenttext- A note, shown by
list. --attachvm- Attach it at once; repeatable.
reflectiontakes no--target,--header,--beareror--strip-prefix. list- The integrations, with their kind, target and the VMs they are attached
to. Header values are not shown. Also
ls. removename- Remove the integration from the account and from every VM. Also
rm. attachname vm- Let the VM, or every VM with ‘
all’, reach the integration. detachname vm- Take that back.
integrations is also
int. A token's --cmds takes
the full names, ‘integrations list’ or
‘integrations add’ for instance;
‘int list’ is refused. VMs made by a
key added with --ci do not get those attached to
‘all’. See
ssh-key(1) for both.
EXAMPLES
A proxy to the GitHub API, the token read from a file and attached
to ‘web’, then used in the VM:
$ ssh chroot.dev integrations add http-proxy --name gh \ --target https://api.github.com --bearer - --attach vm:web <gh.token $ ssh vm+web@chroot.run ftp -o - http://gh.int.chroot.run/user
The VM's own data, for every VM:
$ ssh chroot.dev integrations add reflection --name meta --attach all $ ssh vm+web@chroot.run ftp -o - http://meta.int.chroot.run/https_url