Start by separating infrastructure credentials from customer data. Use a secrets manager for API keys, database passwords, certificates, and other operational secrets. Use an encryption service when each tenant, user, or organization needs cryptographic isolation, customer-controlled keys, or a clear right-to-erasure path. If the same system must support both, evaluate whether it centralizes credentials without collapsing tenant boundaries.
Why This Matters for Security Teams
The decision is not just about where a value is stored. In a SaaS application, secrets managers and encryption services solve different problems: one protects operational credentials, while the other protects customer data with cryptographic separation. When teams blur that line, they often create tenant leakage, brittle key handling, or a false sense of compliance that collapses under incident response or legal deletion requests.
This distinction shows up repeatedly in real-world NHI and secret-sprawl failures. NHIMG’s Guide to the Secret Sprawl Challenge and the Top 10 NHI Issues both point to the same operational pattern: once credentials and data protection are mixed, revocation, auditability, and tenant isolation become harder to prove. NIST’s Cybersecurity Framework 2.0 reinforces that protection mechanisms should match the asset and the threat model, not just the storage location.
In practice, many security teams discover the gap only after a support escalation, a failed data deletion request, or a leaked operational secret has already affected customer data boundaries.
How It Works in Practice
Choose a secrets manager when the asset is an operational credential: API keys, database passwords, service account tokens, signing certificates, or CI/CD credentials. The goal is centralised control, rotation, access logging, and revocation. A secrets manager is strongest when the same credential is reused by infrastructure components that need controlled access but do not require tenant-specific cryptographic separation.
Choose an encryption service when the asset is customer data and the security requirement is cryptographic isolation. That can mean per-tenant keys, per-record envelope encryption, customer-managed keys, or a clear deletion workflow that renders data irrecoverable by destroying or disabling the relevant key material. This is where the architectural question changes: the service is no longer merely safeguarding a password, it is enforcing data boundary policy.
In a SaaS design, the practical test is whether the control must answer “who can retrieve this credential?” or “who can decrypt this customer’s data?” Those are different control planes. OWASP’s Non-Human Identity Top 10 is useful here because credential handling failures are often the first step in broader compromise, while the NHIMG Ultimate Guide to NHIs — Lifecycle Processes for Managing NHIs shows why lifecycle discipline matters for machine credentials that support the platform itself.
- Use the secrets manager for platform trust material and operational automation.
- Use encryption services for tenant-scoped confidentiality and data deletion requirements.
- Separate key hierarchy from app secrets so revocation does not break unrelated services.
- Make rotation and access review part of the operational path, not an exception process.
Current guidance suggests that teams should document the trust boundary for every value before choosing the control, because “stored securely” is not the same as “isolated correctly.” These controls tend to break down in multi-tenant systems that reuse a single master key or shared application secret across customer boundaries, because one compromise can affect every tenant.
Common Variations and Edge Cases
Tighter tenant-level encryption often increases operational complexity, requiring organisations to balance stronger isolation against key management overhead, performance impact, and recovery risk. That tradeoff becomes visible in regulated SaaS, hybrid deployment models, and high-churn environments where customers expect both portability and rapid access.
There is no universal standard for this yet, but best practice is evolving toward layered use: secrets managers for workload credentials, encryption services for data protection, and policy controls for who may use either at runtime. For example, customer-managed keys can improve separation, but they also create support obligations when a tenant disables a key or demands erasure. Conversely, a central secrets vault can simplify operations, but it does not by itself create tenant isolation for stored records.
Edge cases usually appear when one system serves both infrastructure and customer data. Backup tooling, analytics pipelines, and export jobs may need access to decrypted data without ever seeing the long-term keys directly. NHIMG’s Palo Alto Networks Key Breach is a reminder that key exposure can turn an administrative control into a customer-impacting event. In those environments, the safer pattern is short-lived access, strict scoping, and explicit separation between secret retrieval and data decryption.
When legal hold, backups, or cross-region replication prevent immediate deletion, encryption service decisions should be treated as a data-retention design issue, not just a security preference.
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 and CSA MAESTRO address the attack and risk surface, while NIST CSF 2.0, NIST Zero Trust (SP 800-207) and NIST AI RMF set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-03 | Covers secret rotation and lifecycle discipline for workload credentials. |
| NIST CSF 2.0 | PR.AC-1 | Access control applies to who can retrieve secrets or use tenant keys. |
| NIST Zero Trust (SP 800-207) | SC-7 | Tenant boundary enforcement aligns with zero trust segmentation principles. |
| NIST AI RMF | Risk governance is needed when automation handles keys and customer data. | |
| CSA MAESTRO | A1 | Agentic and cloud workload governance requires clear separation of secrets and data controls. |
Classify operational credentials, rotate them on schedule, and revoke them when the workload changes.
Related resources from NHI Mgmt Group
- How should security teams choose between CASB and DLP for SaaS data security?
- How should security teams choose between proxy-based SSE and data-layer controls for SaaS and AI risk?
- How should security teams choose between secrets management and access mediation?
- How should security teams choose between DSPM and backup for data protection?
Deepen Your Knowledge
Reviewed and updated by the NHIMG editorial team on August 24, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org