Skip to content

Conversation

@rrebollo
Copy link
Contributor

@rrebollo rrebollo commented Dec 10, 2025

Add a new "Host Public Key" field to verify the identity of the remote SFTP server.

  • When filled: strict host key verification (protects against man-in-the-middle attacks)
  • When empty: host key checking disabled (old behavior preserved, no known_hosts warnings)
  • "Test SFTP Connection" button now also validates the provided key
  • Eliminates the UserWarning about missing ~/.ssh/known_hosts
  • All existing tests pass
  • New comprehensive test added for valid/invalid/empty key cases
  • Documentation updated in readme/USAGE.md

Based on the original (never merged) PR #2195 from 14.0, now correctly implemented and fully tested for 17.0.

The first 2 commits are from #3461. Working on this discovered the missing commits on branch 17.0.

@BinhexTeam

@rrebollo rrebollo marked this pull request as ready for review December 10, 2025 21:08
@rrebollo rrebollo force-pushed the 17.0-imp-auto_backup-hostkey-support branch from 47aea03 to d080270 Compare December 11, 2025 04:14
Add a new "Host Public Key" field to verify the identity of the remote SFTP server.

- When filled: strict host key verification (protects against man-in-the-middle attacks)
- When empty: host key checking disabled (old behavior preserved, no known_hosts warnings)
- "Test SFTP Connection" button now also validates the provided key
- Eliminates the UserWarning about missing ~/.ssh/known_hosts
- All existing tests pass
- New comprehensive test added for valid/invalid/empty key cases
- Documentation updated in readme/USAGE.md

Based on the original (never merged) PR OCA#2195 from 14.0, now correctly implemented and fully tested for 17.0.
@rrebollo rrebollo force-pushed the 17.0-imp-auto_backup-hostkey-support branch from d080270 to a66b508 Compare December 15, 2025 23:00
Copy link

@edescalona edescalona left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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.

4 participants