Replies: 3 comments 3 replies
-
Sounds cool! I don't see a particular reason why it wouldn't work. Perhaps one thing to also consider is how you will authenticate securely. You could use unftp-auth-jsonfile crate for this, or make your own. @hannesdejager do you see any reasons why it wouldn't work? |
Beta Was this translation helpful? Give feedback.
-
This is indeed something I thought about before and is on the wishlist. This is something that vsftpd for instance does. It would be awesome if we can do this. With this and unFTP being written in Rust I believe this would give a real nice advantage for security mindedness. But to be honest I don't have a clear idea in my mind yet of how this can be implemented. Would you fork per user logging in? If that is the case then this is perhaps not the best to implement as a storage back-end but as part of the main code. You fork when a user logs in and jails based on the per-user settings. It would be lovely if you could come up with some ideas or a POC that we can then discuss. |
Beta Was this translation helpful? Give feedback.
-
Status update:
|
Beta Was this translation helpful? Give feedback.
-
I'm looking for a new FTPS server for a security-sensitive application. Ideally, I'd like a server that forks after a successful login, opens a capability to the user's home directory, and enters capability mode. That way the OS would enforce that the server isn't reading any files outside of the allowed directory. Is this something that could potentially be done with libunftp? I see that there's an architecture for different storage backends. So probably I could write a capability-mode local file system backend. What about the forking part? Any unforeseen obstacles there? I don't need the Prometheus exporter, btw.
If this sounds feasible to you, I volunteer to implement the capability-mode backend.
Beta Was this translation helpful? Give feedback.
All reactions