Self-hosting is by agreement. The container images (
ghcr.io/trustivan/*)
and the source repository are private: they are provided to customers who run
TRUSTIVAN on their own infrastructure. To evaluate TRUSTIVAN, use the hosted
service from the quickstart, or contact
us about self-hosting.trustivan, which does three jobs:
- the CI gate (
scan,gate): request a scan, wait for it, evaluate a policy and exit non-zero when the build should stop. It is a thin HTTP client; it exists because thecurlversion of that loop is easy to get subtly wrong. - a local pre-commit secret check (
secrets scan --staged): check the lines about to be committed for credentials, locally and offline. - the MCP server (
mcp): give an AI assistant your findings, assets, posture, compliance status and the check catalogue through the API, with an API key. See MCP server.
The server binaries
All six ship in one image, selected by entrypoint, alongside
trustivan:
So the migrations, the sweep and the operator command are guaranteed to come
from the same build as the API that reads what they wrote.
api and worker run until stopped. The other four run once and exit:
migrate before every deploy, reencrypt during an
encryption-key rotation, staffctl when you
create a staff account or a customer organization, and auditctl whenever you
want to check the audit trail or anchor it. Rotating the key without
running reencrypt leaves data readable only under a key you still have to
carry.
Each of the five answers --version (also -version and -v) with one line
naming the binary and its build, before it reads any configuration. That makes
it usable on exactly the host whose environment is wrong.
api and worker are separate processes rather than one binary with a flag,
and the split is load-bearing. Scanning is the part that handles untrusted
input, holds a large cache, and takes minutes; serving the API is the part that
must stay responsive. Running them together means one scan of a large image
degrades every request, and it means you cannot scale the two independently,
which is the whole reason
the default compose file separates them.
They take no flags
Apart from--version, api and worker accept no command-line arguments.
Passing others is not an error; they are ignored.
Everything is configured through the process environment, which is a deliberate
single surface rather than an omission. See
Configuration overview for why, and
Environment variables for the complete list.
The practical consequence is that a flag you might reach for has an environment
variable instead:
One consequence is worth planning for: changing any setting means restarting the
process. There is no reload signal, and no admin endpoint that writes
configuration.
Where the scanner’s own command line went
TRUSTIVAN embeds its scanning engine as a Go library, in a single adapter package. It does not shell out to a scanner binary, so there is no engine command line to pass flags through to, and no-- escape hatch that forwards arguments to it.
This matters more than it sounds. It means the scanner’s configuration surface
is exactly the set of settings TRUSTIVAN’s own configuration exposes, and an
option that is not in Scanning and concurrency
is not reachable at all. If you have used the upstream scanner directly and are
looking for a familiar flag, that is where to check whether TRUSTIVAN exposes the
equivalent, and Upstream and attribution explains
what the relationship between the two projects is and is not.