juliangruber / juliangruber/vipe
Allow setting temporary directory path
- Dominant language
- Shell
- Stars
- 162
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
A potential use case for vipe is editing an encrypted file; `decrypt | vipe | encrypt`
Currently vipe always saves the temporary file to `/tmp/` which on many systems is a tmpfs. However, tmpfs can be swapped thus resulting in sensitive data being written to disk. To solve this we can create a ramfs which cannot be swapped, but we would need to be able to configure vipe to use this directory. I imagine we could pass in a temporary directory something like this:
```
decrypt | vipe -t /myramdisk | encrypt
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at vipe's command-line entry point and trace how it creates the temporary file; the issue names no file or test. Check how options are parsed, then verify that `vipe -t /myramdisk` uses the supplied directory while preserving the existing default behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- shell
- Domain
- cli, security
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100