Endpoint-based signing keeps private keys on the user device and depends on that device remaining trustworthy. Server-side signing keeps keys in centralized, protected infrastructure and treats signing as a controlled service. The practical difference is that server-side signing supports stronger verification, logging, and revocation, which aligns better with Zero Trust.
Why This Matters for Security Teams
Endpoint-based signing and server-side signing solve the same problem in very different trust models. Endpoint-based signing assumes the device can safely hold the private key and remain trustworthy through the full signing lifecycle. Server-side signing moves that trust boundary into managed infrastructure, where policy, auditability, and revocation are easier to enforce. That difference matters because signing is not just a cryptographic operation, it is a control point for identity, authorization, and non-repudiation.
For NHI programs, the issue is especially visible when signing keys are tied to workloads, APIs, CI/CD runners, or developer tooling. NHIMG research shows that long-lived secrets and exposed tokens are a recurring failure mode, with Ultimate Guide to NHIs — What are Non-Human Identities highlighting how widespread NHI sprawl and weak rotation practices can be. NIST control guidance also treats cryptographic key protection as a core security requirement in NIST SP 800-53 Rev 5 Security and Privacy Controls.
In practice, many security teams discover the difference only after a signing key is copied off-device, reused beyond its intended scope, or exposed through a compromised endpoint rather than through deliberate trust design.
How It Works in Practice
Endpoint-based signing places the private key on the user device or within a local agent, then relies on the endpoint’s integrity to protect the signing action. This can be workable when the device is highly managed, the signing volume is low, and the trust domain is narrow. But the model inherits endpoint risk: malware, local privilege escalation, token export, and offline replay all become relevant. For human workflows, that sometimes aligns with user convenience. For NHI workflows, it often does not.
Server-side signing centralizes keys in a protected service such as an HSM-backed signing API, a secrets platform, or a managed workload identity boundary. The signer requests a signature over a narrowly scoped payload, and the service enforces policy at request time. That makes it easier to log every signing event, apply approval gates, revoke access quickly, and separate authentication from cryptographic key custody. In NHI environments, this pattern is usually stronger when paired with workload identity and short-lived credentials rather than static API keys.
- Endpoint-based signing is best when the device is trusted enough to hold the key and the operational footprint is limited.
- Server-side signing is better when revocation speed, centralized audit, and policy enforcement matter more than local autonomy.
- Short-lived credentials reduce the blast radius if a signer or client is compromised.
- Role assignments alone are often too coarse for signing workflows that should be context-aware.
For implementation planning, teams should map signing requests to the identity of the workload, the specific operation being approved, and the runtime context. Controls described in CISA Zero Trust Maturity Model and the NHI lifecycle guidance in Ultimate Guide to NHIs — What are Non-Human Identities both point toward reducing standing trust and improving traceability. These controls tend to break down when signing must occur on unmanaged endpoints or in disconnected environments because key custody and revocation become difficult to enforce consistently.
Common Variations and Edge Cases
Tighter server-side signing often increases operational overhead, so organisations have to balance stronger control against latency, dependency, and service availability. That tradeoff is especially real in developer tooling, edge deployments, and air-gapped environments where local signing may be the only practical option.
There is no universal standard for this yet, but current guidance suggests treating endpoint-based signing as acceptable only when endpoint assurance is high and key exposure risk is low. Server-side signing is usually the better default for high-value NHI use cases, such as code signing, release approvals, certificate issuance, and API request signing. If the signer is an AI agent or automated workflow, the preference for server-side control becomes stronger because autonomous systems can chain actions faster than human operators can detect misuse. For that reason, signing decisions should not depend on static RBAC alone; they should also consider context, runtime policy, and the specific action being attempted.
Where teams get into trouble is assuming the device boundary is the security boundary. Once a private key leaves a hardened service and lands on a workstation, container, or CI runner, the control posture changes immediately. NHIMG has repeatedly shown how exposed credentials and plugin-driven theft can become an enterprise-wide issue, including in JetBrains GitHub plugin token exposure and Hard-Coded Secrets in VSCode Extensions. The practical rule is simple: if the key must survive on the endpoint, the endpoint becomes part of the attack surface.
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, OWASP Agentic AI Top 10 and CSA MAESTRO address the attack and risk surface, while NIST AI RMF and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-03 | Key rotation and exposure risk are central to signing model choice. |
| OWASP Agentic AI Top 10 | A2 | Autonomous signers need runtime controls, not static trust assumptions. |
| CSA MAESTRO | ID-02 | Workload identity and key custody are core to agent and workload signing. |
| NIST AI RMF | Risk governance applies when choosing between endpoint and server trust models. | |
| NIST Zero Trust (SP 800-207) | PR.AC | Zero Trust favors minimizing endpoint trust and enforcing policy at the service boundary. |
Prefer short-lived, centrally managed signing keys and rotate any endpoint-held keys aggressively.
Related resources from NHI Mgmt Group
- What is the difference between a rules-based secret scanner and a hybrid scanner?
- What is the difference between privilege reduction and secret rotation?
- What is the difference between code scanning and runtime identity monitoring?
- What is the difference between zero trust for users and zero trust for NHIs?