- AppSec: scanning container images and repositories, recording policy verdicts, and gating CI on them.
- NHI Security: discovering machine identities across AWS, Microsoft Entra ID, Google Cloud, Kubernetes, Okta, GitHub, GitLab, Slack, Snowflake and Vault, inventorying MCP tool servers, and having a runtime gate decide what an AI agent may do: deny by default.
Our Philosophy “Scanning is the commodity. The decision is the product.” “Evidence before claims. Deny by default.”
NHI Security has not been deployed to production. Read NHI Security limitations before planning around it.
Architecture overview
https://app.trustivan.com/api/v1, NHI Security’s under https://app.trustivan.com/nhi/api/v1.
Track 1: AppSec
Step 1: Issue a scoped API key for CI
Signed in, from Settings → API keys, or over the API with your browser session:twk_…) is in the response once and never again. Those three scopes are all a pipeline needs; see Scopes.
Step 2: Connect private registries
TRUSTIVAN pulls images over the registry API itself: no Docker daemon, no root, no host socket. For a private registry, store a credential under Settings → Registries and repos. It needs a person, not a key:credentials:manage is not grantable to an API key, so a CI credential cannot change what your scans authenticate to. See Registry credentials for the fields, and Scan a private repository for git hosts.
Six schemes are accepted for a registry. Two are generic: basic (a username and a password or token) and token (a token with no username). Four are cloud-native, exchanged by TRUSTIVAN for a short-lived registry login at scan time rather than stored as a long-lived registry password:
A scheme whose host does not match (
azure_service_principal against ghcr.io, say) is refused when you save it rather than when a scan runs, so a mistake is visible when you make it.
Step 3: Run a first scan
202 means accepted, not done. Poll GET /api/v1/scans/{id} until status is succeeded or failed. Every finding then moves through five states (open, triaged, suppressed, resolved, reopened), and only a later scan can resolve one. See Your first scan.
Step 4: Write a policy
A policy is created empty and disabled, and its rules are added as immutable versions. Rules are declarative, not an expression language: each has aneffect (fail, warn or ignore) and conditions such as min_severity, known_exploited or fixabilities, all of which must hold. Authoring needs policies:manage, which no API key can hold, because a pipeline must not be able to rewrite the policy that judges it. Do it on the Policies page, or follow Gate a pipeline on a policy for the API calls.
Step 5: Gate CI on the verdict
Ask for a verdict and branch onblocking in the body, never on the HTTP status, which is 201 or 200 whether the build should stop or not:
result in the same body is pass, warn or fail. Or let trustivan gate do steps 3 and 5 in one command, with exit 1 for a blocked build and 2 for “TRUSTIVAN could not answer”.
Track 2: NHI Security
NHI Security has no API keys. Every console page and API call is authenticated by your TRUSTIVAN session; the only bearer token it accepts is an agent runtime’s credential, at the runtime gate. The console is the practical way to do steps 1 to 4.Step 1: Connect your environments
Integrations → Connectors → Connect an environment. Each connector reads, never writes:- AWS: IAM roles, machine IAM users and their access keys, through
AssumeRolewith an external ID the platform issues. - GitHub: GitHub App installations, bot accounts and repositories.
- Kubernetes: ServiceAccounts, their RBAC bindings, and the workloads that run as each.
- HashiCorp Vault: AppRoles and machine identity entities, with their policies and auth mounts.
healthy once a run completes.
Step 2: Inventory your MCP tool servers
The MCP connector reads the tools an MCP server publishes. It is created through the API rather than the console form, and your operator must allow the server’s host. See Connectors → MCP tool servers and MCP server guardrails.Step 3: Explore what was found
- Identities: every machine identity, its owner and last use.
- Identities → Graph: permissions, reachable resources and trust relationships.
- Findings → Risk: stale credentials, over-privileged identities, identities nobody owns.
Step 4: Register and describe your agents
The AWS and Google Cloud connectors can discover Amazon Bedrock agents and Vertex AI Agent Engine deployments when you turn that on; any other agent you register (Agents). Then, for each: declare its autonomy, declare what its tools do, and entitle it to the tools it may use. An agent with no entitlements is refused every tool. See Agent autonomy.Step 5: Put the runtime gate in front of tool calls
The gate runs fourteen rules. Five deny and cannot be switched off:principal_not_live, principal_quarantined, credential_not_usable (the estate credential the action would use is revoked, expired or compromised), tool_not_entitled and tenant_agents_suspended (the organization-wide kill switch). Nine more can at most challenge (ask a person), and all fourteen are on from the start; there is nothing to activate. The full list is in Runtime gate.
Issue the agent’s runtime a credential (POST /nhi/api/v1/runtime/credentials with identityId, displayName and lifetimeDays from 1 to 90, or from the console). The token is shown once. Before each tool call, the runtime asks:
mayProceed. A challenge means a person decides, by approving a time-boxed access grant, and the approver must be a different admin from whoever requested it. A deny is still HTTP 200.
Step 6: Check the evidence
Every administrative act in NHI Security (connecting an environment, declaring an entitlement, issuing a runtime credential, approving a grant) is written to NHI Security’s own hash-chained audit trail.GET /nhi/api/v1/audit/integrity verifies the chain; GET /nhi/api/v1/audit/evidence exports a window of it for somebody else to check. Gate decisions are kept separately, in the append-only decision log (Runtime → Decisions). Neither is in the AppSec audit export. See Governance and audit.
Onboarding checklist
Both consoles show this list on their overview, and neither of them takes your word for it: every tick is a fact the API reported, and nothing is stored to say a step was completed. A step whose state your role may not read is left out rather than shown unticked, so two people can see different lists and both be right. The table below is that same list, so you can read it before you sign in.AppSec, on the dashboard overview
The five numbered steps in Track 1 above are the walkthrough. This is the list
the product checks, and it is longer: rescan schedules, seats and MFA are part
of a workspace being set up, and none of them is something a first scan teaches
you to do.
NHI Security, on the security overview
Three of those wait on a completed synchronization before they mean anything.
Zero tools because no connector has run is not the same fact as zero tools after
one has, and the console will not tick a step on the first while showing you the
second (ADR-0010).
Next steps
- Scan a private repository: credentials for git hosts.
- Gate a pipeline on a policy: a complete GitHub Actions and GitLab CI walkthrough.
- MCP server guardrails: classifying tools and asking the gate before each call.
- Runtime gate: all fourteen rules, runtime credentials and access grants.