Commit 86d90eb
Fix gitleaks security configuration issues
Improved gitleaks configuration based on code review feedback:
1. Database password allowlist - Changed from broad pattern that would
match any string containing 'postgres' to specific pattern that only
matches literal 'postgres' password in connection strings
(postgres://user:postgres@host)
2. Django SECRET_KEY detection - Added allowlist to existing rule for
env() calls and get_random_secret_key() generator. Added new rule
'django-secret-key-in-default' to detect hardcoded secrets in env()
default parameters.
3. Path allowlisting - Removed overly broad directory allowlists:
- tests/ (should validate actual secret content)
- .github/workflows/ (CI credentials need validation)
- config/settings/base.py (settings files need validation)
- deployment/scripts/ (deployment scripts need validation)
These changes improve secret detection accuracy by being more specific
in allowlists and removing blanket directory exclusions.
Addresses code review feedback from CodeRabbit and Claude bot on PR #42.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent a5a3d19 commit 86d90eb
1 file changed
+13
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | 13 | | |
17 | 14 | | |
18 | 15 | | |
19 | 16 | | |
20 | | - | |
21 | 17 | | |
22 | 18 | | |
23 | 19 | | |
| |||
35 | 31 | | |
36 | 32 | | |
37 | 33 | | |
38 | | - | |
| 34 | + | |
39 | 35 | | |
40 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
41 | 48 | | |
42 | 49 | | |
43 | 50 | | |
| |||
67 | 74 | | |
68 | 75 | | |
69 | 76 | | |
70 | | - | |
| 77 | + | |
71 | 78 | | |
72 | 79 | | |
73 | 80 | | |
| |||
0 commit comments