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): ensure environment variable algorithms are always honored (#473)
* fix(ssh): ensure environment variable algorithms are always honored
The ssh2 library uses its own DEFAULT_KEX algorithms when none are
explicitly passed to client.connect(). This caused user-provided
algorithm configuration via environment variables (e.g.,
WEBSSH2_SSH_ALGORITHMS_KEX) to be silently ignored in edge cases.
Changes:
- Always pass algorithms to ssh2 with fallback to server config defaults
- Add debug logging for config loading timeline and algorithm values
- Add per-connection algorithm logging in ssh-config adapter
- Add startup verification logging with algorithm summary
- Fix test mocks to include proper ssh.algorithms configuration
The fix ensures legacy SSH servers (e.g., those only supporting
diffie-hellman-group14-sha1) can connect when users configure
the appropriate algorithms via environment variables.
* refactor(index): use top-level await and export...from syntax
Replace async mainAsync wrapper with top-level await for cleaner
initialization code. Use direct export...from syntax for re-exports.
Addresses SonarLint rules S7785 and S7763.
0 commit comments