Kalzit is in early development. These pages describe what exists today and change as the milestones progress. Screenshots show the development version with demo data.
Installation
Kalzit is one program, kalzit, with the web interface built in. On Windows, the MSI package
installs it as a Windows service; on Linux, the deb or rpm package runs it as a systemd service.
It also runs as a container image, or you build it from source. The packages are on the
releases page on GitHub. The full guide, with
every detail, is
installation in the
repository. After the installation, continue with First start.
Windows
On Windows, Kalzit runs as the Windows service Kalzit under its own virtual account,
NT SERVICE\Kalzit. The MSI package sets everything up.
- Download
kalzit-<version>-windows-x64.msifrom the releases. Its SHA-256 is inkalzit-<version>-manifest.jsonof the same release, which is signed with Kalzit’s release key:Get-FileHash kalzit-<version>-windows-x64.msimust show the same value. - Run it (it asks for administrator rights). The wizard, in German or English, asks for the
program folder (
C:\Program Files\Kalzit), the HTTP port (3000), the data folder (%ProgramData%\Kalzit\data), HTTPS (off, a self-signed certificate or your own PEM files) and whether to open the port in Windows Defender Firewall. - Open
http://localhost:3000(or the port you chose). The setup code for the first start is insetup-token.txtin the data folder, which only administrators can open: in PowerShell opened with Run as administrator,Get-Content C:\ProgramData\Kalzit\data\setup-token.txt.
The service starts automatically and restarts after a failure. The configuration is
%ProgramData%\Kalzit\kalzit.toml; the log is <data folder>\logs\kalzit.log. Every wizard
setting is also an MSI property for a silent installation, for example
msiexec /i kalzit-<version>-windows-x64.msi /qn PORT=8080 FIREWALL=1. A newer MSI package
installs over the previous one and keeps kalzit.toml and the data; back up the data folder
first.
Each stable release also comes with winget manifests (kalzit-<version>-winget.zip on the
release page). The package MouseWerk.Kalzit is not in the winget repository yet; until it is
accepted there, install with the MSI package as above.
Errors of the service also go to the Windows event log (Application, source Kalzit), where
monitoring tools can pick them up; an entry is a short note pointing to kalzit.log, never with addresses, paths or user ids.
log.event_log in kalzit.toml adds warnings or turns it off (see
Configuration).
Linux packages (deb and rpm)
Every release has the packages for x86-64 (kalzit-<version>-linux-x64.deb,
kalzit-<version>-linux-x64.rpm) and for 64-bit ARM such as AWS Graviton, Ampere or a Raspberry
Pi 4 or 5 with a 64-bit system (kalzit-<version>-linux-arm64.deb,
kalzit-<version>-linux-arm64.rpm), for Debian 13, Ubuntu 24.04, Fedora 41, RHEL, Rocky and
AlmaLinux 10 or newer. uname -m says which one a machine needs (x86_64 or aarch64); on ARM,
write arm64 in place of x64 below.
# Debian, Ubuntu
sudo apt install ./kalzit-<version>-linux-x64.deb
# Fedora, RHEL, Rocky, Alma
sudo dnf install ./kalzit-<version>-linux-x64.rpm
sudo systemctl enable --now kalzitOpen http://<server>:3000 and enter the setup code, which sudo kalzit setup-code prints.
The service runs as the system account kalzit with a hardened systemd unit. The configuration is
/etc/kalzit/kalzit.toml (restart with sudo systemctl restart kalzit after a change), the data
directory /var/lib/kalzit, and the secrets key lies encrypted in the system credential store.
Logs are in the journal: journalctl -u kalzit. To update, install the newer package the same
way; back up /var/lib/kalzit first.
Docker
The image ghcr.io/mousewerk/kalzit is built for Linux on amd64 and arm64. On Windows and macOS
it runs in Docker Desktop (on Windows with the WSL2 back end).
| Tag | What it is |
|---|---|
<major>.<minor>.<patch> |
Exactly this release |
<major>.<minor> |
The newest release of that line |
latest |
The newest stable release; pre-releases only have their own tag |
Pin a version (a full or a two-part version number) for servers you depend on, so an update happens when you decide.
Run
docker run -d --name kalzit --restart unless-stopped \
-p 3000:3000 \
-v kalzit-data:/var/lib/kalzit \
ghcr.io/mousewerk/kalzit:0.7Kalzit listens on port 3000 in the container; publish it on any port of the host
(-p 8080:3000). The image has no shell, so print the one-time setup code of the
first start with Kalzit itself:
docker exec kalzit kalzit setup-codeTo choose the code yourself, for automated installs, set KALZIT_SETUP_TOKEN to at least 16
letters or digits.
Data and the volume
Everything Kalzit keeps lives in /var/lib/kalzit: the SQLite database, the setup code, the
fallback key file and the update state. Keep it in a named volume such as kalzit-data.
- The container runs as user and group 65532:65532, not as root.
- A bind mount must belong to 65532 and have mode 0700, for example
sudo install -d -o 65532 -g 65532 -m 0700 /srv/kalzit, then-v /srv/kalzit:/var/lib/kalzit. - On Docker Desktop for Windows and macOS, use a named volume: a folder of the host does not carry Linux owners and modes.
Settings come from KALZIT_<SECTION>_<KEY> environment variables, from a kalzit.toml mounted
read-only at /etc/kalzit/kalzit.toml, or both; see Configuration. Behind a
reverse proxy, set server.public_url and add the proxy’s network to security.trusted_proxies.
Secrets key
Kalzit encrypts data source passwords and tokens with a key. In a container it comes from, in this order:
- the environment variable
KALZIT_SECRETS_KEY(base64 of 32 bytes); - a Docker secret named
kalzit-secrets-key, mounted at/run/secrets/kalzit-secrets-key. This is the better choice: a secret does not show up indocker inspect; - otherwise a key file
secrets.keyin the volume, with a warning in the log.
Create a key with openssl rand -base64 32 and keep a copy with your backups: without it the
stored data source secrets cannot be decrypted. On Linux the secret file must be readable by user
65532. kalzit secrets rotate re-encrypts the stored secrets with a new key.
Database URL
With PostgreSQL as Kalzit’s own database, the URL holds the database password. Instead of
KALZIT_DATABASE_URL, which docker inspect shows, give it to Kalzit as a file: the file that
KALZIT_DATABASE_URL_FILE names, or a Docker secret named kalzit-database-url. The file
holds one line, postgres://kalzit:<password>@postgres:5432/kalzit; a password from
openssl rand -hex 24 needs no percent-encoding. The log shows the URL with *** for the
password.
Compose
deploy/docker in the repository
has two Compose files and an example.env: compose.sqlite.yaml keeps SQLite in the named
volume, compose.postgres.yaml adds PostgreSQL 17 with a health check, and Kalzit starts once the
database is healthy.
cd deploy/docker
cp example.env .env
mkdir -p secrets
openssl rand -base64 32 > secrets/kalzit-secrets-key
password=$(openssl rand -hex 24)
printf '%s' "$password" > secrets/postgres-password
printf 'postgres://kalzit:%s@postgres:5432/kalzit\n' "$password" > secrets/kalzit-database-url
sudo chown 65532 secrets/kalzit-secrets-key secrets/kalzit-database-url
sudo chmod 0400 secrets/kalzit-secrets-key secrets/kalzit-database-url
docker compose -f compose.postgres.yaml up -d
docker compose -f compose.postgres.yaml exec kalzit kalzit setup-codeWith PostgreSQL no password is in an environment variable: PostgreSQL reads it from the secret
postgres-password, Kalzit reads the whole URL from the secret kalzit-database-url. Keep
.env and secrets/ out of version control, and back PostgreSQL up with pg_dump, together
with the key.
Health check, stopping and updates
The image’s health check runs kalzit healthcheck, which asks /readyz inside the container;
docker ps shows the container as healthy a few seconds after the start. docker stop ends
Kalzit cleanly; the Compose files allow 30 seconds for it.
The built-in updater does not replace the program in a container. Back up the volume (and the
PostgreSQL database), pull the new version and recreate the container, or run
docker compose pull && docker compose up -d. The new version migrates the database on its first
start.
Images from 0.6.0 on are signed with Sigstore cosign by the release workflow, without a key of its own.
cosign verify with the identity of the release workflow for that version’s tag checks that an
image is the released one; the command is under “Checking the image’s signature” in the
installation guide.
From source
The steps are the same on Windows and Linux. You need Git, the current stable Rust toolchain from rustup and Node.js with npm for the web UI. No OpenSSL and no database server are needed: TLS uses rustls, and Kalzit keeps its own data in a SQLite file by default.
Build
git clone https://github.com/MouseWerk/Kalzit.git
cd Kalzit
npm --prefix ui ci
npm --prefix ui run build
cargo build --release --lockedThe web UI is embedded into the binary at build time, so build it first. The binary is
target/release/kalzit on Linux and target\release\kalzit.exe on Windows. cargo test --locked
runs the test suite that CI runs on both systems.
Start it
./target/release/kalzitOn Windows:
.\target\release\kalzit.exeWithout a configuration file, Kalzit listens on plain HTTP on port 3000 on all interfaces and
keeps its data in a data folder in the current directory. The first start creates the database
and writes a one-time setup code; First start explains what to do with it.
Stop the server with Ctrl+C (or SIGTERM on Linux). Open requests get ten seconds to finish.
Commands
| Command | What it does |
|---|---|
kalzit or kalzit serve |
Runs the server. |
kalzit check-config |
Reads and validates the configuration, then exits. |
kalzit setup-code |
Prints the setup code of the first start. |
kalzit healthcheck |
Checks that the server is ready; the container image uses it. |
kalzit secrets rotate |
Re-encrypts the stored secrets with a new key. |
kalzit --config <file> |
Uses this configuration file instead of the default locations. Short form: -c. |
kalzit --version |
Prints the version. |
A configuration error stops the server before it listens, with a message that names the setting,
and exit code 2. Run kalzit check-config after every change to the file.