seppevs / migrate-mongo

A database migration tool for MongoDB in Node
MIT License
931 stars 166 forks source link

feat: add ssh tunnel functionality #344

Open tmclean15 opened 3 years ago

tmclean15 commented 3 years ago

I've added optional ssh tunnel functionality based on the tunnel-ssh package (https://github.com/agebrock/tunnel-ssh#readme). I've been using a fork of this repo internally at my company for some time to run migrations on our production databases, however we're using AWS DocumentDB which cannot be connected to without the use of an ssh tunnel. Just thought I'd contribute back to the project as I suspect some others may find use in this feature too.

I'm not entirely sure the approach I should take in testing this feature. I figured I'd get some feedback on the PR first before taking the time to figure out the testing. Let me know if this is a feature you'd like to add, and any suggestions you may have with respect to testing.

Checklist
coveralls commented 3 years ago

Coverage Status

Coverage decreased (-3.4%) to 96.596% when pulling 3c5db1db9340f320cce72bf5f445c8add6016fad on tmclean15:add-ssh-tunnel into 4906ff23676ba3b2a9be219be64eb94f440db597 on seppevs:master.

coveralls commented 3 years ago

Coverage Status

Coverage decreased (-3.4%) to 96.596% when pulling 3c5db1db9340f320cce72bf5f445c8add6016fad on tmclean15:add-ssh-tunnel into 4906ff23676ba3b2a9be219be64eb94f440db597 on seppevs:master.