app.trustivan.com. Every step is an HTTP request you can
copy, so it works the same from a laptop and from a pipeline.
Want to look before you sign in? The live demo
opens a read-only organization with real scan results, no account needed.
Before you start
You needcurl and jq, and an account on
app.trustivan.com. Signing up is free:
app.trustivan.com/auth/login?signup=1
opens an account and a new organization, and you are its owner. If a
colleague already uses TRUSTIVAN, ask them to invite you instead from
Settings → Members, so you join their organization; see
Getting access.
1. Issue an API key
Everything after this step is what a pipeline would do, so use a machine credential rather than your session.- Sign in at app.trustivan.com.
- Open Settings → API keys and choose New key.
- Name it
quickstart, select the scopesscans:create,scans:readandfindings:read, and choose a lifetime. Expiry is mandatory: there is no key that lasts forever. - Copy the secret. It is shown exactly once: no endpoint reads it back. If you lose it, revoke the key and issue another.
Terminal
2. Request a scan
202 with the scan and asset records. That is work accepted, not work
done: pulling and unpacking an image takes seconds to minutes. A 200
instead means an existing scan was returned, so a client can tell a
deduplicated retry from a new scan.
The Idempotency-Key is optional but worth the habit: it is reserved before any
work begins, so two concurrent retries cannot both queue a scan.
The trustivan CLI does the same requests, and
polls with a deadline. Its release builds are provided to customers; curl
needs nothing installed.
3. Poll for the result
Terminal
database_state reports how fresh the advisory data behind the result was. A
scan run against stale data reports “no vulnerabilities” with exactly the same
confidence as a correct one, which is why TRUSTIVAN surfaces the age rather than
hiding it, and why a sufficiently old database fails the scan
outright.
4. Read the findings
Terminal
order=recent for anything that enumerates. It orders by immutable keys, so
the traversal is exhaustive: every finding present when you started and not
deleted is visited exactly once. order=severity sorts by a value that changes,
so a re-rated finding can move and be seen twice or missed. Each response reports
page.stable so your client can assert this rather than assume it.
The same findings are in the console under Findings.
What you have now
An asset, a scan, and a set of findings that will keep their identity the next time this image is scanned. From here:- Your first scan explains the objects you just created.
- Gate a pipeline on a policy turns findings into a build decision.
- Keep an image under watch sets up recurring rescans.
Running TRUSTIVAN yourself
Self-hosting is by agreement: the container images and the source repository are provided to customers who run TRUSTIVAN on their own infrastructure. If that is you, start with Requirements and Docker Compose. The steps above are the same against your own deployment, withTRUSTIVAN_URL set to its address.