Getting started
Installation
Install Tidegard with Docker Compose on one host, or as systemd services from the release packages, and verify what you install.
There are two ways to install Tidegard. Both run the same five services.
| Docker Compose | systemd packages | |
|---|---|---|
| Suits | A quick start, a pilot, or a host that already runs Docker | A production host where you run PostgreSQL and ClickHouse yourself |
| Databases | Included in the stack | Yours to install, secure and back up |
| TLS between services | Set up for you by setup.sh |
You provide certificates |
| BGP mitigation | Not from inside the stack; see the mitigation overview | Supported, with gobgpd on loopback |
Get the release
Tidegard is licensed software: you need a subscription agreement with
LogiXhare before installing it. LogiXhare then provides the release bundle
for your version: the Compose stack, the installation packages for x86_64
and aarch64, and their checksums. It also issues registry credentials for
the container images, ghcr.io/logixhare/tidegard-<service>, for
collector, incident-manager, api, notifier and mitigator, for
amd64 and arm64. Sign in with them (docker login ghcr.io) before pulling.
Verify what you install
Every release is built and signed by an automated release pipeline, with build provenance attached. Check an image’s signature before you deploy it:
version=1.0.0
identity="https://github.com/LogiXhare/tidegard/.github/workflows/release.yml@refs/tags/v$version"
issuer=https://token.actions.githubusercontent.com
cosign verify "ghcr.io/logixhare/tidegard-collector:$version" \
--certificate-identity "$identity" --certificate-oidc-issuer "$issuer"
Deploy the digest that cosign verify reports, not the tag: a tag can be
moved, a digest cannot. Check the package checksums with
sha256sum -c SHA256SUMS.
Docker Compose
From the unpacked bundle:
cd tidegard-$version/deployments/docker-compose
cp /path/to/your-licence.json licence.json # the licence LogiXhare issued
sudo ./setup.sh "$version" # once: the CA, every key and password, and .env
The stack does not start without licence.json. See
Licence below.
setup.sh creates a certificate authority for the stack, a certificate for
each service, and a random password for each database user. It never
overwrites a file, so running it again is safe. To reach the API by a host
name, set TIDEGARD_API_HOSTNAME before the first run so the certificate
names it.
Tell it your address space and your routers in .env:
TIDEGARD_LOCAL_PREFIXES=192.0.2.0/24@default,2001:db8::/32@default
TIDEGARD_ALLOWED_EXPORTERS=198.51.100.1,198.51.100.2
Start it, and check every container is healthy:
docker compose up -d
docker compose ps
| Container | Listens on the host |
|---|---|
api |
127.0.0.1:8443, HTTPS. Set TIDEGARD_API_PUBLISH to reach it from your management network |
collector |
UDP 2055 for your routers; metrics on 127.0.0.1:9090 |
incident-manager, notifier, mitigator |
Metrics and health checks on 127.0.0.1:9091, 9093 and 9094 |
postgres, clickhouse |
Nothing outside the stack |
Every Tidegard container runs as a non-root user with a read-only root
filesystem, no Linux capabilities and no-new-privileges. ClickHouse has no
plaintext listener, and PostgreSQL requires TLS.
Docker bypasses the host firewall for published ports. If the API or port 2055 is published on a public address, filter it in the
DOCKER-USERchain, not only withufworfirewalld.
systemd packages
On Ubuntu 22.04 or 24.04, or Debian 12 or 13:
tar -xzf tidegard-$version-linux-$(uname -m).tar.gz
sudo ./tidegard-$version-linux-$(uname -m)/install.sh
install.sh puts the binaries and the web UI in /opt/tidegard, creates
one system user per service, copies the example settings to
/etc/tidegard/ where none exist, and installs hardened systemd units. It
enables and starts nothing. Then:
-
Create the PostgreSQL role and database for Tidegard.
-
Replace every
CHANGE_MEin/etc/tidegard/*.env. A database that is not on the same host needs its CA file set: plaintext is only ever used over loopback. -
Install the licence LogiXhare issued:
sudo install -m 0644 your-licence.json /etc/tidegard/licence.json -
Start the incident manager first. It applies the database migrations:
sudo systemctl enable --now tidegard-incident-manager -
Then the API and the collector:
sudo systemctl enable --now tidegard-api tidegard-collector -
The notifier when you have configured it, and the mitigator only after reading the mitigation overview.
Every service answers /healthz and /readyz: the API on its own address,
the others on their metrics address.
Licence
Each deployment runs under a licence file LogiXhare issues with your subscription. It names your organisation, the period paid for, and any limit on the number of routers. It holds no secret, but it is signed: a changed file is refused.
- The collector and the API read it at start and every hour. To renew, replace the file; no restart is needed.
- From 30 days before the end, the NOC UI shows a banner. After the end date, a grace period, normally 14 days, keeps everything working.
- Without a valid licence, Tidegard keeps receiving and counting flows
but stops detecting, and the API answers
api.licence_inactive. Signing in, withdrawing mitigations, the BGP view and the kill switch keep working. Tidegard never touches your routers’ forwarding because of a licence, and it never withdraws an active mitigation early. - The collector’s metrics show the state, as
tidegard_licence_state{state="active"} 1andtidegard_licence_days_to_expiry.
After installing
- Quick start: sign in, send flows, see a first detection.
- Router setup: export IPFIX from your routers.
- Backup, restore and upgrade: take a first backup before anything you would miss is in it.

