Data and security
cronbeat runs on your servers next to your jobs, so this page lists precisely what leaves the machine. The wire format
is documented in Host agent API.
What is sent
Section titled “What is sent”Every request goes to api.cronbeat.dev over HTTPS, with the key in the Authorization header and the header
User-Agent: cronbeat-host/<version>.
| Data | When |
|---|---|
The job name (--name), the cron schedule, the time zone, and the grace period and maximum runtime if you passed them |
With every event. The definition travels with the event, so the monitor can be created or updated from any run. |
A run id (random UUID v4) and the event type: started, succeeded or failed |
Every run, twice (start and end). |
The duration in milliseconds, the exit code and, if the command was killed, the signal name (for example SIGKILL) |
At the end of a run. |
The version of cronbeat |
Every run. |
| The last bytes of stdout and stderr (4096 by default, at most 8192), masked | Only when the command failed. --output never disables it, --output always sends it for successful runs too (CronBeat stores it for failed runs only). |
What is never sent
Section titled “What is never sent”- The command and its arguments. CronBeat only knows the name you give with
--name. - Environment variables, file contents, user names, the host name or the paths of your scripts.
- The output of successful runs (unless you choose
--output always, and even then it is not stored). - The API key itself, in any output. The key is not accepted as an argument, never printed or logged, and
replaced by
***in the output tail and in warnings if it appears there.
Like any HTTPS request, a run reaches CronBeat from the public IP address of your server. CronBeat uses that address to limit the request rate and does not store it with the run.
The API key
Section titled “The API key”- Storage on your side. A file with mode 0600 (
/etc/cronbeat/keyor~/.config/cronbeat/key, created bycronbeat configurewith hidden input), a file you name, or the environment variableCRONBEAT_API_KEY. A key file readable by group or others is refused. - Order. Environment variable,
--key-fileorCRONBEAT_KEY_FILE,/etc/cronbeat/key,~/.config/cronbeat/key. - Your job does not see the key.
cronbeat runremovesCRONBEAT_API_KEYfrom the environment of the command. - Transport. HTTPS only. Plain
httpis accepted forlocalhost,127.0.0.1and::1only, for local testing. Redirects are not followed, so the key is never sent to another address. - CronBeat stores only a hash (SHA-256) of the key and its first characters, which the Agents page shows so you can tell keys apart. The full key is shown once, when you create it, and cannot be shown again.
- Revoke. Revoking the host agent in the app makes the key answer
401at once. See Troubleshooting. - A host agent key only works for the host endpoints. On the Kubernetes endpoints it answers
403, and the other way round.
Masking is best effort
Section titled “Masking is best effort”Before the output tail leaves the server, cronbeat masks it with patterns, replacing the secret with ***. The same
patterns are used by CronBeat before text is sent to the AI explanation. Masked:
- credentials in URLs (
https://user:password@host/), - values after
Authorization:(includingBearerandBasic) andBearer ...tokens, - values after
password,passwd,pwd,secret,token,api_keyoraccess_keywhen written asname=valueorname: value(the name may be part of a longer one such asDB_PASSWORD), - e-mail addresses,
- any run of 32 or more letters, digits,
_or-(long tokens and keys).
Masking is a safety net, not a guarantee. It works on text patterns, so it does not recognise a secret that does not
look like one. For example these are not masked: {"password": "hunter2"} (the name is quoted),
password="two words", a short secret printed on a line of its own, private keys that are split over lines, card
numbers, personal names and addresses. If a job can print something sensitive, use --output never for it, or make
the job itself not print it.
The output is cut to the last 4096 bytes by default, so a long log only shows its end. Use --tail-bytes for more
(at most 8192).
What CronBeat stores
Section titled “What CronBeat stores”| Data | How |
|---|---|
| The host agent | Its name, a hash of the key and the key’s first characters, the cronbeat version, and the time of the last run reported. |
| The monitors | One per job name, with the schedule, time zone, name, grace period and maximum runtime. |
| Every event | As a ping in the history of the monitor: type, time, the duration of a successful run, the failure detail (exit code N or the signal), and for a failed run the masked output tail (at most 10 KB). |
Ping history, including output tails, is deleted after your plan’s retention period (Free 7 days, Pro 30 days, Enterprise 365 days), see Plans and limits. Deleting a monitor deletes its history. CronBeat uses the failure detail and the output tail to explain an incident, see Why did it happen?; with the optional AI explanation, secrets are removed from that text once more before it is sent.

