Documentation › Self-hosted

Operating the package: updates, integrity, backups, alerts, licence

What the host agent does for you and what the System page shows.

The host agent#

The admin UI runs in a read-only container and cannot change the installation; a small root agent on the host does what the UI asks through one shared directory: updates, checks, backups, the licence key, the alert webhook. Its requests and results are listed on the System page.

Updates#

A red banner appears when OSPP publishes a new release; the package repository calls the installation's release webhook and the agent also checks every six hours. "Update now" downloads the verified setup bundle and the new image, checks every file against the bundle's own manifest, replaces the release files, recreates only the containers that changed, runs the integrity check and records the result. Calls in progress continue. From the shell: sudo python3 /opt/ospp/ospp_agent.py update.

Health, containers and logs#

System → Overview shows each container with its state (healthy, running, restarting, stopped), the disk and the P2P Validator. "Logs" next to a container asks the host agent for its last 100 lines (read-only) and shows them. The host's own logs: journalctl -u ospp-setup -u ospp-agent -u ospp-agent-health -u ospp-verify.

The P2P Validator#

It enrols itself on its first start and reports every minute. The Gateway page and System → Overview show whether it is enrolled, whether OSPP reaches it on port 8400 and its share of cosignatures. When OSPP cannot reach it, open TCP port 8400 inbound in any cloud firewall or security group in front of the server; it joins as soon as the port answers.

Integrity#

ospp-verify checks the installation against the published release at boot and every fifteen minutes and stops the package on a difference, except during an update. The result is on the System page and goes to the alert webhook.

Backups#

"Back up now" writes one archive: the environment file, the setup state, the gateway's, the P2P Validator's and the endpoint's keys, the admin UI's files and a dump of the database. The ten newest are kept and can be downloaded. Set an encryption passphrase of twelve characters or more: every new backup is then AES-256-GCM encrypted and useless without it. Restore on a fresh installation, preferably of the same release: sudo python3 /opt/ospp/ospp_agent.py restore <archive>. For an encrypted backup add --passphrase-file <file>: the passphrase is not inside the backup, and a fresh server does not have it.

Licence#

The System page shows the licence as OSPP sees it: id, end date, grace days, days left, the gateway's status. When a licence has ended and its grace days are over, OSPP holds the gateway: no work, no certification, until a renewed licence exists. Renewals are issued on the Platform; paste the renewed key on the System page so the server keeps pulling updates with it.

Alerts#

An https webhook (System → Alerts) receives a problem event for what is new, every fifteen minutes: licence ending in 30, 7 or 1 days or invalid; gateway held or its statement refused; P2P eligibility lost; the P2P Validator stopped or silent; three or more failing calls in an hour, when more calls failed than got a passport; under 2 GB of disk; a stopped container; an update available; no backup yet. A resolved event follows when it went away, except for an available update. Integrity stops and update results are sent as they happen. The last fifty are shown.

Accounts#

sudo python3 /opt/ospp/ospp_agent.py reset-password <email> prints a new password for an account and signs it out everywhere; create-admin <email> [--role reviewer] adds one. Both run inside the admin UI's container.

Containers and hardening#

Log rotation on every service; health checks and ordered start-up; the gateway and the web front drop capabilities; memory limits. The gateway pulls its work from OSPP through the OSPP Channel: no inbound port, pinned keys, no certificate authorities involved. That work carries the conversation sealed to the gateway's own key; OSPP cannot read it.

What the backup holds, and what OSPP holds#

The conversation and the answer of your calls are stored on this server only (through the local proxy they never reach OSPP in readable form), so their retention and their backup are yours. OSPP holds the node's definition (model, parameters, system prompt, tool definitions), the fingerprints, the figures and the passports. There is no Model Compare switch for a Self-hosted organisation; see The local proxy.