User and operator guide · Operations

Verify The Running Version And Environment

Status: currentReviewed: 2026-07-08Audience: operators, security administrators
On this pageThe Platform VersionThe Startup BannerThe Environment CheckWhen Something Does Not MatchVerify It Yourself

Every Atlas container prints a versioned product banner when it starts, and the gateway runs an environment check that confirms — with a green checkmark per line — that every running Atlas container and the database schema are on the same, correct version. If anything does not match, the check reports the specific problem and how to fix it, directly in the container log.

The Platform Version

The release version lives in one shared version package:

  • Version — the platform release (for example 2.5.1). Every Atlas binary is compiled from this one constant, so a container built from a different release reports a different version and the check flags it. Increment it on each release (2.5.1 → 2.5.2 → 2.6.0).

  • SchemaVersion — the highest database-migration ordinal this build expects. Bump it in lockstep whenever you add a new identity database migration.

The UI header shows the same release (Atlas interface), so an operator can confirm the running version at a glance.

The Startup Banner

Each service writes a framed banner to standard output — visible immediately in docker logs <container>:

╔════════════════════════════════════════════════════════════════════════════════╗
║                                                                                ║
║    █████╗ ████████╗██╗      █████╗ ███████╗                                    ║
║   ██╔══██╗╚══██╔══╝██║     ██╔══██╗██╔════╝    Release   2.5.1                 ║
║   ███████║   ██║   ██║     ███████║███████╗    Schema    v17                   ║
║   ██╔══██║   ██║   ██║     ██╔══██║╚════██║    Build     a1b2c3d · 2026-07-08  ║
║   ██║  ██║   ██║   ███████╗██║  ██║███████║                                    ║
║   ╚═╝  ╚═╝   ╚═╝   ╚══════╝╚═╝  ╚═╝╚══════╝                                    ║
║                                                                                ║
║   Atlas TrustAI  ·  Zero-Trust Continuous Access Evaluation                    ║
║   Service:  api-gateway                                                        ║
╚════════════════════════════════════════════════════════════════════════════════╝

Build is filled in at link time from the git commit and build date; it shows dev · unknown for a local development run.

The Environment Check

The gateway is the coordinator. On startup — after it has migrated the database — it registers its own version, verifies every required peer and the database schema, and prints the result:

╔════════════════════════════════════════════════════════════════════════════════╗
║   ATLAS ENVIRONMENT CHECK  ·  Atlas TrustAI release 2.5.1                       ║
╠════════════════════════════════════════════════════════════════════════════════╣
║   COMPONENT                               VERSION    STATUS                     ║
║   api-gateway             (this service)  2.5.1      ✓ OK                       ║
║   atlas-authz             (PDP)           2.5.1      ✓ OK                       ║
║   atlas-directory         (Directory)     2.5.1      ✓ OK                       ║
║   database schema                         v17        ✓ OK   (expected v17)      ║
╠════════════════════════════════════════════════════════════════════════════════╣
║   ✓  ALL COMPONENTS MATCH — Atlas TrustAI 2.5.1 is running correctly            ║
╚════════════════════════════════════════════════════════════════════════════════╝

How each line is verified:

  • Containers. Every Atlas service records its version in a shared service_versions table when it starts. The check reads that table and compares each running container against the release. The PDP is required (the gateway fails closed without it); any other registered Atlas container is verified too. A container that is missing, stale, or on a different version is a ✗.

  • Database schema. The migration runner records every applied migration in a schema_migrations ledger; the highest ordinal there is the actual schema version. The check compares it against the version the running build expects (SchemaVersion).

The rendered box goes to the container log, and the machine-readable result is mirrored into the structured log (environment check passed / one environment check: component does not match per problem) so it can be alerted on.

When Something Does Not Match

The check never blocks startup — a wrong environment is reported, not hidden. A failing check lists each problem and its remediation:

║   ✗  2 ISSUES DETECTED — environment is NOT consistent                         ║
║                                                                                ║
║   ✗ atlas-authz: mismatch — running 2.4.0, expected 2.5.1                      ║
║     → rebuild/redeploy the atlas-authz container from the 2.5.1 image           ║
║   ✗ database schema: behind — DB is v16, this build needs v17                  ║
║     → run database migrations to create the missing tables, then restart        ║
Symptom What it means and what to do

mismatch — running X, expected Y

A container is built from a different release. Rebuild/redeploy that container from the current image so every container matches.

not running (or older than 2.5.x …)

A required container is not up (or predates the version registry). Start it, or upgrade it to a release that registers its version.

stale — last seen … ago

A registered container has not refreshed recently; it may have stopped. Confirm it is running the current release.

database schema: behind — DB is vN

The database is missing the newest tables. Run migrations — the gateway applies the packaged identity database migrations on boot, creating the new tables; if it could not (permissions, a partial failure), fix the cause and restart so migrations complete.

database schema: ahead — DB is vN

The database was migrated by a newer release than this container. Upgrade the container to the release that owns that schema version.

Verify It Yourself

  1. docker logs atlas-demo-icam (or your gateway container) — read the product banner and the environment-check box. A healthy stack shows ALL COMPONENTS MATCH.

  2. docker logs atlas-demo-authz / docker logs atlas-demo-directory — each peer prints its own banner with the same release.

  3. Simulate a drift to see the report: docker exec atlas-demo-postgres psql -U atlas -d atlas_demo -c "UPDATE service_versions SET app_version='2.4.0' WHERE service_name='atlas-authz'", then restart the gateway container and read its log — the check now shows a ✗ against atlas-authz with the remediation.

  4. docker exec atlas-demo-postgres psql -U atlas -d atlas_demo -c "SELECT service_name, app_version FROM service_versions" and … "SELECT max(name) FROM schema_migrations" — the raw registry and schema ledger the check reads.