LanguageEnglish
Build →

Learn · QuorumAuth

What is a non-human identity?

A non-human identity (NHI) is any identity that software uses to authenticate and act, such as a service account, a workload, an API key or a bot, rather than a person signing in.

Updated

One nightly job, before and after

Before

  • Reads an API key from an environment variable
  • The key has admin rights
  • Created two years ago
  • Shared with a dashboard

After

  • Runs as its own workload identity
  • Gets a token scoped to reports:read
  • Token expires in fifteen minutes, renewed while running
  • The dashboard has its own identity

In short Nothing is copied into configuration, and logs can name which job acted.

Before: a nightly export job reads an API key from an environment variable; the key has admin rights, was created two years ago, and is also used by a dashboard. After: the job runs as its own workload identity, proves it at start-up, receives a token scoped to reports:read that expires in fifteen minutes and renews while it runs, and the dashboard has its own identity.

Give each job its own identity and a short, narrow token, and nothing secret needs copying into configuration.

Sign-in, MFA and access reviews are designed around people: employees, customers, partners. Yet every microservice, scheduled job, deployment pipeline, monitoring agent, and integration holds a credential of some kind. These are non-human identities, often shortened to NHI, and because nobody signs in with them by hand, misuse of one can go unnoticed for a long time.

Non-human identity examples and types

Type Example Usual credential Typical weakness
Service account billing-exporter in your identity provider API key, password, or key pair Long-lived secret, shared by several jobs
Workload identity A pod named spiffe://example.org/payments/api Short-lived certificate or JWT Coarse registrations
OAuth client A backend calling a partner API Client secret or signed client assertion Secret checked into code
CI/CD credential A pipeline that deploys to production Token stored in the CI system Broad deploy rights, rarely rotated
Bot or agent An automation that files tickets or calls APIs Personal token borrowed from a person Acts as a person, with all their rights

The distinction from human identity matters because the controls differ. A person can answer a passkey prompt. A cron job cannot. Non-human identities have to prove themselves with something the platform can verify automatically. How machines authenticate to each other compares the methods they use.

Non-human identity vs workload identity

The two terms are often used together, but they are not the same thing. Non-human identity is the whole category: anything that authenticates without a person, including a static API key pasted into a script. Workload identity is one kind of NHI, and the strongest: an identity the platform issues to a running workload after checking facts about where it runs.

Non-human identity Workload identity
Covers Every software identity: service accounts, API keys, OAuth clients, CI/CD credentials, bots Running workloads, such as pods, functions and virtual machines
Usual credential Anything, often a long-lived secret A short-lived certificate or JWT
How it is proven Whatever secret the software holds Attestation: what the platform can verify about the workload
Standard None as a category For example SPIFFE

Moving each NHI toward workload identity, wherever the platform allows it, is the most direct way to stop storing secrets in configuration.

Why NHIs are hard to govern

  • Volume. Teams create service accounts faster than anyone reviews them.
  • No owner. The engineer who created an account moves on; the account stays.
  • Static secrets. API keys and passwords last until someone rotates them, which often means never.
  • Over-permission. It is easier to grant an admin role once than to work out the minimum a job needs.
  • Invisible use. When five services share one key, logs cannot say which one acted.

How to secure non-human identities

A sound programme moves each NHI toward four properties.

  1. Inventory and ownership. Every account has a named owner and a reason to exist. Unused accounts are revoked.
  2. Secretless or key-bound authentication. Prefer workload identity issued by attestation. Where a credential must exist, prefer a key pair the workload generates over a shared secret, and authenticate with a signed JWT client assertion.
  3. Short-lived, scoped tokens. The long-lived thing, if any, is only used to obtain a token that lasts minutes and carries just the scopes needed.
  4. Fast revocation. Revoking an account, rotating its key, or removing its role should end what it already holds, not just stop new sign-ins.

Applied to delegation, the fourth property means a compromise is contained to one grant: you revoke that delegation without touching unrelated authority.

For automation acting on behalf of a person, use delegated authorization: the token should name the person as subject and the automation as actor, with scopes narrowed to the task. Token exchange is the standard way to obtain one.

A before-and-after example

Before: a nightly export job reads EXPORT_API_KEY from an environment variable. The key has admin rights, was created two years ago, and is also used by a dashboard.

After: the job runs as its own workload identity. At start-up it proves that identity, receives a token scoped to reports:read that expires in fifteen minutes, and renews it while it runs. Nothing is copied into configuration, and the dashboard has its own identity.

Common pitfalls

  • Inventory without action. Listing every service account is useful only if stale ones get revoked.
  • Rotation that does not revoke. Issuing a new key while the old one keeps working doubles the attack surface.
  • Personal tokens in automation. A bot using a person’s personal token inherits everything that person can do and confuses the audit trail.
  • Revocation that waits for expiry. If revoking an account leaves its issued tokens valid for hours, revocation is a suggestion.

How QuorumAuth handles non-human identities

QuorumAuth treats service accounts and workloads as first-class principals. In its tested behaviour:

  • Administrators create, list, and revoke service accounts per organization. Listings never expose secrets, and another organization’s accounts are out of reach.
  • A service account can register a public key its workload generated, and sign in with a fresh assertion signed by that key. What it receives is bounded by its role in its own organization, not by what the assertion asks for. A spent assertion cannot be used again, and an unregistered key is refused.
  • On the enterprise tier, a service account can instead enroll an external OIDC identity, such as a Kubernetes cluster’s issuer and a workload’s subject, and hold no key: its workload signs in with a token from that issuer, and each token works once.
  • API keys are returned once at creation. Rotating a key revokes the previous credential.
  • Revoking a service account, replacing its key, or unbinding its role ends what it already earned, including the sessions it signed in to.
  • Workloads on Kubernetes get identities by attestation of their projected service account token; a token stolen from another pod is refused.
  • When a service acts on behalf of a caller, the delegated token stays bound to one audience and cannot gain scope the subject does not hold. A token nobody delegated verifies with no actor named.

Together, these let you replace long-lived API keys with credentials you scope, rotate and revoke. For the step-by-step version, see running service accounts without a stored API key and revoking a token before it expires.

What counts as a non-human identity?

Service accounts, workload identities, API keys, OAuth clients, CI/CD credentials, bots, and automated agents. Anything that authenticates without a person completing a sign-in.

Why are non-human identities a security risk?

They can be created faster than anyone reviews them, hold broad permissions, use long-lived secrets, and have no owner who notices when they are misused.

Is an AI agent a non-human identity?

When it calls systems with its own credential, yes. When it acts on behalf of a person, it should carry a delegated token that names both the person and the agent.

Can multi-factor authentication (MFA) protect a service account?

Not in the human sense. The equivalent controls are key-bound credentials, short lifetimes, attestation, and narrow scopes.

Talk to sales about QuorumAuth.

QuorumAuth is sold through our sales team. The Build page shows the drop-in sign-in on your origin and how to reach sales about your stack.

Go to Build and contact sales →