Open-source Continuous Threat Exposure Management platform. This repository holds the two parts that ship together:
| Directory | What | Image |
|---|---|---|
server/ |
Go API server, migrations, admin CLI (module github.com/openctemio/openctem/server) |
ghcr.io/openctemio/openctem-server (openctem-api up to v0.22.x) |
web/ |
Next.js web console, and the platform console for platform administrators (same source, console build target) |
ghcr.io/openctemio/openctem-web, ghcr.io/openctemio/openctem-console |
deploy/allinone/ |
API + web + platform console + gateway in one container (Postgres/Redis external) | ghcr.io/openctemio/openctem |
Released separately, in their own repositories: sensor (runs scans in your networks), sdk-go, ctis (shared contract), ci (CI/CD runner and pipeline integrations), sast-rules (the signed SAST rules pack for opengrep), helm-charts, openctem-ansible (hardened VM install kit), docs (public documentation, published at docs.openctem.io).
The monorepo was formed on 2026-10-02 (RFC-020):
openctemio/api→ this repository. It was renamed, so its issues, pull requests, releases (v0.1.x–v0.8.0) and old links carry over and redirect here. Its Go code moved toserver/; the module path is nowgithub.com/openctemio/openctem/server.openctemio/ui→web/. Its full history was imported underweb/, and openctemio/ui is archived (read-only); its old releases stay there. Cite its PRs asopenctemio/ui#NNN: a bare#NNNmeans this repository.ui/vX.Y.Ztags are the ui repository's tags, imported for history only. They release nothing; onlyvX.Y.Ztags do (see Releases).- Images moved from
ghcr.io/openctemio/api/uitoopenctem-api/openctem-webat v0.9.0. The server image isopenctem-serverfrom v0.23.0;openctem-apiandapikeep their v0.22.x and earlier tags and receive no new ones. openctemio/agenthad already become openctemio/sensor (RFC-023).
More: repository map, CI/CD and releases.
make setup # go mod download, npm ci, enable git hooks
make dev-api # see server/README.md for Postgres/Redis
make dev-web # http://localhost:3000
make check # what CI runs, both componentsOn a Linux host with 4 GB of memory or more, from a checkout of a release tag
(or the release's verified openctem-compose-vX.Y.Z.tar.gz bundle, see
the guide):
cd server/deploy
./install.shIt checks Docker and the host, asks for the host name, the TLS mode, the first
administrators and the bundled sensor (Enter accepts each default), writes
.env with generated secrets, verifies the image signatures, starts the stack,
waits until it is healthy and prints the URLs and how to sign in.
./install.sh --help lists the options for unattended installs.
- Compose, one HTTPS port:
server/deploy/docker-compose.ymlruns the gateway (server/deploy/gateway, Caddy), web, the platform console, API, the job signer, Postgres and Redis, plus one-shot migration and bootstrap containers; only the gateway is published. - All-in-one image:
ghcr.io/openctemio/openctemembeds the same gateway.An unsetdocker run -d -p 443:443 -v openctem-data:/data \ -e OPENCTEM_HOSTNAME=ctem.example.com \ -e DB_HOST=db.example.com -e DB_PASSWORD=... -e DB_SSLMODE=require \ -e REDIS_HOST=redis.example.com -e REDIS_PASSWORD=... -e REDIS_TLS_ENABLED=true \ -e APP_ENCRYPTION_KEY=... \ -e FINGERPRINT_KEY=... \ ghcr.io/openctemio/openctem:vX.Y.Z
APP_ENVmeansproduction, so the container refuses to start until the production checks pass:DB_SSLMODErequireorverify-full, a Redis password of 32+ characters withREDIS_TLS_ENABLED=true(plusREDIS_TLS_CA_FILEfor a private CA), anAPP_ENCRYPTION_KEY(openssl rand -hex 32; keep it, the stored credentials need it), aFINGERPRINT_KEY(openssl rand -hex 32; keep it, never rotate it), and no secret left at example text. The session secretAUTH_JWT_SECRETis derived fromAPP_ENCRYPTION_KEYwhen unset; set it (64+ characters,openssl rand -hex 64) to rotate the two independently. For a throwaway trial without TLS to the datastores, setAPP_ENV=developmentexplicitly; never for real data.--entrypoint /opt/openctem/api/server ... -check-configvalidates the settings without starting anything.GATEWAY=on(default) serves only :443 (OPENCTEM_TLS_MODEinternal | acme | files | http, as in the Compose gateway);GATEWAY=offserves the API on :8080 and the web on :3000 for your own proxy./datakeeps attachments and the gateway's CA: mount a volume. - Kubernetes: helm-charts.
Installation, configuration and operations are documented at docs.openctem.io/install.
One tag, vX.Y.Z, releases every image from the same commit: openctem-server,
openctem-web, openctem (all-in-one), openctem-gateway, migrations, seed, all
openctem-web, openctem-console, openctem (all-in-one), openctem-gateway, migrations, seed, admin-cli, all
multi-arch (amd64, arm64), signed with cosign, with a signed SPDX SBOM
attestation (also attached to the release) and a signed SLSA build provenance
per image. The release notes carry
the cosign verify and cosign verify-attestation --type spdxjson commands for
the tag. The pre-monorepo names ghcr.io/openctemio/api and ghcr.io/openctemio/ui receive
best-effort copies during a transition window (v0.9.0 has no ui copy); use the
current names. See
.github/workflows/docker-publish.yml.
server/api/openapi/swagger.yaml is generated from the Go handler annotations
(gated by server/scripts/check-openapi.sh), and the web wire types in
web/src/lib/api/generated/api.types.ts are generated from that file. Neither
is committed: run make generate after cloning or pulling (make generate-docker needs only Docker). CI type-checks the web against the
contract a pull request produces, so a change to the API contract and the web
code that consumes it land in one pull request, and it posts the contract
changes (breaking changes, route gate changes) on the pull request.
- User and operator documentation: docs.openctem.io
- Engineering documentation (architecture, development, RFCs):
server/docs/andweb/docs/
See CONTRIBUTING.md. Report vulnerabilities privately as described in SECURITY.md, never in a public issue.