Skip to content

fix(security): E2E test scripts still use StrictHostKeyChecking=no #1531

@cjagwani

Description

@cjagwani

Summary

PR #691 hardened the deploy() path to use SSH TOFU (trust-on-first-use) with pinned host keys. However, ~25 instances of StrictHostKeyChecking=no remain in E2E test scripts:

  • test/e2e/brev-e2e.test.js
  • test/e2e/test-full-e2e.sh
  • test/e2e/test-credential-sanitization.sh
  • test/e2e/test-telegram-injection.sh
  • test/e2e/test-messaging-providers.sh
  • test/e2e/test-gpu-e2e.sh
  • test/e2e/test-sandbox-survival.sh
  • test/e2e/test-e2e-cloud-experimental.sh
  • test/e2e/e2e-cloud-experimental/ (multiple scripts)

These are test scripts SSHing into freshly provisioned Brev VMs, so the risk is lower than the deploy path (no secrets in transit during most test commands). But for consistency and defense-in-depth, they should use the same TOFU pattern.

Proposed fix

Extract a shared SSH TOFU helper (e.g., test/e2e/lib/ssh-tofu.sh) that the test scripts source, similar to how deploy.ts now handles it.

Related

Metadata

Metadata

Assignees

Labels

E2EEnd-to-end testing — Brev infrastructure, test cases, nightly failures, and coverage gapsPlatform: BrevSupport for Brev deploymentsecuritySomething isn't secure

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions