For platform hardware independence, a proposal to host a SFTP
server within a containerized
environment was being considered.
A container
or pod
would have the server running within it, with mounted host
directories for file related operations.
I am not certain how secure this proposal could be, both from SSH and docker perspective. While I can see the merit in hosting a shared service
or a webpage
within a container, and modifying files within that container using SFTP
, here though, the users of SFTP
are expected to be the host users - not sure yet how it'll translate into the container - with mounted directories having write
permissions, so that the sftp
service inside the container can modify files outside on the host.
I was also concerned about the login credentials of the host users (auth_keys files) being present inside the docker container, though those are public keys, so should be OK everywhere maybe...
The host platform is a Linux platform with STIG
guidelines conformance, and I am not sure whether there is something which would offend STIG guidelines with this implementation either. I didn't find anything explicit there...
Therefore I wanted to ask if there was anything in STIG guidelines for a RHEL type OS which would prevent this mechanism from being implemented, if so, then I'll research and learn and this becomes moot, if not, then is it at least something which can be considered alright from a security perspective?