Skip to main content

Run the whole platform yourself

The open-source CLI governs one workstation. Unveilr Guard Enterprise — the console, the API, the MCP gateway, the evidence ledger — runs on your own machine or your own infrastructure with one command, so you can evaluate the whole platform before talking to anyone.

git clone YOUR-LICENSED-CHECKOUT unveilr-guard
cd unveilr-guard
docker compose up --build

That brings up PostgreSQL, the API, the gateway, and the console, runs the database migrations, and opens the console on localhost:3000.

Nothing leaves the machine. There is no account to create, no identity provider to configure, and no telemetry.

Signing in without an identity provider​

A hosted Unveilr console requires an identity provider, and a missing one is an error rather than a fallback — the product never invents a tenant to keep going. That rule is what makes the coverage numbers mean something, so self-hosting does not relax it. It gives you an explicit alternative instead.

docker compose sets this for you:

UNVEILR_LOCAL_CONSOLE: "true"
UNVEILR_LOCAL_TENANT: ten_local
UNVEILR_LOCAL_USER: local@unveilr.local

In this mode the tenant and user are declared by configuration, not authenticated. The header badge reads LOCAL instead of SSO on every screen so nobody can mistake the two, and there is no Sign out link, because there is no session to end.

When it refuses​

Local mode is opt-in by name and refuses in the three situations where turning it on would be a mistake:

SituationWhat happens
UNVEILR_LOCAL_CONSOLE unset or not truthyOff. This is the default, and a missing identity provider alone never enables it.
An identity provider is configuredRefused. A real IdP always governs sign-in; local mode cannot downgrade a configured deployment.
API_URL is not a local hostRefused. Loopback, a container or Kubernetes service name, *.local, and RFC1918 addresses are accepted; anything public is not.

The API enforces the same boundary independently: it accepts a declared identity only when its own environment is local or test and the caller is on loopback or a container network. Pointing a local console at a shared deployment fails on both sides, not one.

Local mode grants tenant administrator of its single tenant. It never grants platform administrator, so the cross-tenant provisioning endpoints stay closed.

warning

Local mode is for a machine you control. Do not enable it on a host other people can reach — anyone who can open the console is that tenant's administrator.

Try it against something​

The API image ships a deliberately unsafe fixture repository, so there is something to scan before you point Unveilr at your own code:

curl -s -X POST http://localhost:8080/v1/repos \
-H 'content-type: application/json' \
-H 'x-unveilr-tenant: ten_local' \
-H 'x-unveilr-user: local@unveilr.local' \
-H 'x-unveilr-roles: admin' \
-d '{"provider":"local","name":"sample_repo",
"url":"/app/fixtures/sample_repo","externalId":"demo-1"}'

Then run a scan from the console (Repositories → Scan now) and work through Getting started, which ticks itself off as you go: connect a repository, run a scan, review the AI-BOM, triage a finding, register an agent, run one Govern check, mint a CI token, wire an alert channel.

The fixture produces around 19 findings and 15 AI-BOM assets, including a hardcoded AWS key, an unpinned agent skill, a typosquatted dependency, and an ungoverned MCP server.

Ports​

ServiceDefaultOverride
Console3000WEB_PORT
API8080API_PORT
Gateway8081GATEWAY_PORT
API_PORT=8099 WEB_PORT=3399 docker compose up --build

What this stack is not​

It is the real platform, not a mock — the same images, migrations, policy engine, and evidence ledger that run hosted. Two differences matter for evaluation:

  • Single region, single node, no backups. Fine for evaluation; not a production topology.
  • OpenSearch is left unconfigured. Evidence search degrades to reading the sealed ledger directly, and capture is unaffected — which is the behaviour worth seeing.

When you move to a shared deployment, configure an identity provider and drop UNVEILR_LOCAL_CONSOLE. The console will refuse to start in local mode as soon as SSO is present, so the migration is one-way by construction.