Syver

SYstem VERification in a single self-contained binary

Know what's supposed to be there. Detect what isn't. Catch what shouldn't be.

What Syver Validates

A build that succeeded is not the same as a build that is correct. The playbook exited zero and the container started, but is the service listening on the right port, and is the package the version you pinned?

Syver is a YAML based alternative to serverspec. You describe the state a host should be in, and Syver checks it. The spec lives in the repository next to the code that builds the host, so it is reviewed and versioned like everything else.

It covers package, pkg-baseline (the whole installed package set), file, addr, port, service, user, group, command, dns, process, kernel-param, mount, interface and http, plus registry on Windows. It ships as one binary under 20MB with no runtime to install.

Three Ways to Run It

The same spec serves all three, so what you assert at build time is what you keep asserting in production.

Generate

syver autoadd sshd reads the current state of the host and writes the assertions for you, so you start from a machine that already works.

Validate

syver validate runs the suite and exits non-zero on failure, which is all a CI job needs. It is fast enough to run on every build.

Serve

syver serve exposes the spec as an HTTP health endpoint for a Kubernetes readiness probe or a load balancer check.

There are also dsyver, dcsyver and ksyver wrappers for Docker, Docker Compose and Kubernetes.

Coming From goss

Syver is the renamed continuation of our krameff/goss fork of goss-org/goss by @aelsabbahy, with full credit to the original author. It has since diverged, driven by client requirements, but the file format is held stable on purpose.

Keeps working

  • Your gossfiles: syntax, resource types and matchers are unchanged
  • All sixteen GOSS_* environment variables, permanently
  • JUnit, Nagios and Prometheus output names, so CI parsers need no changes
  • The dgoss, dcgoss and kgoss wrappers, for one more major version

What changes

  • The binary is syver, so scripts that call goss by name need a symlink
  • Syver can no longer be imported as a Go library: from v0.20.0 its code is in an internal package (library use was never supported)

Full goss vs Syver comparison Moving from goss

New Since the Fork

Features added to Syver since it forked from goss, up to v0.20.0. Most came from client requirements. Every item is additive: a gossfile that worked before still means the same thing.

Security and supply chain

Syver is kept current with Go and its dependencies, and every release can be verified before it goes on a host.

Kept patched

  • Built with the latest Go release, with a new Syver release for each Go security fix. v0.20.0 uses Go 1.27.4, fixing a net/http issue (GO-2026-6859) that affected syver serve and the http check
  • Dependencies and container images are scanned for vulnerabilities on every change
  • Libraries that were no longer maintained have been replaced with maintained ones, and scanners no longer flag the deprecated openpgp package (GO-2026-5932), which Syver never used

Verifiable releases

  • Signed checksums and a signed SBOM for every binary, on every release
  • Signed twice: Ed25519, plus RSA-4096 so hosts running in FIPS mode can verify downloads too
  • Every GitHub Action in the build and release pipeline, including the actions those actions use, is pinned to an exact commit in a lockfile

Fixed

  • Ctrl-C stops the commands a run has started, rather than leaving them orphaned
  • A mistyped key logs a warning instead of silently skipping that block, and is an error in a version-pinned spec
  • The /metrics endpoint reports real metrics

Writing checks

  • pkg-baseline: flag any package added or removed since a recorded baseline
  • syver-version: pin a spec to the Syver release it needs
  • Discovery: quick checks whose results feed your templates
  • depends-on: skip a check when its prerequisite fails, and say why
  • Richer templates: a glob function, 82 more from sprout, and several --vars files

New attributes

  • process: status (catches zombies) and user (catches things running as root that should not be)
  • port: pid, so you can see which process owns a listening socket
  • service: masked, so a masked systemd unit can be told apart from a disabled one
  • http: query parameters

Windows

  • A registry resource, including 32/64-bit views and paths pasted straight from regedit or PowerShell
  • Service checks
  • File owner, group and ACLs, written the same way icacls prints them
  • Mount checks

Containers

Full changelog Release history

Where It Fits Alongside Compliance Work

A CIS or STIG role applies a control; a Syver spec proves, months later, that it is still in place, with JUnit or JSON output an auditor can read. That is how we use it: Ansible-Lockdown applies the controls, and a validation spec proves they held.

View on GitHub Read the Docs Our Other Projects

Documentation

This page is the overview. The full reference lives at syver.readthedocs.io, built from the same repository as the code, so it changes when the tool does. The pages most people want first:

Quick start

Derive a first set of tests from a running host with autoadd, then validate against them.

Installation

Release binaries, the container image, and platform notes for Windows and macOS.

Spec reference

Every resource type, its attributes and matchers, and how imports and templates fit together.

Command line

Each subcommand and flag, with the SYVER_* and GOSS_* environment variables that set them.

Containers

Testing images and running pods with the dsyver, dcsyver and ksyver wrappers.

Migrating from goss

What to check when moving an existing goss setup across.

See It Running

Short, silent screen recordings of Syver doing real work on a real host and in real containers.

Demo 0:47

