Serinus
Get started
Run a log, publish a canary, or verify one.
There are three roles. You can be one or all of them.
1. Publish a canary (organisation)
You need a domain you control and a machine you trust for signing.
export SERINUS_PASSPHRASE='a long passphrase'
go build -o serinus ./core/cmd/serinus
serinus init --dir .serinus \
--org example --name "Example Org" --domain example.org
serinus statement build --dir .serinus --out statement.json
serinus statement sign --dir .serinus --statement statement.json --out bundle.json
serinus verify --bundle bundle.json \
--root-pub .serinus/root.pub.json --allow-unlogged
Publish web/static/.well-known/serinus.json with your root fingerprint. Then submit the bundle to a log (see below).
2. Run a log and index
serinus log keygen --out log.key --origin example.org/log \
--note-key tessera-note.key --note-pub tessera-note.pub.json
serinus key pub --key log.key --out log.pub.json
serinus log serve --dir data/log --bundles data/bundles \
--origin example.org/log --key log.key --note-key tessera-note.key \
--backend tessera --addr :8080 --hosted
Generate pins for the indexer and browser:
serinus key generate --role mirror --out mirror.key
serinus key pub --key mirror.key --out mirror.pub.json
serinus trust --root-pub .serinus/root.pub.json \
--log-pub log.pub.json --mirror-pub mirror.pub.json \
--out trusted_roots.json --browser-out web/static/trust.json
Run the indexer and web app:
python3 -m venv .venv && . .venv/bin/activate
pip install -r web/requirements.txt
SERINUS_DB=$PWD/serinus.sqlite3 PYTHONPATH=web \
python -m serinus_web.indexer --log-url http://127.0.0.1:8080 \
--root-pins trusted_roots.json
PYTHONPATH=web SERINUS_DB=$PWD/serinus.sqlite3 python -m serinus_web
3. Verify a canary (reader)
Use the browser verifier or the CLI. Pin the root fingerprint and log key out of band. See Verify a canary.
Deployment
The self-hosting guide covers Docker Compose, TLS, backups, the onion mirror, and WEBCAT.