Who an operator is
The two are stored in separate tables and reached through separate database roles. A browser can hold both sessions at once, and neither stands in for the other.
Ten capabilities are defined, and the first operator holds all of them. Routes check five:
The other five (
tenant:delete, platform:configure, platform:licensing, platform:feature_flags and platform:support_impersonate) are names only. No route checks them, so none of what they describe exists.
Create the first operator
A fresh deployment has no accounts. One command creates the first operator, and it works once.1
Run the bootstrap
From the On Kubernetes, use
nhi/ directory of the deployment’s checkout, with your own email and name:make k8s-bootstrap-admin with the same two arguments. Both run node packages/db/dist/bootstrap/run.js <email> "<display name>" in the migrate service, because that service holds the database owner connection and the application’s own database role cannot write operator tables. See Deploy NHI Security.2
Capture the password
The command generates a password, prints it once and stores only its verifier. Put it in a password manager before you close the terminal. It never accepts a password as an argument.
3
Sign in
Open
https://<your host>/nhi/platform. You are sent to the operator sign-in page.- There is no route to create a second operator. The command’s refusal message points you to the operator console for that, and the console has no such screen.
- There is no route to change an operator’s password. The command’s output tells you to change it after signing in, and nothing lets you. The generated password is the password.
- A lost password has no recovery flow. The supported way out is to remove the unused operator row as the database owner and run the bootstrap again. Do that only for an operator who has never acted, because platform audit records keep pointing at the operator who wrote them.
Provision an organization
1
Open the form
On Tenants & Organizations, select Provision Organization.
2
Fill it in
3
Deliver the invitation link
The console shows the first administrator’s invitation link once. NHI Security sends no email, whatever the form’s hint says. Copy the link and deliver it yourself.The link the console shows carries only the token. The acceptance page also needs the organization identifier and reports “This link is incomplete” without it, so add
&org=<slug> to the end before you send it.tenant, the firstAdministratorEmail and an invitationToken, returned this once. A slug that is already taken answers 409.
Provisioning creates the organization with its default security settings and an invited account for that address, with an invitation for the Organization Admin role. The invitation works once and expires after seven days. No password is set by anyone but the invitee. From there the organization runs itself: see Administration.
Whoever holds the invitation link can become that organization’s first administrator. Send it only to its recipient. If it is lost or expires before it is used, nothing in the operator console issues another, and the organization has no administrator who could.
Organization states
Tenants & Organizations lists each organization with its identifier, whether it is marked demonstration or production, how many accounts it has, its state and its creation date. The screen shows the first 100;GET /api/v1/platform/tenants takes limit (up to 100) and offset.
Suspend and Reinstate on a row call
PATCH /api/v1/platform/tenants/{tenantId}/state with {"state": "suspended"} or {"state": "active"}. Decommissioning has no console control: send {"state": "decommissioned"}.
In any state other than active:
- Nobody in the organization can sign in, and every existing session is refused on its next request. Sessions are not revoked one by one; the state is checked every time.
- Invitations to it cannot be accepted.
- Scheduled synchronization skips it, so NHI Security stops reaching into that organization’s connected environments on a timer.
- Its agents stop too. A runtime credential that belongs to it is refused with
401, exactly as an expired or revoked one is.
- It deletes nothing. No route deletes an organization or its data, and
decommissionedremoves no records. decommissionedis not final. The route accepts any of the three states from any state, so a decommissioned organization can be set back toactive.- It does not revoke runtime credentials. It refuses them. While an organization is in any state other than
active, every runtime credential it holds answers401at the runtime gate, on the next request. Nothing is revoked, so setting the organization back toactiverestores exactly the credentials it had. To stop an organization’s agents and keep a decision record of what each one tried, use the kill switch instead: a refused credential leaves no decision record.
Change the brand
Branding in the operator console changes what every organization in the deployment sees: the product and company name, a support address, the logo, a logo for dark mode, the browser tab icon, both colour palettes, the corner radius and the fonts. There is one brand per deployment. Organizations cannot have their own, and no organization role can change it. Saving callsPUT /api/v1/platform/branding (platform:branding). Read the current brand from GET /api/v1/branding/current, which needs no session because the sign-in page uses it.
- Every colour is checked before it is stored. A colour is
#rgb,#rrggbb,rgb(),hsl()oroklch()of plain numbers. Named colours,var(),calc()andurl()are refused, and so is anything that could end the stylesheet rule. The corner radius is one length, and a font is a list of family names. A refusal answers422and names the value, for examplebrand theme light.accent is not a valid colour. - An image is stored inline or served by you. It is a base64
data:imageURI (PNG, JPEG, GIF, WebP or SVG) of at most 24 kB, which is about 18 kB of image, or a path on the console’s own origin such as/brand/logo.svg. An address on another site is refused: the console would not load it, and a logo fetched from elsewhere reports every page view to whoever hosts it. - The dark-mode logo is shown in the dark theme. The console’s side rail, the sign-in page and the operator header show the logo for dark mode when the reader chose the dark theme, and the logo otherwise. Without a logo for dark mode, the logo is shown in both themes, so a logo drawn in a dark ink needs one.
- Both palettes are always saved whole. Ten colours each, light and dark.
- The change is audited as
brand.updatedin the platform audit stream, with the names of the fields that changed. - A running console shows a saved brand within 30 seconds. The settings screen shows it at once.
Inside TRUSTIVAN the operator console does not exist, so there is no brand screen there. The NHI Security brand in a merged deployment is the row the database migrations set.
The platform audit stream
Platform Audit Stream (GET /api/v1/platform/audit, limit and offset) lists operator activity newest first: timestamp, action, capability, result, affected organization, source address and detail. The screen shows the newest 100.
It records platform.signed_in, platform.sign_in_failed, platform.signed_out, tenant.provisioned, tenant.state_changed, brand.updated, and authz.denied when an operator calls a route without its capability.
It is a separate stream from every organization’s audit trail. No organization role can read it, and operators cannot read an organization’s trail. The database refuses updates to it, and refuses deletes outside a declared retention operation that nothing in the product performs. The operator database role holds only read and insert on the table. No route verifies its hash chain or exports it; the integrity check and evidence export in the console cover an organization’s trail only.
What an operator cannot do
- Read or change anything inside an organization. Every organization route requires an organization session, and an operator session never satisfies one. The operator database role has no privilege on the tables that hold identities, credentials, findings, connectors or users. The account count on the list comes from one function that returns a number.
- Sign in as a customer. There is no impersonation. Sign In on a row opens the ordinary sign-in page in a new tab.
- Set or reset anyone’s password, or invite a second administrator into an organization.
- Change feature flags or licensing. No route exists for either.
- Delete an organization.
Where to go next
Deploy NHI Security
Stand up a standalone deployment before you bootstrap an operator.
Configuration
AUTH_MODE and the other environment variables.Administration
What the first administrator does after accepting the invitation.
Limitations
What NHI Security does not do yet.