awslabs / awslabs/git-secrets

.gitconfig file has universal read perms - should be restricted to current user

Open
#254 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.