HIGH: .env files with secrets (JWT_SECRET) are committed to git repository #5
Labels
No labels
blocked:needs-human
blocked:verify-failed
bug
feature-request
quickfix
security/high
security/medium
test-coverage
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/subvault#5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: High
Location
Repository root
.env,.env.production,backend/.envDescription
Three environment files containing secrets are tracked in git:
backend/.envcontains:While the
.gitignoredoes list.env, these files were apparently added to the repo before the gitignore rules took effect and remain tracked.Impact
Suggested Fix
git rm --cached .env .env.production backend/.env.env.productionto.gitignoreexplicitly (it is not covered by the current.envpattern, which only matches the exact filename.env).env.*or.env.productionto.gitignore