Documentation

Closed networks

An installation that reaches nothing outside its own network. Its images come from your own registry, releases and renewed licenses arrive as files, and the monthly capacity report leaves as a file.

A closed network is an installation whose server reaches nothing on the internet: not CoRoid's release address, not a public model provider. It reaches only what your network gives it, such as your git host, your own registry and your own model endpoint.

Closed networks are not yet proved from this guide alone: proof run P2 installs one from scratch and completes this chapter. Until then, install a closed network with CoNeuroid AB's help. The steps below are what differs from a connected installation; everything else in the guide applies.

What differs

WhatConnectedClosed
CoRoid's imagesPulled from the release address, with the licensePulled from your own registry, which you fill
New releasesThe updater takes them in the windowA person copies the release in and runs upgrade.sh
A renewed licenseThe updater takes it by itselfA file from CoNeuroid AB, applied on Settings → License
The monthly capacity reportSent to CoNeuroid AB by the installationDownloaded on Settings → License and sent as a file
ModelsA provider with your key, or your own endpointYour own endpoint, or a provider your network lets it reach
The upgrade windowChosen on Reliability → UpgradesNone: you choose when to run an upgrade

The installation file

Set installation.closed to true. The installer then installs no updater timer, and nothing in the installation dials out except to the addresses the installation file allows.

Install

Fetch the release on a machine that reaches the internet, as Install shows, and carry its files in. Then copy every image the release's manifest lists into your registry. List them with:

jq -r '.images[] | "\(.origin) \(.repository)@\(.digest)"' manifest.json

The installer pulls CoRoid's own images (coroid) from the registry you name, under the same path: ghcr.io/coroid-ai/coroid-unified@sha256:… becomes <your registry>/coroid-ai/coroid-unified@sha256:…. Give the registry to the installer:

sudo bash release/one-server/install.sh \
  --release release \
  --installation installation.json \
  --license license.json \
  --passphrase-file /root/coroid/backup-passphrase \
  --image-registry registry.example.internal

The server signs in to your registry with Docker's own sign-in, which is yours to set up. The other images (third-party) are pulled by their own names, so the server must reach them through your registry's mirror; how depends on your registry, and CoNeuroid AB helps with it until proof run P2.

Upgrades

Fetch each new release outside, as for the install, carry it in, copy its images into your registry, and run its own upgrade.sh:

sudo bash <release>/one-server/upgrade.sh --release <release> \
  --passphrase-file /opt/coroid/installation/backup-passphrase

It checks the release's signature, takes a backup, upgrades, and rolls back if the new release does not come up healthy, as the updater's upgrades do. Reliability → Upgrades lists each one and its result.

The license

A renewed license is a file from CoNeuroid AB: apply it on Settings → License. Give upgrade.sh the same file with --license <file> when you upgrade at the same time, so the server keeps it.

The capacity report

Each month the installation makes its capacity report, counts only: the most agents at work at one time, the agent hours, and how many organizations and people used it. On Settings → License → Capacity reports, download the month's file and send it to CoNeuroid AB. It is the basis of the invoice. CoNeuroid AB uploads it to your installation's record.

Before you go on

  • installation.closed is true, and the server reaches nothing outside your network.
  • Every image of the release is in your registry, and the install pulled from it.
  • You know who carries releases and renewed licenses in, and who sends the capacity report each month.

Back to the Operator guide.