orca/docs/reference
s546126 0302ae86b8
feat(ssh): support Kerberos/GSSAPI hosts via the system OpenSSH transport (#7507)
* feat(ssh): support Kerberos/GSSAPI hosts via the system OpenSSH transport

ssh2 has no gssapi-with-mic support, and adding it would mean forking its
protocol layer plus packaging the kerberos native module for three
platforms. Instead, route GSSAPI hosts through the existing system-OpenSSH
transport, which delegates Kerberos (tickets, SSPI on Windows) to the
platform ssh binary.

Two tiers, because RHEL-family distros enable GSSAPIAuthentication
globally in /etc/ssh/ssh_config and ssh -G therefore reports it for every
host:

- Targets whose ~/.ssh/config Host block explicitly sets
  GSSAPIAuthentication yes (imported as target.gssapiAuthentication) try
  system ssh first, falling through to ssh2 so key auth and credential
  prompts still work when no ticket is available.
- When ssh2 exhausts key/agent auth and the ssh -G-resolved config
  enables GSSAPI, retry over system ssh before prompting for credentials,
  so Kerberos-only hosts on distro-default configs connect without a
  password prompt. Hosts where keys work never leave the ssh2 path.

Manual targets flagged for GSSAPI pass -o GSSAPIAuthentication=yes
explicitly since they bypass ssh_config. Both tiers work headless (no
credential callbacks required).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* fix(ssh): harden GSSAPI transport selection (review fixes for PR #7507)

Review fixes on top of the Kerberos/GSSAPI feature branch (s546126/kerberos-ssh):

- HIGH: reset useSystemSshTransport on the ssh2 fall-through. doSystemSshProbe
  sets the flag before spawnSystemSshCommand, which throws synchronously when no
  system ssh binary is on PATH (outside the probe try/catch). The proactive
  fall-through previously reset only 2 of 3 transport fields, so exec/sftp kept
  routing through the failed transport - breaking GSSAPI on Windows-with-Git-ssh
  and headless Linux.
- MEDIUM: throw a cancellation error (not the stale ssh2 authError) when a
  disconnect supersedes the reactive probe mid-flight, and guard connect()'s
  catch on disposed, so a deliberate disconnect is not overwritten with
  auth-failed.
- MEDIUM: skip the encrypted-key passphrase prompt when the GSSAPI fallback
  applies, so a Kerberos ticket is tried before prompting; the general prompt
  still fires if the probe fails.

Adds 3 mutation-verified regression tests and hardens two existing tests to
assert the probe actually ran. Not connected to any PR remote.

Co-authored-by: Orca <help@stably.ai>

* fix(ssh): isolate GSSAPI system transport

Co-authored-by: Orca <help@stably.ai>

---------

Co-authored-by: s546126 <268420947+s546126@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com>
Co-authored-by: Jinwoo-H <jinwoo0825@gmail.com>
Co-authored-by: Orca <help@stably.ai>
2026-07-15 01:58:46 -07:00
..
plans fix: reconcile SSH repo rows after host re-add (#8201) 2026-07-11 03:20:55 -07:00
2026-06-27-orca-mobile-manual-network-address-design.md feat(mobile-pairing): combobox with manual network address entry (#6501) 2026-06-29 00:32:36 -07:00
README.md Document headless Linux server setup (#6802) 2026-06-30 00:04:47 -07:00
agent-hook-stdin-lifecycle.md fix(agent-hooks): make Windows cmd hook launcher directly spawnable (#8430 regression) (#8737) 2026-07-14 05:41:19 -07:00
agent-session-resume-cli-evidence.md Persist agent session metadata for workspace resume (#4706) 2026-06-07 19:41:25 -07:00
direct-url-or-file-entry.md
feature-discovery-interaction-tracking.md Add Floating Workspace contextual tour (#5062) 2026-06-10 14:12:07 -07:00
feature-education-retention-analytics.md
feature-education-state.md
git-compatibility.md fix(git): cache unsupported capabilities per host (#8109) 2026-07-10 18:19:36 -07:00
headless-linux-server.md Document headless Linux server setup (#6802) 2026-06-30 00:04:47 -07:00
keyboard-layout-shortcut-dispatch.md
new-user-parallel-work-telemetry.md Remove split terminal from onboarding checklist (#6340) 2026-06-25 01:49:56 -07:00
opencode-commit-message-stdin.md Send OpenCode source-control prompts over stdin (#4859) 2026-06-07 21:00:20 -07:00
project-ordering-mode.md fix: address review findings (#4865) 2026-06-07 22:17:52 -07:00
reliability-gates-implementation-plan.md Harden reliability gate policy and register merged terminal regression tests as gates (#7295) 2026-07-03 19:58:07 -07:00
reliability-pain-points-2026-06-30.md Add reliability gate manifest (#7001) 2026-07-03 19:26:00 -07:00
ssh-gssapi-kerberos.md feat(ssh): support Kerberos/GSSAPI hosts via the system OpenSSH transport (#7507) 2026-07-15 01:58:46 -07:00
ssh-typing-latency-under-relay-load.md perf(ssh): bound relay bulk-stream backlog so PTY echo is not head-of-line blocked (#7601) 2026-07-06 17:10:04 -07:00
telemetry-availability.md Follow up Windows terminal onboarding polish (#5530) 2026-06-16 14:59:35 -07:00
terminal-cold-park-reveal-cost.md perf(terminal): tune cold-park keep-warm so common rotation never remounts (#8262) 2026-07-12 11:48:17 -07:00
terminal-hidden-view-parking.md perf(terminal): tune cold-park keep-warm so common rotation never remounts (#8262) 2026-07-12 11:48:17 -07:00
terminal-model-view-contract.md Terminal performance initiative: pipeline fixes + term-speed-2 revival + PTY flow control (integration branch) (#7214) 2026-07-10 17:27:47 -07:00
terminal-query-authority.md Fix mobile terminal query reply authority (#8227) 2026-07-11 02:13:15 -07:00
terminal-session-lifecycle.md fix(terminal): retire sessions when tabs close (#8628) 2026-07-14 00:15:34 -07:00
terminal-side-effect-authority.md Terminal performance initiative: pipeline fixes + term-speed-2 revival + PTY flow control (integration branch) (#7214) 2026-07-10 17:27:47 -07:00
terminal-switch-typing-lag-investigation.md Fix terminal switch input lag from daemon session listing (#7002) 2026-07-01 13:19:50 -07:00

README.md

Durable Docs

Keep this folder for versioned reference docs that are meant to survive past a single design or implementation pass.

What Goes Here

What Stays Out

Ephemeral design notes, implementation sketches, and planning docs should stay as local Markdown files under docs/. They are ignored by default so they do not get checked in accidentally.