A managed service bundles the operational layer around the open source core, including maintenance, updates, monitoring, support, and some compliance features. Self-hosting uses the same foundational components but leaves deployment, scaling, recovery, and ongoing security work to the operator. The distinction is really between consuming identity as a service and operating it as infrastructure.
Why This Matters for Security Teams
A managed identity service changes the operating model as much as the technology. Teams are not just choosing software, they are choosing who owns patching, availability, scaling, audit support, and the day-to-day burden of keeping identities, keys, and access paths healthy. That matters because identity failures usually surface as security failures, not just reliability problems, especially when credentials are long-lived or embedded in automation. The operational difference is visible in both governance and blast radius. For teams comparing managed and self-hosted options, the key question is whether they want a service boundary with a vendor-operated control plane or a platform they must secure end to end. Open source components may be the same at the core, but the surrounding obligations are not. When the operational layer is externalised, some risk shifts to the provider; when it is self-hosted, the organisation inherits more direct control over configuration, monitoring, upgrades, and incident response. In practice, many security teams discover the real cost of self-hosting only after a rotation gap, outage, or privilege review exposes how much upkeep was implicit.How It Works in Practice
A managed service typically wraps the open source core in a set of operational guarantees. That usually includes automated upgrades, availability engineering, backup and recovery, monitoring, support, and at least some compliance artefacts. The operator still has responsibilities, but they are narrower and often focused on configuration, policy, and usage governance rather than platform maintenance. Self-hosting keeps those same building blocks but transfers the full lifecycle to the organisation. That means the team must design deployment patterns, choose how to scale, define upgrade cadence, monitor health, recover from failure, and verify that access controls stay correct over time. The open source code may be identical, but the security posture depends on the implementation discipline around it. Common practical differences include:- Maintenance, where managed services reduce patching and version drift.
- Resilience, where self-hosting can offer more control but also more failure points.
- Compliance, where managed offerings may provide clearer attestations or logs.
- Customisation, where self-hosting often allows deeper tailoring of policy and topology.
- Incident handling, where managed services usually simplify vendor escalation while self-hosting requires internal response ownership.
Common Variations and Edge Cases
Tighter control often increases operational overhead, so teams have to balance autonomy against the cost of keeping the service consistently healthy. That trade-off becomes more visible when the identity system sits on a critical path for application delivery, infrastructure automation, or partner access. Some environments make managed services harder to adopt. Data residency requirements, network isolation, legacy integration, or highly customised policy logic can push teams toward self-hosting. Other environments favour managed delivery because the identity layer is not the competitive differentiator and the real priority is dependable availability with lower administrative burden. Current guidance generally favours managed services when the team lacks strong platform operations depth, and self-hosting when there is a clear need for bespoke control or constrained deployment boundaries. Edge cases often involve hybrid arrangements. An organisation may self-host the control plane but outsource monitoring or support, or use a managed platform while retaining its own key management and policy enforcement. That can work, but only if ownership boundaries are explicit. If nobody can say who patches what, who rotates what, and who responds when the control plane degrades, the model is already fragile. A second edge case is migration: teams often underestimate how much historical access state, logging, and recovery logic must move cleanly when shifting from self-hosted to managed. NIST Cybersecurity Framework 2.0 helps structure that decision across govern, identify, protect, detect, respond, and recover. Ultimate Guide to NHIs is also a useful reference when the identities being managed are service accounts, API keys, or other non-human identities.Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0 and CIS Controls v8 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST CSF 2.0 | GV — Govern | Managed vs self-hosted changes ownership and oversight obligations. |
| PR.AC — Access Control | Both models must enforce and review access paths around identities and secrets. | |
| RC — Recover | Self-hosting especially depends on tested recovery for outages and drift. | |
| Recommendation — Define ownership, risk acceptance, and provider accountability for the identity platform. Apply least privilege and periodic access review across the identity service boundary. Test restore, failover, and recovery procedures for the identity platform. | ||
| CIS Controls v8 | 5 — Account Management | The comparison centers on lifecycle ownership for accounts and access paths. |
| 16 — Application Software Security | Open source components need secure update and dependency handling in either model. | |
| Recommendation — Track and revoke accounts, keys, and access paths under a documented owner. Harden dependency updates and validate releases before promoting them to production. | ||
| OWASP Non-Human Identity Top 10 | NHI-01 — Secrets and Credential Management | Identity services often manage service credentials, keys, and tokens. |
| NHI-06 — Lifecycle Governance | Managed versus self-hosted changes who provisions, rotates, and offboards identities. | |
| NHI-09 — Third-Party Exposure | Managed services shift part of the trust boundary to the provider. | |
| Recommendation — Rotate and inventory credentials used by automated and non-human identities. Assign lifecycle owners for provisioning, rotation, and offboarding of identities. Assess provider access, logging, and support boundaries before outsourcing operations. | ||
Practitioner Guidance
What to prioritise: Decide first whether your main constraint is operational burden or control boundary. If the answer is resilience and speed of maintenance, managed service is usually the cleaner fit. If the answer is topology, bespoke policy, or strict internal control, self-hosting may be justified.
What to verify: Before trusting a managed option, verify what the provider actually owns for updates, backups, audit evidence, incident response, and data retention. Before trusting self-hosting, verify that your team can sustain patching, monitoring, recovery testing, and access review at production cadence.
Decision rule: If the platform will hold long-lived credentials, support production automation, or sit on a critical authentication path, do not treat self-hosting as a low-effort default. The operating model must be strong enough to keep the service observable and recoverable under failure.
Practitioner takeaway: The right choice is rarely about the open source core itself, it is about who can reliably carry the operational and security obligations that sit around it.
Related resources from NHI Mgmt Group
- What is the difference between self-hosting an OAuth provider and using a managed identity platform?
- What is the difference between patching a vulnerability and reducing identity blast radius?
- What is the difference between self-sovereign identity and traditional centrally managed identity?
- What is the difference between open source identity infrastructure and enterprise release support for production IAM?
Deepen Your Knowledge
Reviewed and updated by the NHIMG editorial team on September 16, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org