You need the server from Server and network, the
finished installation file, and the installation's
license.json from the welcome pack. Run everything as root on the server.
1. Fetch the release
The license signs you in to the release address. It goes to curl on its
standard input, so it never shows on a command line that other users of the
server can read.
cd /root
id="$(jq -r .licenseId license.json)"
sign_in() { printf 'user = "%s:%s"\n' "$id" "$(base64 < license.json | tr -d '\n')"; }
sign_in | curl -fsS -K - https://releases.coroid.ai/v1/channels/stable -o channel.json
version="$(jq -r .version channel.json)"
mkdir -p release
sign_in | curl -fsS -K - "https://releases.coroid.ai/v1/releases/v$version/manifest.json" -o release/manifest.json
sign_in | curl -fsS -K - "https://releases.coroid.ai/v1/releases/v$version/one-server.tar.gz" -o one-server.tar.gz
tar -xzf one-server.tar.gz -C releaseFor the test installation, use candidate instead of stable. Its license
says it is the test installation, and its upgrades follow the candidate
channel.
The release is signed by CoNeuroid AB. The installer checks the signature before it changes anything, and stops if it does not match.
2. Make the backup passphrase
The installation's root key exists only on this server. Every backup carries it, encrypted under a passphrase. Without the backup and the passphrase, a lost server loses every stored secret.
install -d -m 0700 /root/coroid
openssl rand -base64 32 > /root/coroid/backup-passphrase
chmod 600 /root/coroid/backup-passphraseStore a copy of the passphrase in your password manager now, apart from the backups.
3. Run the installer
sudo bash release/one-server/install.sh \
--release release \
--installation installation.json \
--license license.json \
--passphrase-file /root/coroid/backup-passphraseIt stops at the first step that fails and says which, and why. Fix the cause and run the same command again: every step keeps what is already in place, and secrets are never replaced.
The steps:
- Preflight: root, Docker, Compose,
jq,gpg, the release's signature, the installation file and the license. - Sandbox engine: a rootless Docker engine with gVisor, used only for the agents' sandboxes, behind a firewall that lets them reach only CoRoid's egress proxy.
- Secrets: made once and kept in
/opt/coroid/installation/store. - Images: pulled by digest from the release address, signed in with the license.
- Edge and outbound: the certificate, and your proxy and certificate authorities for every service.
- Database: Postgres, and the migrations.
- Broker: the credential broker, which alone holds the root key.
- Product seed: the models CoRoid knows, the roles and the defaults.
- Sandbox images: copied into the sandbox engine.
- License: applied; the installation runs in licensed mode.
- Installation file: applied.
- Services: started, and checked until each is healthy.
- First backup: encrypted, in
/var/backups/coroid. - Updater: a timer that checks for releases every 15 minutes.
Other options: --dir puts the installation somewhere other than
/opt/coroid/installation, --backup-dir puts the backups elsewhere, and
--address gives the server's address when it has more than one.
4. Copy the first backup off the server
The installer ends by naming the backup it made, for example
/var/backups/coroid/coroid-acme-production-20261122T101500Z.gpg. Copy it to
storage away from the server now. The installation is not safe until you do.
5. Check the sandboxes
The installer prints a command that checks the sandbox engine from the server itself: that a sandbox reaches neither the server's own services, nor the cloud's metadata service, nor the internet except through CoRoid's egress proxy. Run it and keep its report:
sudo bash release/one-server/sandbox-engine/verify.sh --egress-proxy <address:port> --report sandbox-engine-report.md6. The administrators' links
When nobody can sign in yet, the installer prints a link for each administrator and organization owner the file names who has no password. A link works once, for 24 hours. It is a credential: give each link only to its person.
To make a new link later:
sudo bash /opt/coroid/installation/tools/installer/admin-link.sh ops@acme.exampleWith an identity provider, people can sign in there instead (see Sign-in through your identity provider).