Skip to content

Releases

sitescope 1.7.1

Choose a tag to compare

@github-actions github-actions released this 19 Nov 19:34
v1.7.1
77e4de7

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" or os = "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) or kern.cp_time (OpenBSD). Network comes
      from netstat, 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 /bsd at every boot.
    • Failed rc services (OpenBSD only): enabled daemons that aren't
      running, under the check id host.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 in units instead.
    • Linux only: memory pressure, disk I/O, and service memory
      (cgroups). A BSD host doesn't get those checks.
  • A host's units names rc services on the BSDs, such as sshd, checked
    with service NAME status or rcctl check NAME. Timers, user and
    maxAge stay 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 = true host works on a BSD hub. Its os must 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.NAME checks 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 wg0 has 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.json show 1.7.1+<rev>.

sitescope 1.7.0

Choose a tag to compare

@github-actions github-actions released this 19 Nov 18:33
v1.7.0
6c1955a

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_NOCORE on FreeBSD, MAP_CONCEAL on OpenBSD.
    • No same-user ptrace: procctl(PROC_TRACE_CTL) on FreeBSD; on OpenBSD,
      the default kern.global_ptrace=0.
    • Core limit: zero on both.
  • 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-amd64 and openbsd-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 unlock on the hub host.
  • Rollback: two-way; no config, state or report format changed.
  • Verify: the footer and /status.json show 1.7.0+<rev>.
  • On FreeBSD, raise the login class's memorylocked to 1M (/etc/login.conf, then cap_mkdb), so the vault's buffers can be locked.

sitescope 1.6.0

Choose a tag to compare

@github-actions github-actions released this 19 Nov 16:23
v1.6.0
16544f9

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 .toml is read as TOML, and one ending in .json as
    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.toml as well as
    config.json, and asks you to remove one if both exist.
  • sitescope config prints the effective config as TOML; -format json
    prints JSON, and -format nix prints NixOS settings.
  • sitescope config -defaults prints 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's latency and mail.banner.latency.

Bug fixes

  • dns.delegationZones was accepted but never used. It's gone, so a
    config that sets it fails to load instead of doing nothing.

Breaking changes

  • sitescope config prints TOML by default. Use -format json for the
    1.5.0 output.
  • dns.delegationZones fails to load. Remove it.
  • A config file must end in .toml or .json.

Upgrade notes

  • Pin the release commit in the infra flake and redeploy, then sitescope unlock on the hub host.
  • A JSON config needs no change. To move a hand-written one to TOML,
    write config.toml, run sitescope 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.
  • Verify: the footer and /status.json show 1.6.0+<rev>, and the check
    count is the same as before the upgrade.