Skip to content

feat(ssh): add custom target source identity - #11039

Draft
nwparker wants to merge 1 commit into
mainfrom
nwparker/custom-ssh-source-identity
Draft

nwparker wants to merge 1 commit into
mainfrom
nwparker/custom-ssh-source-identity

Conversation

@nwparker

Copy link
Copy Markdown
Contributor

Summary

Introduces the persisted identity contract required for built-in custom SSH target sources:

  • adds source: "custom" and a validated stable sourceId;
  • keeps custom targets isolated from ~/.ssh/config reconciliation;
  • routes custom targets through explicit host, port, user, identity, and jump-host fields;
  • treats malformed or unknown source kinds as manual targets.

This is the first standalone increment from the custom-source handoff. It intentionally does not
add endpoint configuration, network fetching, UI, or plugin contributions.

Downgrade compatibility

Current builds expose custom targets as source: "custom" at runtime. The durable state encodes
them as source: "manual" plus the unknown-to-old-builds sourceId metadata.

An older Orca therefore:

  • treats the target as explicit connection details;
  • does not resolve it through local SSH config;
  • preserves the source metadata during ordinary state round trips;
  • cannot adopt it into SSH-config synchronization.

Current builds restore the custom discriminator when loading that compatible representation.

Security boundary

This change does not introduce a remote input boundary. The future importer must still strip
proxyCommand and cap source results before targets reach persistence. Structured jumpHost
remains the intended proxy mechanism for remote-supplied targets.

Validation

  • pnpm typecheck
  • focused Vitest: 5 files, 514 tests
  • npx oxlint on all touched TypeScript files
  • npx oxfmt --check on all touched files
  • pnpm run check:reliability-gates
  • pnpm run check:max-lines-ratchet
  • git diff --check

Stack

  1. This PR: custom source identity, validation, persistence, and downgrade behavior.
  2. Follow-up: source-agnostic reconciliation and tombstone semantics.
  3. Follow-up: bounded HTTPS source configuration/fetch/parse boundary.
  4. Follow-up: Add from source UI and source badges.

Made with Orca 🐋

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant