Skip to content

feat(fips): SSH transport crypto through system OpenSSL #6227

Backlog

Description

@akram

Part of the FIPS 140-3 umbrella (#6224).

Context

The supervisor exposes an SSH server and the gateway runs an SSH client, both on russh. Around it, ssh-key parses the key formats, ssh-cipher provides the transport ciphers and MACs, and the post-quantum hybrid KEX (mlkem768x25519-sha256) goes through ml-kem. All of it runs on RustCrypto implementations today.

Problem

The SSH stack is where the crypto sits deepest: cipher modes, KDFs, key formats and signature schemes are hardwired to RustCrypto crates throughout russh and its satellite crates. There is no feature-level switch, and the depth of the change makes a short-term upstream merge unrealistic.

Proposed approach

Maintained forks carrying an optional OpenSSL backend, pinned through [patch.crates-io] in the OpenShell workspace:

On the OpenShell side, the SSH algorithm negotiation is pinned to explicit Preferred lists, identical on the server and client, restricted to the algorithms available on both backends with a defensible FIPS posture. A few documented deviations remain and are tracked separately.

Current state

All three forks are public and validated: full test matrices on both backends, plus an end-to-end gateway build in FIPS mode linking the system libcrypto. The OpenShell wiring lives on the feasibility branch (feat/openssl-fips-cargo-wiring). These forks are intended to be maintained rather than upstreamed; the pin set is the deliverable.

Activity

  1. added
    state:triage-needed
    on Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    state:triage-needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions