Skip to content

test(e2e): check that a sandbox's SSH host key survives a gateway restart #5652

Open

Description

@matthewgrossman

Problem

PR #5442 ports e2e/rust/tests/ssh_host_identity.rs to the conformance suite and deletes it. The legacy test also checked that a sandbox's SSH host key survives a gateway restart. The conformance port can't, because testkit can't restart the gateway yet. That half of the test is dropped until the gateway-control family exists (#5281).

The legacy check ran only when the harness managed the gateway (ManagedGateway::from_env()); against an existing gateway it was skipped.

What to port

With a sandbox that has a pinned known_hosts entry from sandbox ssh-config:

  1. Stop and start the gateway, then wait for it to be healthy.
  2. Wait for the sandbox to be Ready and for sandbox exec to work.
  3. The fingerprint in sandbox get is unchanged.
  4. A plain ssh with the pinned known_hosts and StrictHostKeyChecking=yes still connects.

The stop/start and recreate checks are already covered in tests/suites/conformance/src/ssh.rs (ssh_host_identity_stable_across_stop_start_and_new_on_recreate). The new test can reuse its ssh-config and pinned-ssh steps.

Definition of done

  • A gateway-control test checks that the SSH host key survives a gateway restart.
  • It runs on the rows where gateway-control runs.

Part of #5281.

Activity

  1. added
    topic:testingUnit, integration, regression, conformance, E2E tests, coverage, flakes, and test infrastructure.
    area:platformSDKs, CLIs, APIs, gateway infrastructure, persistence, configuration, and session management.
    on Nov 17, 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

    area:platformSDKs, CLIs, APIs, gateway infrastructure, persistence, configuration, and session management.topic:testingUnit, integration, regression, conformance, E2E tests, coverage, flakes, and test infrastructure.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions