Skip to content

[audit] Dup: SSH option block copy-pasted across 4 spored-exec sites — extract buildSporedSSHArgs/runSpored #303

Closed

Description

@scttfrdmn

Filed from the 2026-07-11 spawn audit. Full report: docs/spawn-audit-2026-07-11.md. Assessment-only — no code changed yet.

Phase: Phase 1 — internal refactor

Evidence

  • cmd/status.go:98-108, cmd/config.go:78-88 (instance-config), cmd/extend.go:347-357, cmd/queue.go:395-406 — identical ssh -i/StrictHostKeyChecking/UserKnownHostsFile/ConnectTimeout/LogLevel block

Recommendation
Extract buildSporedSSHArgs/runSpored for the 4 identical sites. Do NOT merge connect.go/launch.go (ControlMaster, #56) or the plugin paths (accept-new/BatchMode differ).

User-facing / SemVer: No — internal. No bump.

Adversarially verified during the audit (62/62 findings survived verification; severities/scope adjusted where the first pass was wrong).

Activity

  1. added
    area:connect
    audit:2026-07
    on Jul 11, 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:connectaudit:2026-07

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions