Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Container: SFTP server #628

Closed
oliverlambson opened this issue Jun 30, 2024 · 0 comments · Fixed by #629
Closed

New Container: SFTP server #628

oliverlambson opened this issue Jun 30, 2024 · 0 comments · Fixed by #629

Comments

@oliverlambson
Copy link
Contributor

What is the new container you'd like to have?

atmoz/sftp is a full-featured SFTP mock server that's ideal for integration testing.

It allows for configs that accept basic user/password auth and keypair auth. This covers most ways you would connect to a real SFTP server and is particularly useful for avoiding having to create a specific insecure SFTP handler for testing only—moving the mocking out of application code.

Why not just use a generic container for this?

The keypair auth support config is non-trivial, as it requires (1) generating a private key, (2) mounting the public key to the container, and (3) keeping the private key accessible in a format that can be used to connect to the server. Mounting directories (e.g. seed data) in to the server is a bit fiddly, and dealing with filesystem permissions to allow users to upload to their directories is a common gotcha with atmoz/sftp.

For an end-user, having an SFTP server that can just be spun up without understanding the internals seems ideal. If nothing else, it means you don't have to repeat the same config over and over again whenever you want to use a sftp testcontainer.

Other references:

N/A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant