Rules that apply to every connector
Credentials references
A connector never holds a secret. The connector form asks for a credentials reference, which is a name, and NHI Security refuses a value in that field that looks like a secret. The name must resolve to an entry your deployment holds, or the synchronization fails with aconfiguration_error before any provider call. There are three ways an entry comes to exist:
- In the console, while you connect. If you hold
credential:manage(inside TRUSTIVAN, an Owner or Admin), the connector form shows Store a credential beside the reference. You name the entry, add each field the connector expects with its value, and choose Store. The values are encrypted at rest and the reference is filled in for you. No route returns a stored value, so what you type is the last time it can be seen; the confirmation shows only the name and the field names. The same thing through the API isPOST /nhi/api/v1/connectors/credentialwith{"handle": "...", "values": {...}}. - In your deployment’s configuration, registered by whoever operates your TRUSTIVAN deployment. This is the only route for the AWS mode that uses the deployment’s own identity, which needs an entry with no values.
- Against an identity already in your inventory:
POST /nhi/api/v1/credentials/material. See Credentials and rotation.
SECRET_STORE, see the configuration reference). The field names each connector expects are listed below. Where a section says “your operator registers”, those are the field names to enter, whichever of the routes above you use. The console does not check a field name: a misspelled one surfaces later as a failed health check or synchronization.
Endpoints
- Public HTTPS only, on port 443, 6443 or 8443. Private, loopback, link-local, carrier-grade NAT and cloud metadata addresses are refused, as are
localhostand names ending in.internal,.localor.localdomain. A provider reachable only inside your network, such as a private Kubernetes API server or an internal Vault, cannot be connected today. - Permitted hosts only. AWS, GitHub, Microsoft Entra ID, Google Cloud, Slack and Snowflake talk only to hosts fixed in code, so there is nothing to configure and nothing a tenant can widen. Kubernetes, Vault, GitLab and Okta have built-in hosts for the vendor’s own offering (
gitlab.com;okta.com,oktapreview.comandokta-emea.com) and any other host, such as a self-managed GitLab or an Okta custom domain, must be allowed by your deployment operator. MCP has no built-in hosts at all. - For every connector that speaks HTTP to a name, the hostname is resolved and every resolved address is checked, redirects are refused, and responses are size-limited. A continuation link a provider returns is checked against the same origin and path before it is followed.
People are left out
A human’s account never enters the inventory or the graph. Where a provider cannot tell a machine from a person, the account is either excluded or recorded asunknown, never guessed from its name.
Last use is shown only where the provider reports it
Three providers report it: AWS for roles and access keys, GitLab for an access token and the bot user it authenticates as, and Snowflake for a service user’s last successful login. Everywhere else NHI Security shows that last use is not reported, rather than implying the identity was never used. This is why thestale_identity policy reports identities from the other providers as not assessable rather than as unused.
Requests are paced and retried
Each connector makes at most 10 requests per second. Throttling, timeouts and provider outages are retried with growing delays, up to three attempts in total, and a provider’sRetry-After is obeyed. Authentication and authorization failures are never retried.
AWS
Discovers the non-human identity surface of one AWS account per connector.What it collects
What it collects
includeBedrockAgents on | Identity, type ai_agent, keyed by its agent ARN: hosted by the vendor, the foundation model AWS names, autonomy not stated. Its action groups are named in the evidence. A DELETING or FAILED agent is inactive |Relationships: ASSUMES (from each role’s trust policy, and from each Bedrock agent to the IAM role AWS runs it as), HAS_PERMISSION (attached managed and inline policies), BELONGS_TO (group membership), and ACCESSES to each specific ARN an inline Allow statement names.Bedrock agents are read only in the connector’s region. The agent’s instruction (its prompt) is never stored.Ownership comes from tags, matched without regard to case. Owner, OwnerEmail, Owner_Email, Contact and ContactEmail are declared. Team, ManagedBy (and Managed-By, Managed_By), CreatedBy (and Created-By), BusinessUnit and aws:cloudformation:stack-name are inferred.Permissions it needs
Permissions it needs
includeBedrockAgents on, add a statement allowing bedrock:ListAgents, bedrock:GetAgent and bedrock:ListAgentActionGroups on "Resource": "*". An existing connector needs nothing new until you turn the setting on.You can drop iam:GetLoginProfile, iam:ListAccessKeys and iam:GetAccessKeyLastUsed if you set includeUsers to false, and drop iam:GetAccessKeyLastUsed alone if you set includeKeyLastUsed to false. Removing them without changing the setting records the affected users as unknown and marks the run partially_failed.Authentication
Authentication
assume_role mode the role’s trust policy must trust your deployment’s AWS principal and require the connector’s External ID, which is connector-<connector id> and is shown on the connector page. NHI Security generates it and always sends it; an external ID supplied in settings or credentials is refused.Before reading anything, on every health check and every synchronization, the connector calls sts:GetCallerIdentity and refuses to collect if the credentials belong to a different account from the one on the connector.Settings
Settings
PATCH /nhi/api/v1/connectors/{connectorId}. The account ID always comes from the connector’s scope, never from settings.What it does not do
What it does not do
- Managed policy documents are not read. The
HAS_PERMISSIONedge to a managed policy is drawn, but its statements are not collected. Denystatements are not recorded, and conditions are not evaluated. A conditionalAllowis recorded and flagged as conditional.NotActionandNotResourcestatements are recorded as wildcard grants. Access computed from AWS data is therefore an upper bound.- Account principals in trust policies are not expanded. A role that trusts
arn:aws:iam::123456789012:rootdoes not produce an edge from every principal in that account. - Resources are not discovered. Buckets, databases and other AWS resources are not collected.
- One account per connector. There is no AWS Organizations-wide discovery.
GitHub
Discovers the machine identities of one GitHub organization on github.com. GitHub Enterprise Server is not supported.What it collects
What it collects
BELONGS_TO the organization; each installation HAS_PERMISSION for each App permission (for example contents:write); a bot HAS_PERMISSION for the organization admin role where it holds it.GitHub states no owner and no last use for installations or bots, so none is recorded. An app’s owner comes from GET /apps/{app_slug}; an app GitHub will not show (a private app, which only its owner can install) is treated as the organization’s own. A login is compared without regard to case, as GitHub compares it. Of a credential authorization, token_last_eight and the SSH key fingerprint are never read.Permissions it needs
Permissions it needs
includeCredentialAuthorizations needs a different token: GitHub serves GET /orgs/{org}/credential-authorizations only on GitHub Enterprise Cloud organizations that use SAML SSO, only to an organization owner, and only to a classic personal access token or OAuth token with the read:org scope. A fine-grained token is refused.Authentication and settings
Authentication and settings
token. Your operator registers the token under the field name token. GitHub App authentication is not implemented.What it does not do
What it does not do
- It does not discover Actions workflow identities, secrets or runners.
- It does not read OAuth tokens outside SAML SSO authorizations: GitHub lists a member’s authorized OAuth apps to nobody but that member.
- It does not read the audit log or secret-scanning alerts.
- It does not know which repositories an installation can reach, so it draws no installation-to-repository edge.
- Its organization check is weak: any token can read a public organization, so a healthy result mainly proves that the next call, listing installations or members, was permitted.
Kubernetes
Discovers the ServiceAccounts of one cluster and what they are bound to.What it collects
What it collects
owner, owners, owner-email, contact and contact-email are declared; team, managed-by, part-of, created-by, release-name and instance are inferred. A prefix such as example.com/owner is accepted.Permissions it needs
Permissions it needs
list only. For a cluster-wide connector:apps and batch rules are needed only while includeWorkloads is on. The health check also reads the API server’s /version, which Kubernetes normally allows to any authenticated caller.For a connector restricted to some namespaces, bind a Role with the namespaced rules in each of those namespaces, plus a ClusterRole with clusterrolebindings only. ClusterRoleBindings are always read, because they are how an account in one namespace gains permission everywhere.Authentication and settings
Authentication and settings
token: a bearer token your operator registers under the field name token. A short-lived ServiceAccount token that you rotate is the best choice. Client certificates are not supported.The Endpoint is required: the cluster’s API server URL. Built-in permitted hosts are eks.amazonaws.com and azmk8s.io; other hosts must be allowed by your deployment operator. The API server’s certificate must be trusted by the deployment; there is no option to skip TLS verification.What it does not do
What it does not do
- It cannot detect a connector pointed at the wrong cluster, because Kubernetes has no cluster identity endpoint.
- Role and ClusterRole rules are not read, so the graph shows that an account is bound to
cluster-adminbut not whatcluster-admincontains. - A binding to the group
system:serviceaccounts:<namespace>is not represented. - Workload identity federation into Google Cloud or Azure produces no edge. It is mentioned only in the ServiceAccount’s evidence.
- Last use is not reported.
HashiCorp Vault
Discovers the machine identities of one Vault (HCP Vault, or a self-hosted Vault reachable over public HTTPS).What it collects
What it collects
BELONGS_TO its auth mount; AppRoles and entities HAS_PERMISSION for their policies; entities AUTHENTICATES_WITH each alias’s mount; and, where an AWS auth alias names a full IAM ARN, an inferred ASSUMES edge from that AWS principal to the entity.An AppRole with bind_secret_id: false is called out in its evidence, because its role ID alone is enough to authenticate. Vault records no owner and no last use, so none is shown.Permissions it needs
Permissions it needs
list and read pair for each additional AppRole mount you configure. The policy never grants access to role IDs or secret IDs.Authentication and settings
Authentication and settings
hashicorp.cloud is permitted by default; other hosts must be allowed by your deployment operator.What it does not do
What it does not do
- It does not read AppRole secret ID accessors, so Vault contributes nothing to the credential inventory.
- It does not read the audit device, so last use is not reported.
Microsoft Entra ID (Azure)
Discovers the application identities of one Entra ID tenant per connector, through Microsoft Graph. The connector’s scope is the tenant id, as a lowercase GUID; a verified domain such ascontoso.onmicrosoft.com is refused, because it can be moved between tenants.
What it collects
What it collects
BELONGS_TO the tenant, and a service principal is CREATED_FROM its app registration only where Graph states that registration lives in this tenant.Ownership is the Entra owner list of the application or service principal, recorded as declared. Graph expands at most twenty related objects and does not say when it stops, so a list of exactly twenty says “there may be more” in its basis.A credential outside its start and end dates is recorded as inactive. That is Entra’s own fact about it, not a staleness judgement.Permissions it needs
Permissions it needs
ReadWrite permission.Directory.Read.All with DelegatedPermissionGrant.Read.All, RoleManagement.Read.Directory and User.ReadBasic.All. That set has not been confirmed against a real tenant, which is why the pair above is what this page asks for. A missing permission is reported as an authorization failure naming both, never as an empty directory.Authentication and settings
Authentication and settings
endpoint should be empty; a value is re-validated on every call and must be on graph.microsoft.com.Health obtains a token and reads one service principal, which is the cheapest call that also proves Application.Read.All.What it does not do
What it does not do
- Last use is never reported, for an identity or a credential. Graph v1.0 publishes no sign-in activity for a service principal, and the preview that does needs an audit permission and a premium licence.
- No secret value is read. Graph does not return a secret on a read, and the three-character hint, the free-form key identifier and the certificate body are all left alone.
- Azure RBAC is not read. Subscription and resource-group role assignments live in Azure Resource Manager, which is a different API and permission model. A tenant that looks clean here may still hold broad Azure resource access.
- Federated identity credentials (workload identity federation) are not collected.
- Effects are claimed only where Microsoft publishes their meaning: Graph permissions by Microsoft’s documented naming scheme, and seven built-in directory roles by template id. A custom API’s roles and every other directory role are recorded verbatim with no effect, which is a gap rather than a guess.
- Global cloud only. The sovereign clouds are not reachable.
- Owners beyond twenty are not read, and no resources are discovered.
Google Cloud
Discovers the service accounts of one Google Cloud project per connector. The scope is the project id, not its number or display name.What it collects
What it collects
agentLocations set the connector also offers Relationships: an ASSUMES edge from each deployment to the service account in spec.serviceAccount. A deployment with none runs as Google’s Reasoning Engine Service Agent, which the connector does not discover, so no edge is drawn.The raw binding is kept verbatim as evidence, and resourceKey is null, which is how a project-wide grant is stated. The policy is requested at version 3 so conditional bindings arrive intact; two conditions on one role are two grants.Google’s 9999-12-31 expiry is its sentinel for “never expires” and is reported as no expiry rather than as a date. A service account’s free-text display name and description are not read: neither is a provider fact, and neither is an owner.Permissions it needs
Permissions it needs
roles/iam.securityReviewer, the predefined role that covers all three calls; or- a custom role with exactly
iam.serviceAccounts.list,iam.serviceAccountKeys.listandresourcemanager.projects.getIamPolicy, which is tighter.
cloud-platform.read-only scope, so even a mis-granted write role cannot be exercised through it. The IAM API and the Cloud Resource Manager API must be enabled; a disabled API answers 403 and is reported as an authorization failure.With agentLocations set, also grant aiplatform.reasoningEngines.list (in roles/aiplatform.viewer) and enable the Vertex AI API.If the connector’s own service account lives in the scanned project it will appear in the inventory, correctly, and belongs on the same rotation schedule as any other.Authentication and settings
Authentication and settings
service_account_key. Your operator registers the whole JSON key file Google issued, as one string, under the field name serviceAccountKey. The connector signs an assertion with it and exchanges that for an access token that lives for one call.The key file’s own token_uri and universe_domain are ignored: they are customer-supplied, and honouring them would send a signed assertion wherever the file said.endpoint must be empty: the hosts are fixed, so a configured endpoint is refused at creation and again on every call.Health is a token exchange and one account read. It proves the key signed, Google accepted it, the project is visible and the accounts list is permitted; it does not prove the other two permissions.What it does not do
What it does not do
- Inherited policy is not read. Bindings on the folder or organization above the project need organization-level permissions this connector does not ask for. A project that looks clean here may still be reachable through an inherited
roles/owner. - The policy on a service account itself (who may impersonate it) is not read.
- Roles are not expanded into permissions. Effects are set only for the roles whose content Google documents as fixed: owner, editor, viewer, the IAM and project admin roles, the key admin, and the token-creator, service-account-user and workload-identity-user roles. Every other predefined or custom role is stored with no effects, which the console reads as unclassified.
- No last use, for an account or a key. It lives in Policy Intelligence, not in the calls this connector makes.
- Google-managed service agents are not returned by the accounts list; their grants in this project arrive as permissions with no identity to attach to.
- No resources or ownership, and relationships only for Agent Engine. Google states no owner for a service account, and the grants are already in the permission inventory.
- Workload identity federation pools and providers are not read.
GitLab
Discovers the machine identities attached to one GitLab group, its descendant groups and their projects. The scope is the group’s numeric id or its full path.What it collects
What it collects
BELONGS_TO edge to its group or project. A token’s scopes become its grant, capped by its role: Guest and Reporter give read, Developer adds write, Maintainer adds delete, Owner adds admin. So a Reporter’s token with the api scope is read. A token with api at Maintainer or Owner is flagged as enabling privilege escalation, because it can add members and mint new tokens. An unrecognised scope grants no effect and is kept verbatim.Metadata only: name, scopes, role, created, expires, last used, whether it is active, revoked or expired, and a key’s fingerprint. GitLab returns a token’s value only in the response that creates it, and this connector creates nothing.Permissions it needs
Permissions it needs
token and sent as GitLab’s PRIVATE-TOKEN header.- Scope
read_apionly. Notapi, and nothing that writes. - The token’s user must hold Owner on the scoped group. GitLab requires Owner to list a group’s access tokens, deploy tokens and service accounts, and Maintainer for a project’s access tokens and deploy keys; Owner on the group is inherited by every descendant. A lower role reports an authorization failure for the containers it cannot read and the run is partial, never an empty estate.
read_api (no person behind it), then a service account token added to the group as Owner, and only then a person’s personal access token.Authentication and settings
Authentication and settings
token. A personal, group or service-account access token all authenticate the same way.https://gitlab.com. A self-managed instance is customer-named: its host must be allowed by your deployment operator, and one that resolves to a private address is refused, so most internal GitLab instances are out of reach.Health reads the group, then one of its access tokens, the call that needs the most privilege, so a healthy connector will not fail a sync on permissions at the first container.What it does not do
What it does not do
- Members are never read. GitLab’s member list does not say which members are machines, and recognising one by its username is a naming heuristic this product refuses. Bots are reached through the tokens that define them.
- A service account’s own tokens and memberships are not read, so a service account is recorded with no credential and no grant.
- CI/CD variables, runners, pipeline job tokens, OAuth applications and people’s personal access tokens are out of scope.
- No ownership is claimed. GitLab states none for these objects, so whatever an operator assigned in NHI Security stays.
- Projects and groups are not discovered as resources. Grants and edges name them by key, and those keys stay visible as unresolved.
- No grant reports exercise. GitLab says when a token was last used, not which scope it used.
- Unverified until you run it against a real group: that a group access token with Owner and
read_apimay list its own group’s tokens, the behaviour of the access-token endpoints on GitLab.com Free where those tokens are a paid feature, and the service-accounts response shape across versions.
Okta
Discovers the service identities of one Okta Workforce org. The scope is the org’s domain, such asacme.okta.com, and it is the only host the connector talks to.
What it collects
What it collects
client_credentials. No label, app name or token name is read to decide anything.Effects come only from Okta’s own grammar: okta.<resource>.read is read, okta.<resource>.manage is read, write and delete, and a custom authorization server’s scope carries no effect while the action is still recorded. okta.roles.manage is flagged as enabling privilege escalation. Of the admin roles, read-only and report admin are read and every other role is admin; super admin is the only wildcard. Only grants and roles Okta reports as active are recorded, and every permission is org-wide.Permissions it needs
Permissions it needs
- Client authentication: public key / private key. Register the public half and keep the private half for your operator. RSA and P-256 EC keys are supported.
- Turn off “Require Demonstrating Proof of Possession (DPoP) header in token requests”. The connector does not implement DPoP; with it on, every token request is refused.
-
Grant only these Okta API scopes:
- Assign the app the Read-Only Administrator role. Okta requires an admin role in addition to scopes before a service app may call the management APIs.
Authentication and settings
Authentication and settings
okta.com, oktapreview.com and okta-emea.com are built in. A custom domain such as login.acme.com is reachable only once your deployment operator allows its suffix. Okta for Government domains are not in the default list.Health performs one real authenticated call, preceded in OAuth mode by the token exchange, so the client id, the key and the granted scopes are all proven.What it does not do
What it does not do
- No secret value is read. Okta returns a client secret and its hash on the secrets endpoint, and the reader never reads either field. An API token’s value is not returned by Okta at all, and key material is not read.
- No last use. No app, API token or refresh token reports one, and the System Log is not read.
- No access tokens. Okta issues them as self-contained JWTs and lists none, so this connector produces no
oauth_token. - No third parties. Okta does not say who built an app, so an app’s refresh tokens are not linked to anyone outside the organization.
- An API token’s permissions are not collected. A token carries its creator’s admin roles, and reading those is reading a person’s role assignments.
- No users, groups or user-assigned roles. They are people.
- No API Service Integrations, and no relationships, resources or separate ownership stream.
- Unverified until you run it against a real org: that Read-Only Administrator plus those four scopes is sufficient for every call and that nothing narrower is, how the API token list pages, and access to the management API through a custom domain.
Slack
One connector is one of two shapes, chosen by theenterpriseGrid setting before any credential is read, so what it advertises is never a guess about the token.
What it collects
What it collects
BELONGS_TO its workspace, and each org app BELONGS_TO the org. Approval says the org permits the app its scopes; it does not say which workspaces the app is installed in, and the evidence says so.Effects follow Slack’s documented scope grammar: read and history scopes are read, write scopes are write, and the admin family is admin and flagged as enabling privilege escalation. A scope outside the grammar carries no effect: “not classified”, never “harmless”.The admin who last approved or restricted an app becomes an inferred ownership hint: they made a decision about the app, they did not declare themselves accountable for it.Permissions it needs
Permissions it needs
Authentication and settings
Authentication and settings
token. Your operator registers the bot or org admin token under the field name token. It is sent only as an Authorization header, never in a query string, because a URL is logged by every proxy on the way.What it does not do
What it does not do
- No credential metadata at all. Slack exposes nothing about another app’s tokens (no list, no creation date, no last use) so that capability is not advertised.
- No bot users on an Enterprise Grid connector. The member list needs a workspace id per call, so create one workspace connector per workspace.
- No installation per workspace, installer or last use. Slack’s methods do not expose them.
- No channels, messages or files. They are not non-human identities.
- No incoming webhooks, legacy custom bots without an app, or workflow triggers. No method this token may call lists them.
- Rate limits are real. These methods are on a low Slack tier, so a large enumeration can meet throttling; it is retried and a persistent refusal ends the run as rate-limited, never as an empty workspace.
- Unverified until you run it against a real workspace: that every app bot carries its app id, the exact shape of the org app methods on current Slack, and that those two scopes are sufficient.
Snowflake
Discovers the service users of one Snowflake account. The scope is the account identifier, eitherorgname-accountname or a locator with its optional region and cloud.
What it collects
What it collects
TYPE column and nothing else. Last use is reported for every user, so an empty value means never.Privileges map to effects by name: select, usage, references, monitor and read are read; insert, update, truncate, modify and create are write; delete is delete; ownership, all, manage and apply are admin; operate and execute are execute. A privilege outside that list gets no effect and is kept verbatim. MANAGE GRANTS, CREATE USER, CREATE ROLE and ownership of a role or the account flag privilege escalation; ownership of a user flags identity assumption, because the owner can reset that user’s key or password.Permissions it needs
Permissions it needs
ACCOUNTADMIN and no MANAGE GRANTS. Two reads need more than SECURITY_VIEWER, and they are the only reason to widen it:Authentication and settings
Authentication and settings
key_pair. Your operator registers privateKey, a PEM RSA private key whose public half is set on the connector’s Snowflake user, and privateKeyPassphrase if that key is encrypted. The connector signs a short-lived assertion with it.endpoint must be empty. PrivateLink is not supported: a PrivateLink name resolves inside your own network, which the address guard refuses by design.Health runs the first row of the query every sync runs, which proves the key, the role, the warehouse and the account-usage grant together.What it does not do
What it does not do
- A user Snowflake types as a person is never read, even when it is used as a service account. Recognising one would mean reading names. Setting
TYPE = SERVICEon it is the fix, and makes it visible here. - No key or secret material. The public key body that
DESCRIBE USERalso returns is not read, and nothing private is ever requested. - No per-credential last use. Snowflake does not report which key slot authenticated.
- External OAuth, SAML and SCIM integrations are not collected. They are trust in an external identity provider or a provisioning channel, not a client identity.
- No programmatic access tokens, OAuth refresh tokens or integration client secrets. The views this connector reads do not expose them.
- The implicit
PUBLICrole, future grants and database roles are not followed. - Freshness lags by up to about two hours, because the account-usage views do. A user created a minute ago appears on a later sync; one dropped a minute ago still appears until the view catches up.
- No relationships, resources or ownership. The objects a privilege names are in its statement, not resolved to resource keys.
- Unverified until you run it against a real account: that these statements are accepted as written, the minimum privilege for describing another user, and that a result larger than one partition is read correctly.
MCP tool servers
Reads the tools a Model Context Protocol server publishes, and reports the server itself as an identity. It reports no other identities: an MCP server answers whoever authenticates and does not know its callers.What it collects
What it collects
destructiveHint, has effect unknown. An Organization Admin can declare any tool’s effect on its page.Capabilities (enabledCapabilities): identity_discovery, tool_discovery, resource_discovery, relationship_discovery. An MCP connector created before identity_discovery existed reports no server identity until you enable it.What it needs
What it needs
bearer, your operator registers the token under the field name token. The connector only runs the initialize handshake and calls tools/list (plus resources/list and prompts/list when the assessment is on), so a token restricted to listing is enough.What it does not do
What it does not do
- It never calls a tool, and never reads the content of MCP resources or prompts. With the assessment on it lists their names and descriptions only.
- It cannot say which agent uses which tool, or which resource a tool acts on. The protocol carries neither fact.
- It never decides what a tool does from its name or description.