I have an integration workflow where:
A server retrieves remote file via an encrypted connection. The file is unencrypted. The server runs linux (Ubuntu 14.04LTS).
The file is downloaded to a temporary staging directory. It could be large (100MB-2GB) so it's not practical to keep it in memory.
The file is encrypted and stored in a secure location for data at rest. The unencrypted file (from step #2) is deleted using
srm
.
My question is about step #2
Under this workflow, there is a brief window of time in step #2 where the file sits unencrypted on the server, before it is purged by srm
. Is this a reasonable way to deal with unavoidable file staging-before-encryption, or is there a more contemporary way to perform this staging?
Thanks in advance.