How hgalexx/hg.secureshellsync works
Hg.SecureShellSync is a KeePass plugin that synchronizes a KeePass database with an SFTP-hosted copy. The documented workflow is triggered manually or on open, save, or a timer; the plugin uses saved connection settings, transfers the remote database, and synchronizes it with the local database. The plugin also provides diagnostics and runtime dependency resolution. The central synchronization implementation is in one large file, so its stages share that path. Some wiring is documented but not visible in the excerpts; those relationships are cited to the README.
Main entry points: Hg.SecureShellSyncExt.cs Plugin lifecycle · HgLog.cs Session logging · HgUrl.cs URL dialog · HgSyncResult.cs Sync result
Components 14
KeePass plugin
- Plugin lifecycle
Hg.SecureShellSync/Hg.SecureShellSyncExt.cs - Sync triggers
Hg.SecureShellSync/Hg.SecureShellSyncExt.cs - Connection settings
Hg.SecureShellSync/Hg.SecureShellSyncExt.cs - URL dialog
Hg.SecureShellSync/HgUrl.cs
Synchronization
- Sync orchestration
Hg.SecureShellSync/Hg.SecureShellSyncExt.cs - SFTP transfer
Hg.SecureShellSync/Hg.SecureShellSyncExt.cs - Database merge
Hg.SecureShellSync/Hg.SecureShellSyncExt.cs - KeePass database
- SFTP server
- Sync result
Hg.SecureShellSync/HgSyncResult.cs
Runtime support
- Diagnostics UI
Hg.SecureShellSync/Hg.SecureShellSyncExt.cs - Session logging
Hg.SecureShellSync/HgLog.cs - Assembly resolver
Hg.SecureShellSync/HgAssemblyResolver.cs
Other components
- KeePass
Connections 16
- KeePass → Plugin lifecycle: hosts plugin
Hg.SecureShellSync/Hg.SecureShellSyncExt.cs - Plugin lifecycle → Assembly resolver: installs resolver
Hg.SecureShellSync/Hg.SecureShellSyncExt.cs - Plugin lifecycle → Session logging: resets logging
Hg.SecureShellSync/Hg.SecureShellSyncExt.cs - Plugin lifecycle → Sync triggers: registers triggers
Hg.SecureShellSync/Hg.SecureShellSyncExt.cs - KeePass → Sync triggers: opens or saves
README.md - Sync triggers → Sync orchestration: starts sync
README.md - Plugin lifecycle → Connection settings: loads settings
Hg.SecureShellSync/Hg.SecureShellSyncExt.cs - Connection settings → URL dialog: opens dialog
Hg.SecureShellSync/Hg.SecureShellSyncExt.cs - Sync orchestration → SFTP transfer: runs transfer
Hg.SecureShellSync/Hg.SecureShellSyncExt.cs - SFTP transfer → SFTP server: downloads database
Hg.SecureShellSync/Hg.SecureShellSyncExt.cs - SFTP transfer → SFTP server: uploads database
Hg.SecureShellSync/Hg.SecureShellSyncExt.cs - Sync orchestration → Database merge: merges changes
README.md - Database merge → KeePass database: opens local data
README.md - Database merge → Sync result: returns outcome
- Sync orchestration → Session logging: records diagnostics
Hg.SecureShellSync/Hg.SecureShellSyncExt.cs - Diagnostics UI → Session logging: views log
Hg.SecureShellSync/Hg.SecureShellSyncExt.cs