Repository navigation
Releases
sitescope 1.7.1
sitescope 1.7.1
The agent on FreeBSD and OpenBSD. A BSD host can now be watched from the
inside, by its own agent or as a hub's local host, and a BSD hub can ping
without root. Linux hosts get exactly the checks and names they had.
Features
- The agent runs on FreeBSD and OpenBSD, as an ordinary user. Give the host
os = "freebsd"oros = "openbsd"; that picks its checks.- Same checks as on Linux, same names: disk, memory, swap, load,
CPU, network, WireGuard, named services (unit.NAME) and package age.
Memory counts free plus inactive pages as available. CPU comes from
kern.cp_times(FreeBSD) orkern.cp_time(OpenBSD). Network comes
fromnetstat, with drops on FreeBSD only. - Reboot needed (FreeBSD and Linux):
freebsd-version -k
(installed) against-r(running). OpenBSD has none, because it
relinks its root-only/bsdat every boot. - Failed rc services (OpenBSD only): enabled daemons that aren't
running, under the check idhost.HOST.units, where Linux has failed
systemd units. FreeBSD's rc keeps no failed state, so a FreeBSD host
names the services that must run inunitsinstead. - Linux only: memory pressure, disk I/O, and service memory
(cgroups). A BSD host doesn't get those checks.
- Same checks as on Linux, same names: disk, memory, swap, load,
- A host's
unitsnames rc services on the BSDs, such assshd, checked
withservice NAME statusorrcctl check NAME. Timers,userand
maxAgestay Linux only, and the config check refuses them on a BSD
host. On FreeBSD, a service whose pid file only root can read, such as
cron, is found by its exact process name, and the message says so. - A
local = truehost works on a BSD hub. Itsosmust name the hub's
own system, or the hub refuses to start. - Ping on FreeBSD and OpenBSD falls back to the system's setuid
/sbin/ping(or/sbin/ping6) when the hub isn't root, one echo a
second. Root still uses a raw socket.
Bug fixes
- The
dns.resolve.NAMEchecks are listed in name order. They were built
from a map, so their order on the detail page could change between
restarts.
Breaking changes
None.
Upgrade notes
- Nothing changes for Linux hosts or their configs.
- On a BSD agent, start it after
wg0has its address: the BSDs have no
IP_FREEBIND. - Rollback: two-way; the report format only gains values on the BSDs.
- Verify: the footer and
/status.jsonshow1.7.1+<rev>.
sitescope 1.7.0
sitescope 1.7.0
FreeBSD and OpenBSD. The hub and the CLI run on both, and releases include
freebsd-amd64 and openbsd-amd64 tarballs beside the Linux ones. On Linux,
existing checks and configuration are unchanged. The one new path is ping's
raw-socket fallback, which Linux takes too if its unprivileged ping socket
is unavailable.
Features
- The hub and the CLI build and run on FreeBSD and OpenBSD: the vault, the
control socket, the status page, and every check made over the network.
Tested natively on FreeBSD 15.1 and OpenBSD 8.0. - The vault's memory hardening has each system's equivalent of the Linux
calls:- Buffers kept out of core dumps:
MAP_NOCOREon FreeBSD,MAP_CONCEALon OpenBSD. - No same-user ptrace:
procctl(PROC_TRACE_CTL)on FreeBSD; on OpenBSD,
the defaultkern.global_ptrace=0. - Core limit: zero on both.
- Buffers kept out of core dumps:
- Ping falls back to a raw ICMP socket where the system has no
unprivileged ping socket. On FreeBSD and OpenBSD that needs root; run as
an ordinary user, a ping check fails and says so. - Release tarballs for
freebsd-amd64andopenbsd-amd64. CI vets both
builds on every push.
Bug fixes
None.
Breaking changes
None. On FreeBSD and OpenBSD, sitescope agent and a hub with a
local = true host refuse to start: the agent's collectors read Linux's
/proc, /sys and systemd.
Upgrade notes
- Pin the release commit in the infra flake and redeploy, then
sitescope unlockon the hub host. - Rollback: two-way; no config, state or report format changed.
- Verify: the footer and
/status.jsonshow1.7.0+<rev>. - On FreeBSD, raise the login class's
memorylockedto1M(/etc/login.conf, thencap_mkdb), so the vault's buffers can be locked.
sitescope 1.6.0
sitescope 1.6.0
TOML. The config may now be config.toml, written by a person, with the
same keys, defaults and checks as JSON. The NixOS module still writes
JSON, so NixOS hosts see no change. Every config example in the docs
comes in TOML, JSON and Nix.
Features
- A config ending in
.tomlis read as TOML, and one ending in.jsonas
JSON. Both go through the same strict loader, so an unknown key fails
the same way, with its path; a TOML syntax error gives its line. - The CLI looks for
/etc/sitescope/config.tomlas well as
config.json, and asks you to remove one if both exist. sitescope configprints the effective config as TOML;-format json
prints JSON, and-format nixprints NixOS settings.sitescope config -defaultsprints every key with its built-in default,
without reading a config. The configuration reference on the site is
that output with comments, and a test keeps the two equal.- The docs' config examples are written in TOML; the site build adds
JSON and Nix versions, as tabs, with the same writer as
sitescope config. A flake check evaluates that writer's Nix against
the JSON it came from. - Durations print without zero units:
"1h", not"1h0m0s". - The effective config shows two defaults it used to leave out: an HTTP
target'slatencyandmail.banner.latency.
Bug fixes
dns.delegationZoneswas accepted but never used. It's gone, so a
config that sets it fails to load instead of doing nothing.
Breaking changes
sitescope configprints TOML by default. Use-format jsonfor the
1.5.0 output.dns.delegationZonesfails to load. Remove it.- A config file must end in
.tomlor.json.
Upgrade notes
- Pin the release commit in the infra flake and redeploy, then
sitescope unlockon the hub host. - A JSON config needs no change. To move a hand-written one to TOML,
writeconfig.toml, runsitescope config -config config.toml -check,
and point the unit at it. - Rollback:
- To 1.5.x, two-way, while the config stays JSON. 1.5.x can't read
config.toml, and refuses it rather than guessing, so roll a TOML
config back to its JSON form along with the binary. - To 1.4.2, one-way, as for 1.5.0: restore the 1.4 config too.
- To 1.5.x, two-way, while the config stays JSON. 1.5.x can't read
- Verify: the footer and
/status.jsonshow1.6.0+<rev>, and the check
count is the same as before the upgrade.