User Identities
Machine Identities
Access Control
Calculating identity counts
Understanding how to calculate your identity requirements helps with capacity planning and licensing.User identities
User identity count is straightforward—it equals the number of human users who need access to Infisical. This includes developers, DevOps/platform engineers, security administrators, and any other team members requiring direct Infisical access. An agent operated one-to-one by a person, such as a local coding assistant, authenticates as that person and doesn’t add to your identity count. See AI agent identities for the full breakdown.Machine identities
If you’re familiar with cloud provider IAM concepts, Infisical machine identities work the same way:How to calculate machine identities
Consider these factors when determining your machine identity count:Examples
Example 1: Multiple VMs with identical access
Example 1: Multiple VMs with identical access
prod/database/*.Machine identities needed: 1All VMs share the same permission requirements, so they authenticate using a single machine identity. This is equivalent to having 10 EC2 instances assume the same IAM role.Example 2: Separate environments
Example 2: Separate environments
- 1 identity for staging servers → access to
staging/* - 1 identity for production servers → access to
prod/*
Example 3: CI/CD pipelines with different scopes
Example 3: CI/CD pipelines with different scopes
- Build pipelines that need read access to artifact registry credentials
- Deployment pipelines that need read access to cloud provider secrets and database URLs
- Security scanning pipelines that need access to scanning tool API keys
Example 4: Multi-cloud authentication
Example 4: Multi-cloud authentication
Example 5: Microservices architecture
Example 5: Microservices architecture
- 10 services need access only to shared infrastructure secrets (Redis, message queue)
- 3 services need access to payment processing secrets
- 2 services need access to third-party integration API keys
AI agent identities
Agents follow the same rule as any other workload: identities are permission-based, not process-based. What decides whether an agent consumes a machine identity is how it authenticates, not that it’s an agent or where it runs.Scoping agent identities
For agents that authenticate as themselves, scope identities by purpose and permission set, not by agent instance, run, container, or VM.Example 6: Local coding agents
Example 6: Local coding agents
infisical secrets agent-proxy run.Machine identities needed: 0Each run authenticates as the engineer who started it, so the access is already accounted for by their 40 user identities. A machine identity isn’t required here. If you later decide a particular agent should run under its own scoped identity, that identity counts, even though the agent still runs locally.Example 7: Standalone agents with different purposes
Example 7: Standalone agents with different purposes
- A recruitment agent scoped to ATS and calendar access
- An engineering agent scoped to CI and observability access
Example 8: Horizontally scaled agent workers
Example 8: Horizontally scaled agent workers
Example 9: Remote agents behind a Standalone Agent Proxy
Example 9: Remote agents behind a Standalone Agent Proxy
Best practices
While consolidating machine identities reduces management overhead, more granular identities provide stronger security through least-privilege access and reduced blast radius. The right balance depends on your security requirements.When to use separate identities
Create distinct machine identities to enforce security boundaries between:When consolidation is acceptable
Sharing a machine identity across workloads is appropriate when:- Replicas of the same application — Multiple pods/instances running identical code with identical secret needs
- Stateless workers — Horizontally scaled workers performing the same job
- Tightly coupled services — Services that are deployed together and share a security boundary
Kubernetes best practices
For Kubernetes environments, we recommend mapping machine identities at the namespace level:One identity per namespace
Leverage Kubernetes Auth
Scope Agent Injector or Operator access
Example: Multi-tenant Kubernetes cluster
Example: Multi-tenant Kubernetes cluster
team-payments— handles payment processingteam-platform— runs shared infrastructure (API gateway, service mesh)team-analytics— runs data pipelines
team-analytics can’t access payment processing credentials, even if an attacker gains cluster-level access.Quick assessment questions
When planning your machine identity strategy, consider:- What’s the blast radius? If this identity is compromised, what secrets are exposed? Design boundaries to limit damage.
- Are these workloads in the same trust boundary? Applications that shouldn’t access each other’s data need separate identities.
- What are your compliance requirements? Regulated workloads may require documented isolation from non-regulated systems.
- What’s your authentication topology? A single identity can authenticate from multiple sources (Kubernetes + AWS IAM + GCP), so multi-cloud doesn’t necessarily mean multiple identities—but multi-tenant does.
- How does this agent authenticate? An agent that authenticates as a person inherits that person’s permissions, while an agent that authenticates as itself needs its own identity scoped to its purpose.