Install
Meerkat is one Go binary with no CGO and no external dependency. Its embedded storage is a file in a directory; an external database is an option, not a prerequisite.
Docker image
Two images, built from the same commit, both public on Docker Hub:
| Image | Edition |
|---|---|
docker.io/softwarity/meerkat |
everything Enterprise does. Without a license it is an evaluation, with a notice on its pages and not for production; a license makes it Team or Enterprise, with no restart |
docker.io/softwarity/meerkat-ce |
community |
Each carries the same tags: X.Y.Z for a release, X.Y and X for the latest of a line, and latest for the build of the day on main. Pin a release on anything that holds your front door.
softwarity/meerkat, and the evaluation as softwarity/meerkat:eval and X.Y.Z-eval. Every community version is now at softwarity/meerkat-ce, under the same numbers; the eval tags stay as they were and get no new version.The image sets MEERKAT_DATA=/data and declares that volume. It runs as a non-root user (uid 65532), and the entry point is the binary itself, so anything after the image name is a flag. It is distroless: no shell, no wget, so docker exec ... sh has nothing to open, and a healthcheck runs /meerkat health (Health).
Run it with Compose
A minimal docker-compose.yml, pinned on a release line:
services:
meerkat:
# a release line; latest is the build of the day on main, not a release
image: docker.io/softwarity/meerkat-ce:1.27
ports:
- "8080:8080" # data plane
- "9090:9090" # control plane - keep this one internal
environment:
MEERKAT_ADMIN_PASSWORD: ${MEERKAT_ADMIN_PASSWORD:?set a password for the first admin}
volumes:
- meerkat-data:/data
restart: unless-stopped
volumes:
meerkat-data:
Start it with the first administrator's password, then ask the gateway whether it is ready:
MEERKAT_ADMIN_PASSWORD='choose-one-now' docker compose up -d
curl -i http://localhost:8080/readyz
A ready gateway answers 200 with {"status":"UP","version":"..."}; a 503 names what it is still waiting for. Then open http://localhost:9090 and sign in as admin with that password. The Quick start goes on from there.
Build it yourself
What is published is the images; a binary is built from the source.
git clone https://github.com/softwarity/meerkat-ce.git
cd meerkat-ce
make ui # builds the console and stages it for embedding (needs Node)
make build # -> bin/meerkat
./bin/meerkat --help
make ui is what puts the console inside the binary. Skip it and the gateway still routes, but the control plane answers a JSON status page instead of a console.
Go comes from go.mod, Node from .node-version. That repository is the community tree: the Enterprise sources are not in it, so what it builds is the community edition. See Editions.
What it reads at startup
Every flag has a MEERKAT_* equivalent, and the flag wins. ./bin/meerkat --help prints the list; this is it.
Ports
| Flag | Variable | Default | What |
|---|---|---|---|
-addr |
MEERKAT_ADDR |
:8080 |
data plane, plain HTTP |
-admin-addr |
MEERKAT_ADMIN_ADDR |
:9090 |
control plane, plain HTTP |
-internal-addr |
MEERKAT_INTERNAL_ADDR |
:7070 |
internal plane, plain HTTP: what the services behind the gateway call, never published |
-internal-tls-addr |
MEERKAT_INTERNAL_TLS_ADDR |
:7443 |
internal plane HTTPS, opened when a certificate is placed on it |
-tls-addr |
MEERKAT_TLS_ADDR |
:8443 |
data plane HTTPS, opened when TLS is switched on |
-admin-tls-addr |
MEERKAT_ADMIN_TLS_ADDR |
:9443 |
control plane HTTPS, same |
The HTTPS ports are opened and closed while the gateway runs, from the console. A failure there is logged and does not stop the plain ports - a typo in an address costs one door, not the installation.
Storage
| Flag | Variable | Default | What |
|---|---|---|---|
-data |
MEERKAT_DATA |
data |
directory holding the embedded storage |
-database-url |
MEERKAT_DATABASE_URL |
empty | PostgreSQL URL for several gateway instances sharing one installation |
-data is relative. Under Docker the image already sets it to /data; anywhere else, give it an absolute path, or the database lands wherever the process happened to start.MEERKAT_DATABASE_URL there answers with a sentence saying what is available rather than a driver error.First start only
| Variable | What |
|---|---|
MEERKAT_ADMIN_PASSWORD |
the first administrator's password, read only while there is no account at all |
MEERKAT_CONFIG_FILE (-config) |
a YAML or JSON configuration seeding an empty gateway. A configured one does not apply it: when the file differs from what runs, it is shelved as a saved configuration (named after the file), to compare and set as current from the Configuration screen |
MEERKAT_VAULT_FILE (-vault) |
an encrypted vault file, ingested once |
MEERKAT_VAULT_PASSPHRASE, MEERKAT_VAULT_PASSPHRASE_FILE |
the passphrase for that file |
MEERKAT_TENANCY (-tenancy) |
single or multi, settled on the first start; afterwards the console owns it |
Without a configuration file the gateway starts empty - no route - and the administrator's account is the only thing it creates.
-tenancy is for bootstrap - a first boot, a seeded install, GitOps. Once the mode has been chosen the flag is ignored, with a line in the log saying so rather than a silent override. Asking for multi on a community image starts single-tenant, and says that too.
Operating switches
| Flag | Variable | What |
|---|---|---|
-plug-addr |
MEERKAT_PLUG_ADDR |
developer tunnel listen address, default :22222, Enterprise only |
-license |
MEERKAT_LICENSE_FILE |
the license file Softwarity sent, mounted from a secret (the Helm chart's license.existingSecret). Read at start and again on every look, so a secret updated in place needs no restart; the License screen then shows it and takes no other. Enterprise image only |
-migrate-past-license |
MEERKAT_MIGRATE_PAST_LICENSE |
true lets a version built after the updates of the license migrate the database. Without it, such a version stops before migrating and says why (Update check). Take a backup first: the version then runs as an evaluation, and an earlier one no longer opens the database. Enterprise image only |
-update-feed |
MEERKAT_UPDATE_FEED |
where the update check reads the list of releases, Softwarity's public file when empty. The check itself stays off until root turns it on (Update check) |
-console-url |
MEERKAT_CONSOLE_URL |
development override: proxy the console to a front dev server |
-version |
- | print version and exit |
The developer surface - the tooling, the API docs, the UI test mode, the tunnel - follows the dev capability of each account (root always has it), and the tunnel its own switch in Infra, Plug, on a production gateway as anywhere else. MEERKAT_PRODUCTION, which used to close it from the environment, is no longer read: set, it only logs a warning.
Logs and traces
| Flag | Variable | Default | What |
|---|---|---|---|
-log-level |
MEERKAT_LOG_LEVEL |
info |
debug, info, warn or error; a typo falls back to info rather than stopping the start |
-log-format |
MEERKAT_LOG_FORMAT |
text | json or text: what is written before the gateway has read its settings. JSON for an agent is the console's switch, Infra, OpenTelemetry, logs written for an agent |
The level is the one a start comes back to; the console's Logs screen changes it live, for a while, on every node.
The access log, the export of traces, metrics and logs to a collector, and the logs' format for an agent are set in the console, Infra, OpenTelemetry: stored, applied at every start and live on every node. MEERKAT_ACCESS_LOG, MEERKAT_OTLP_ENDPOINT and MEERKAT_OTLP_SAMPLE are no longer read: set, each only logs a warning. See Traces and Logs.
Probes
The data and control planes answer both probes; the internal plane answers /healthz.
| Path | Answers |
|---|---|
/healthz |
liveness - UP unconditionally, because liveness decides whether to kill the process |
/readyz |
readiness - 503 with a reason when the store is not answering, or when the routing table has not been compiled yet |
/readyz, never /healthz. A liveness probe that failed on an unreachable database would turn a database blip into a restart of every node at once.Signals
SIGHUPreloads the routes.SIGINTandSIGTERMstop the gateway, draining for up to ten seconds.
Verify the signature
Both images are signed when they are built, with cosign and no key. There is no public key to go and fetch: the signature carries the identity of the GitHub Actions workflow that produced the image, and that identity is what you check.
cosign verify \
--certificate-oidc-issuer https://token.actions.githubusercontent.com \
--certificate-identity-regexp '^https://github\.com/softwarity/meerkat-ce/\.github/workflows/(ci-ee|_docker)\.yml@refs/heads/main$' \
docker.io/softwarity/meerkat:latest
The same command verifies docker.io/softwarity/meerkat-ce. Both are built by workflows living in the public mirror, softwarity/meerkat-ce, which is the repository the identity names - the Enterprise sources are private, the pipeline that builds them is not. The identity names two files of that repository, on main and nowhere else: _docker.yml builds the community latest, ci-ee.yml the other image and every release tag. A workflow on another branch, or another file, does not pass. Versions up to 1.6.0 carry no signature: only latest and eval were signed then.
What is signed is the digest, and recursively: the manifest list plus each per-architecture image under it. Two consequences worth knowing. A client that pulled the arm64 image verifies what it is actually running, not its sibling. And a release, which puts its version on an already tested image without rebuilding it - an environment variable and a label over the very same layers - makes a new manifest, so it signs that one in turn, and fails if any tag it pushed does not verify.
To refuse an unsigned image across a cluster rather than check one by hand, the same two values go into a Kyverno policy:
The Kyverno policy
apiVersion: kyverno.io/v1
kind: ClusterPolicy
metadata:
name: meerkat-signed
spec:
validationFailureAction: Enforce
rules:
- name: verify-meerkat
match:
any:
- resources:
kinds: [Pod]
verifyImages:
- imageReferences:
- "docker.io/softwarity/meerkat*"
attestors:
- entries:
- keyless:
issuer: https://token.actions.githubusercontent.com
subjectRegExp: '^https://github\.com/softwarity/meerkat-ce/\.github/workflows/(ci-ee|_docker)\.yml@refs/heads/main$'
Check validationFailureAction against your own Kyverno version: recent ones moved that switch into the rule, and a policy that lands in audit mode reports instead of refusing.