Catching drift with an auto-generated spec

syver autoadd writes a spec for a running sshd service, then syver validate catches the drift when sshd is expected to be stopped.

What happens in the video

Syver's autoadd command reads the running sshd service on a host and writes a spec for its process, service and user into syver.yaml. The spec is then edited to expect sshd to be stopped, standing in for drift between what was declared and what is running, and syver validate reports the two failed checks and skips the two that depended on them.

Demo 0:30

Catching package drift with pkg-baseline

syver add pkg-baseline records every installed package, then syver validate names the two that appear after installing tmux.

What happens in the video

syver add pkg-baseline records all 137 rpm packages on an AlmaLinux host into syver.yaml and sets syver-version: 0.20.0 at the top of the spec, because the new check needs that release. syver validate passes. tmux is then installed, pulling in libevent, and syver validate fails, naming the two packages that were not in the baseline.

Demo 0:58

Testing a Docker image with dsyver

dsyver run checks a package, user, command and file inside a throwaway nginx:alpine container, then a missing file fails the run.

What happens in the video

The nginx:alpine image is pulled and syver.yaml expects the nginx package to be installed, the nginx user to exist, nginx -v to exit 0 and /etc/nginx/nginx.conf to exist. dsyver run starts a throwaway container from the image, runs the four checks inside it, then stops and deletes the container, and all four pass. The spec is then extended to expect /etc/nginx/conf.d/tls.conf, a file the image does not have, and the rerun reports that check as failed and exits with status 1.

Demo 0:58

Checking a Docker Compose service with dcsyver

dcsyver run checks a Docker Compose service's process, port and config file, then a missing file fails the run.

What happens in the video

A compose.yaml defines a web service from the nginx:alpine image, and syver.yaml expects the nginx process to be running, TCP port 80 to be listening and /etc/nginx/nginx.conf to exist. dcsyver run web starts the service, runs the three checks against it and stops it, and all three pass. Expecting /etc/nginx/conf.d/tls.conf as well, a file the image does not have, makes the next run fail that check and exit with status 1.

Syver Questions

Syver is the renamed continuation of the krameff/goss fork of goss-org/goss, which is now archived. It began as a fork and has since diverged: the work is driven by client requirements rather than by tracking upstream, so release-for-release parity with goss-org/goss is not a goal. The spec file format is a separate matter and is deliberately held stable.

No. The product renamed, the file format did not. The gossfile: key is still canonical, goss.yaml and goss.yml are still probed, all sixteen GOSS_* environment variables are still honoured, the --gossfile and -g flags still work, and gossfile syntax, resource types and matchers are unchanged.

Almost everything that breaks is something that referenced the product by name: the binary is syver rather than goss, the outbound User-Agent on http checks is syver/<version>, the checksum file is syver_<version>_SHA256SUMS, and the container image is ghcr.io/krameff/syver. Syver cannot be imported as a Go library: from v0.20.0 its code is in an internal package, and library use was never supported. Anything that shells out to goss by name can be fixed with a symlink.

Linux has full support and is tested against AlmaLinux 10, Alpine 3, Arch, Debian Bullseye, Ubuntu Jammy and Rocky Linux 9. Windows and macOS support is alpha, with some resources such as port only partly implemented outside Linux. The registry resource is Windows only.

rspecish is the default, alongside documentation, json, structured, tap, junit, nagios, prometheus and silent. The JUnit suite name and the Nagios GOSS OK and GOSS CRITICAL prefixes are deliberately unchanged so existing CI parsers keep working, and goss_tests_* Prometheus metrics are still emitted with syver_tests_* alongside them rather than instead of them.

The install script does it for you: it checks the binary against the release's syver_<version>_SHA256SUMS file and stops without installing anything if they do not match. To check by hand, download the checksum file and its signature from the release, import the signing key, run gpg --verify on the signature, then sha256sum --ignore-missing -c on the checksum file. A good signature from Krameff Solutions Limited confirms that every file listed came from the project unaltered, and each binary's SBOM is signed the same way. From v0.20.0 every release is signed twice: with an Ed25519 key (krameff-syver-key.asc, in .sig files) and with an RSA-4096 key (krameff-syver-key-rsa.asc, in .rsa.sig files). Use the RSA key where gpg runs in FIPS mode, which rejects Ed25519; anywhere else either will do. The installation guide has the exact commands and both key fingerprints.

Yes to both. Syver is free and open source under the Apache 2.0 licence, and always will be. We also offer paid support and maintenance arrangements for it, as we do for ssh_key_rotation, so there is someone to call when an upgrade needs planning or a spec does not hold up against your estate. Talk to us about support and we will scope it around what you run. Security issues should be reported privately to [email protected] rather than as a public issue.

Want Validation Wired Into Your Pipeline?

Writing a spec for one host is an afternoon. Deciding what is worth asserting across a mixed estate, wiring it into CI and health checks, and turning the output into evidence someone will accept at audit is the harder half. That is the part we help with, and we offer ongoing support once it is in place.

Talk to Us