Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Support SFTP in ACH file transfers #179

Merged
merged 27 commits into from
Jul 23, 2019

Conversation

adamdecaf
Copy link
Member

This PR adds SFTP (SSH File Transfer Protocol) support into paygate. The interface of filetransfer.Agent is the critical interface to implement.

This change also moves some logic out of paygate's root package to isolate it from the big mess of code in the root package. Initially everything was piled into one package for quicker development.

Issue: #170
Issue: #161

@adamdecaf adamdecaf changed the title WIP: Support SFTP WIP: Support SFTP in ACH file transfers Jul 18, 2019
@codecov-io
Copy link

codecov-io commented Jul 18, 2019

Codecov Report

Merging #179 into master will decrease coverage by 0.63%.
The diff coverage is 55.19%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #179      +/-   ##
==========================================
- Coverage   55.98%   55.35%   -0.64%     
==========================================
  Files          27       30       +3     
  Lines        3653     3906     +253     
==========================================
+ Hits         2045     2162     +117     
- Misses       1197     1300     +103     
- Partials      411      444      +33
Impacted Files Coverage Δ
common.go 84.61% <ø> (-1.75%) ⬇️
main.go 0% <0%> (ø) ⬆️
internal/database/mysql.go 75.64% <100%> (+0.31%) ⬆️
internal/database/sqlite.go 69.84% <100%> (+0.48%) ⬆️
file_transfer_async.go 42.09% <40.78%> (-1.65%) ⬇️
internal/filetransfer/sftp.go 44.09% <44.09%> (ø)
internal/filetransfer/file_transfer.go 53.33% <53.33%> (ø)
internal/httptest/certs.go 60% <60%> (ø)
internal/filetransfer/config.go 55.37% <66.34%> (ø)
internal/filetransfer/ftp.go 69.07% <69.07%> (ø)
... and 5 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 69edc48...4b6f9bb. Read the comment docs.

Our tests are a bit slow to launch, but we should allow a (crude) retry here anyway.
This was a suggested example in some EOF related issues, however
setting it this low might be too strict for a default.
@adamdecaf adamdecaf force-pushed the split-out-file-transfers branch from a4782d0 to 1a9798f Compare July 19, 2019 17:25
@adamdecaf adamdecaf force-pushed the split-out-file-transfers branch from d4d75df to 70a263c Compare July 19, 2019 20:53
@adamdecaf adamdecaf changed the title WIP: Support SFTP in ACH file transfers Support SFTP in ACH file transfers Jul 22, 2019
@adamdecaf adamdecaf force-pushed the split-out-file-transfers branch from f78c8b7 to ea6eda1 Compare July 22, 2019 20:54
Copy link
Member

@wadearnold wadearnold left a comment

Choose a reason for hiding this comment

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

Do we need a howto on docs.moov.io for configuring this?

@adamdecaf
Copy link
Member Author

Yea and something in paygate's docs/ directory.

@adamdecaf adamdecaf merged commit 3684dcb into moov-io:master Jul 23, 2019
@adamdecaf adamdecaf deleted the split-out-file-transfers branch July 23, 2019 17:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants