Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Update overview.mdx

ArshBallagan7d384b6b9cf6
diff --git a/docs/documentation/platform/identities/overview.mdx b/docs/documentation/platform/identities/overview.mdx
index 18be07a7ed..f43a18616c 100644
--- a/docs/documentation/platform/identities/overview.mdx
+++ b/docs/documentation/platform/identities/overview.mdx
@@ -115,16 +115,78 @@ Consider these factors when determining your machine identity count:
Group services by their secret access requirements, not by the number of service instances or replicas.
</Accordion>
-#### Quick Assessment Questions
+## Best Practices
-When planning your machine identity requirements, ask:
+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.
-1. **What distinct secret access patterns exist?** Group workloads by the secrets they need, not by their deployment location or replica count.
+### When to Use Separate Identities
-2. **Which workloads can share permissions?** Workloads accessing identical secrets with identical permissions should use the same identity—just as you'd assign the same IAM role to resources with identical access needs.
+Create distinct machine identities to enforce security boundaries between:
-3. **What's my authentication topology?** A single identity can authenticate from multiple sources simultaneously (Kubernetes + AWS IAM + GCP + Azure), so multi-cloud deployments don't necessarily mean multiple identities.
+| Boundary | Why Separate? |
+|----------|---------------|
+| **Different applications** | Prevents one compromised app from accessing another app's secrets |
+| **Security tiers** | Payment processing, PII handling, and general app secrets should be isolated |
+| **Trust levels** | Internal tools vs. customer-facing services vs. third-party integrations |
+| **Compliance scopes** | SOC 2, PCI-DSS, or HIPAA-regulated workloads may require isolation |
+
+<Warning>
+ **Blast radius consideration**: If a machine identity is compromised, an attacker gains access to everything that identity can access. Design your identity boundaries around "what's the worst case if this credential leaks?"
+</Warning>
+
+### 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**:
+
+<Steps>
+ <Step title="One identity per namespace">
+ Create a machine identity for each Kubernetes namespace that needs secrets. This aligns with Kubernetes' native isolation model and simplifies RBAC management.
+ </Step>
+ <Step title="Leverage Kubernetes Auth">
+ Use [Kubernetes Auth](/documentation/platform/identities/kubernetes-auth) to bind machine identities to specific ServiceAccounts and namespaces. This ensures only pods in the authorized namespace can authenticate.
+ </Step>
+ <Step title="Scope Agent Injector or Operator access">
+ When using the [Infisical Agent Injector](/integrations/platforms/kubernetes/infisical-agent-injector) or [Operator](/integrations/platforms/kubernetes/infisical-operator), configure namespace-scoped access rather than cluster-wide permissions.
+ </Step>
+</Steps>
+
+<Accordion title="Example: Multi-tenant Kubernetes cluster">
+ **Scenario**: You have a shared Kubernetes cluster with three teams, each with their own namespace:
+ - `team-payments` — handles payment processing
+ - `team-platform` — runs shared infrastructure (API gateway, service mesh)
+ - `team-analytics` — runs data pipelines
+
+ **Recommended approach**: **3 machine identities**
+
+ | Identity | Namespace | Access |
+ |----------|-----------|--------|
+ | `k8s-payments` | `team-payments` | Payment secrets only |
+ | `k8s-platform` | `team-platform` | Infrastructure secrets only |
+ | `k8s-analytics` | `team-analytics` | Analytics pipeline secrets only |
+
+ This ensures that a compromised pod in `team-analytics` cannot access payment processing credentials, even if an attacker gains cluster-level access.
+</Accordion>
+
+### Quick Assessment Questions
+
+When planning your machine identity strategy, consider:
+
+1. **What's the blast radius?** If this identity is compromised, what secrets are exposed? Design boundaries to limit damage.
+
+2. **Are these workloads in the same trust boundary?** Applications that shouldn't access each other's data need separate identities.
+
+3. **What are your compliance requirements?** Regulated workloads may require documented isolation from non-regulated systems.
+
+4. **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.
<Note>
- **Best practice**: Start with fewer, broader identities and create additional identities only when you need to enforce distinct access boundaries. This simplifies management while maintaining security through least-privilege principles within each identity's scope.
+ **Bottom line**: When in doubt, err on the side of more identities. The operational overhead of additional identities is minimal compared to the security benefits of proper isolation.
</Note>
\ No newline at end of file