Start here
Connect a server
Connect a server and the service keeps every scan, so you can see each server’s grade without logging in to it.
An app on a platform that runs the machine for you, such as Render, Heroku or Vercel, is linked instead: see Watch a managed service.
Adding a server in the dashboard, kiyesi connect and the agent run against the real service, worker and database in the build pipeline for every change.
Get a server token
Section titled “Get a server token”In the dashboard, open Settings and fill in Add a server: a name, its project, production or staging, and a fresh code from your authenticator app. Kiyesi shows the command to run, with the server’s token in it.
Each server has its own token, which starts with ksv_. A token can only send this server’s results: it cannot read anything back. It is shown once; the service keeps only a hash of it. Adding servers needs Manage on servers and findings: the Owner and Admin roles, or a role you made with it.
Connect
Section titled “Connect”On the server:
sudo kiyesi connect --token ksv_...This checks the token with the service at api.kiyesi.dev, saves it to /etc/kiyesi/token where only root can read it, and starts the kiyesi system service. The first results arrive within a minute.
On a server other people log in to, pass the token on standard input instead (kiyesi 0.38.0 and later). A token after --token can be seen by other users in the list of processes for the few seconds connect runs:
echo ksv_... | sudo kiyesi connect --token -KIYESI_TOKEN works too, for a script that already holds the token.
What runs from then on
Section titled “What runs from then on”Over HTTPS only, the agent sends:
- every 15 minutes: a scan, and the scheduled jobs it finds in crontabs and systemd timers;
- every minute: a heartbeat, the server’s measurements, the requests to each endpoint, new log lines, and events such as restarts and memory kills;
- as they happen: each run of a timed job, as
kiyesi job startandkiyesi job donerecord it; - every 5 minutes: the sizes and counts of the databases you list in its settings;
- when it changes, and at least once a day: what is installed (the system, its packages and containers), for tips and advisories;
- with every batch: a one-way hash of the machine ID, so the same server is recognised; the ID itself never leaves the server.
That is with credit. On the free plan it sends less, because the service would not keep the rest: a heartbeat and events every 10 minutes and a scan every 6 hours for the server the free plan watches, and only a heartbeat every 10 minutes for any other. The first scan always runs at once, so a new server’s grade comes within a minute.
It opens no port and accepts no incoming connection. Every value is masked before it is sent. What the agent reads and sends lists all of it.
It runs with hard limits: at most 20% of one CPU and 256 MB of memory, a ceiling the agent itself stays far below, so the programs its checks run, such as apt-get, have room (640 MB when Trivy, which finds vulnerable software, is installed, as it runs inside the agent), a read-only view of the system apart from its own folder, and no way to gain more privileges. If the service cannot be reached, results wait on disk and are sent when it returns.
The agent never slows your server
Section titled “The agent never slows your server”- It keeps itself light. It holds its own memory to about 150 MB, and the system starts reclaiming its memory gently at 200 MB, well before the hard 256 MB limit.
- It backs off by itself. Close to its limit, it skips its optional work (reading language packages, the vulnerability scan, reading the system log) and keeps sending its heartbeat and figures, until it is comfortable again.
- You can see it. The server’s page says what the agent itself uses, such as “uses 4 MB and 0.2% of a CPU”, and the whole Kiyesi service with the programs it runs and their cached files, the same figures
systemctl status kiyesishows, so you can tell at a glance whether anything on your server is Kiyesi. - It reads the system log gently. One
journalctl --followpasses it only the new lines it needs, instead of reading the journal again every minute, and files it reads are not kept in the system’s cache on its account (settings in/etcexcepted, since your own programs read those). It asks apt for waiting updates only when the package lists or installed packages changed, at least once a day, not at every scan, and notes processes killed for memory as they happen, from that same follower, instead of searching the log for them. - New versions come slowly. A new kiyesi is announced on Kiyesi’s own servers first, then to more teams over three days, so a bad one reaches few servers. If an update ever misbehaves,
sudo kiyesi update --backputs the version before back in one step.
Stop sending
Section titled “Stop sending”sudo systemctl disable --now kiyesiTo send again, start it with sudo systemctl enable --now kiyesi. If a token is revoked, the agent keeps results on disk and says so in journalctl -u kiyesi; run kiyesi connect with a new token.