You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix SSH session factory issues identified in PR review
- Fix sshConfig captured as null: build session factory lazily in
configure(Transport) instead of in the constructor, so sshConfig
is already set by GitManager before the factory is created
- Fix StrictHostKeyChecking not working: replace non-override
configure(HostConfigEntry, ClientSession) with proper override of
getServerKeyDatabase() that returns an accept-all ServerKeyDatabase
when StrictHostKeyChecking=no
- Fix temp key file security: set POSIX 0600 permissions on the
temporary private key file to prevent unauthorized reads
- Fix temp key file accumulation: cache and reuse the temp key file
per factory instance instead of creating a new one on every call
- Remove unused delegate pattern and SshdSessionFactoryBuilder
- Remove unused imports (FS, HostConfigEntry)
Made-with: Cursor
0 commit comments