gigascience / gigadb-website

Source code for running GigaDB
http://gigadb.org
GNU General Public License v3.0
9 stars 14 forks source link

MUST Move FTP server for file upload to own EC2 server and mount the EFS shared dropbox #1634

Closed rija closed 5 months ago

rija commented 9 months ago

User Story

As an author I want to be able to use FTP to upload my dataset files So that I can submit my manuscript when I can't use the web based file uploader

Acceptance criteria

Given I have dataset files to upload When I connect to the ftp using the connection info I have received by email Then I can upload my files

Additional infos

For security reasons (and performance too), the pure-ftpd container service must not run on production on the same server as the web server (nor should they run on bastion), it should have its own EC2 instance.

Tasks

Striked out tasks not directly relevant to this story.

Other infos:

In web EC2 instance new ftp user account can be created in /Users/owner/code/gigadb-website/fuw/app/backend/models/FiledropAccount.php with something like:

shell_exec(["bash","-c","/usr/bin/pure-pw useradd uploader-$doi -f /share/config/pure-ftpd/pureftpd.passwd -m -u uploader -d /share/dropbox/uploader/$doi  < /var/private/$doi/uploader_token.txt"]) ;
shell_exec(["bash","-c","/usr/bin/pure-pw useradd downloader-$doi -f /share/config/pure-ftpd/passwd/pureftpd.passwd -m -u downloader -d /share/dersopbox/downloader/$doi  < /var/private/$doi/downloader_token.txt"]) ;

Tasks:

rija commented 5 months ago

Implemented in PR #1826