.gitconfig file has universal read perms - should be restricted to current user
Open
- Dominant language
- Shell
- Stars
- 13.4k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
I noticed that the .gitconfig file is set to 644 permissions
-rw-r--r-- 1 username username 355 Jun 7 11:52 .gitconfig
If I had any actual passwords in the file, they would be readable by anyone - should it not be set to 600 by default?
Contributor guide
Research direction
Start by locating the code path that creates or updates the .gitconfig file and inspect how its permissions are set. Confirm the change keeps the file readable only by the current user, then verify the resulting mode is 600 without exposing existing configuration behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git, shell
- Domain
- security
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100