aboutsummaryrefslogtreecommitdiff
path: root/tests/cmail/test_cmail_setup.py
Commit message (Collapse)AuthorAgeFilesLines
* fix(security): decrypt the cmail password under a tight umaskCraig Jennings40 hours1-0/+79
gpg writes its output at the process umask (often 0644), so the plaintext mail password was world-readable between the decrypt and the chmod. I extracted decrypt_to_secure, which runs the decrypt in a 0077 umask subshell so the file is 0600 from creation. A fake-gpg test pins that the write runs under the tight umask.