Join our Newsletter — 33% off our NHI Course
Home FAQ Governance, Ownership & Risk What is the difference between strong SSH key…
Governance, Ownership & Risk

What is the difference between strong SSH key policy and platform-generated SSH keys for developer access?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated September 9, 2026 Domain: Governance, Ownership & Risk

Strong SSH key policy depends on users creating acceptable keys and following platform rules, while platform-generated SSH keys shift the trust decision to the service provider. That matters because the provider can enforce secure generation consistently, reduce weak-key acceptance, and remove reliance on user judgment. In environments where repository access is high impact, platform control is a stronger security boundary.

Why Platform-Generated SSH Keys Change the Trust Model

The key difference is not just who creates the key pair, but who controls the conditions under which it can exist. With a strong ssh key policy, the organisation tries to constrain user-generated keys through rules, review, and enforcement at the edge. With platform-generated SSH keys, the platform becomes the source of truth for generation quality, approval path, and often the initial trust anchor. That reduces dependence on developer discretion and makes enforcement more uniform across teams and repositories.

This matters because SSH access is often used for high-trust developer workflows, where a weak or poorly governed key can become a durable access path. Platform control can also make revocation, inventory, and attribution easier when the system records issuance centrally rather than allowing ad hoc key submission. The tradeoff is that the platform now carries more responsibility for secure generation, key lifecycle management, and operational availability.

In practice, many access failures are discovered only after keys have already been reused, copied, or left active longer than intended.

How It Works in Practice

A strong SSH key policy usually starts with rules about acceptable algorithms, minimum key strength, approved storage, and who may add or replace a key. The organisation may validate fingerprints, require change approval, or disable certain formats, but the user still supplies the material that becomes the credential. That means the policy can reduce weak choices, yet it cannot fully eliminate bad handling upstream.

Platform-generated SSH keys move the generation step into a controlled service. In that model, the platform can create keys with approved parameters, bind them to a specific account or workflow, and record issuance centrally. This is especially useful when access must be short-lived, attributable, or tied to a managed developer environment rather than a personal workstation. It also helps when teams want consistent controls across many repositories or ephemeral access paths. NHIMG research on Ultimate Guide to NHIs shows how often long-lived credentials and limited lifecycle visibility create avoidable exposure.

  • Policy-based models depend on user compliance, so they work best when the population is small and the control can be reviewed quickly.
  • Platform-generated models work best when issuance, rotation, and revocation need to be centrally auditable.
  • Neither model is complete without downstream controls on repository scope, session duration, and emergency revocation.

The distinction also affects incident response. If a key is platform-issued, teams can often trace where it was created, when it was last used, and whether it was regenerated or disabled. If keys are user-supplied, that visibility is usually thinner and the organisation must trust that the original key material was created and stored safely. The guidance in the OWASP Non-Human Identity Top 10 is relevant here because lifecycle control and credential governance are central to reducing machine-access exposure.

These controls tend to break down in hybrid developer estates where local keys, CI runners, and inherited repository permissions all coexist without a single issuance authority.

Common Variations and Edge Cases

Tighter SSH control often increases operational friction, so organisations have to balance convenience against the risk of uncontrolled key sprawl. In smaller teams, a well-run strong key policy may be sufficient if there is disciplined review and fast revocation. In larger or more regulated environments, platform-generated keys are usually more defensible because they remove variation in key quality and reduce reliance on individual judgement.

There is no universal standard for this yet, but the practical question is whether the access path can be made attributable, short-lived, and revocable without depending on the developer to do the right thing every time. If the answer is no, platform generation is usually the better boundary. If the platform cannot prove issuance, rotation, and disablement in a timely way, then it may only relocate the trust problem rather than solve it.

Risk and Threat Considerations

SSH key governance creates access persistence risk when keys are long-lived, broadly reusable, or accepted without strong provenance. The threat is not limited to initial compromise; once an attacker obtains a key, it can often be used quietly for remote access, lateral movement, or repeated repository access until the key is discovered and revoked.

Failure mechanism: User-generated keys can enter the environment with weak protection, poor custody, or inconsistent review, while platform-generated keys can still become risky if issuance is not tied to revocation, scope limits, and usage monitoring. The core failure is trust without lifecycle control.

Impact: Compromised developer access can expose source code, secrets in build systems, signing workflows, or infrastructure changes, and it can also create durable access that survives ordinary password resets and account hygiene.

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 MITRE ATT&CK address the attack and risk surface, while CIS Controls v8 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-01 — Secrets and Credential ManagementSSH keys are machine credentials requiring lifecycle governance.
Recommendation — Centralise SSH key issuance and revoke unmanaged keys quickly.
CIS Controls v85 — Account ManagementDeveloper SSH access depends on controlled account and key handling.
6 — Access Control ManagementPlatform-generated keys improve enforcement of approved access scope.
Recommendation — Track and remove stale SSH access paths tied to developer accounts. Restrict SSH access to approved systems and least-privilege roles.
NIST CSF 2.0PR.AA — Identity Management, Authentication, and Access ControlSSH key choice changes how access is authenticated and governed.
Recommendation — Apply stronger identity and access controls to developer SSH credentials.
MITRE ATT&CKT1098 — Account ManipulationUnauthorized key insertion or persistence can extend developer access.
Recommendation — Monitor for unauthorized key additions that preserve attacker access.

Practitioner Guidance

What to prioritise: Decide whether the real control objective is key strength or access governance. If the concern is preventing weak or unmanaged developer credentials from becoming durable access, prioritise central issuance, scoped approval, and fast disablement over policy wording alone.

What to verify: Confirm that every key path has an owner, an issuance record, a revocation path, and a usage log. If any of those are missing, the environment still depends on trust in user behaviour rather than trust in the platform.

Practitioner takeaway: The strongest model is the one that can prove who issued the key, where it is allowed to work, and how quickly it can be withdrawn when the trust assumption changes.

Deepen Your Knowledge

Sign up to our weekly newsletter — get 33% off our NHI Foundation Level Course

    NHIMG Editorial Note
    Reviewed and updated by the NHIMG editorial team on September 9, 2026.
    NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org