The problem
The ~/.tmpo directory is created with 0755 permissions, and the database/config files are created with default 0644 permissions. This allows any other local user on the machine to read the SQLite database and YAML config, exposing sensitive billing data, hourly rates, and client names.
Release version
0.8.6
Operating system
macOS
Steps to reproduce the behavior
- Run
tmpo start.
- Check the permissions of the created directory:
ls -la ~/.tmpo.
- Observe
drwxr-xr-x and -rw-r--r--.
Screenshots
No response
Additional context
Update the codebase to enforce 0700 for directories and 0600 for files (database, backups, and configs) to ensure privacy.
The problem
The
~/.tmpodirectory is created with0755permissions, and the database/config files are created with default0644permissions. This allows any other local user on the machine to read the SQLite database and YAML config, exposing sensitive billing data, hourly rates, and client names.Release version
0.8.6
Operating system
macOS
Steps to reproduce the behavior
tmpo start.ls -la ~/.tmpo.drwxr-xr-xand-rw-r--r--.Screenshots
No response
Additional context
Update the codebase to enforce
0700for directories and0600for files (database, backups, and configs) to ensure privacy.