feat: Security Improvements (CodeQL, DAST, Log Redaction)#84
Conversation
|
This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation. |
Greptile OverviewGreptile SummaryThis PR implements comprehensive security improvements including log scrubbing for PII redaction, CodeQL static analysis, and infrastructure for DAST scanning. Key Changes:
Code Quality: Confidence Score: 5/5
Important Files Changed
|
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
|
| GitGuardian id | GitGuardian status | Secret | Commit | Filename | |
|---|---|---|---|---|---|
| 26449490 | Triggered | Bearer Token | cd71987 | tests/test_logging_security.py | View secret |
| 26449491 | Triggered | Generic High Entropy Secret | cd71987 | tests/test_logging_security.py | View secret |
| 26449492 | Triggered | Generic High Entropy Secret | cd71987 | tests/test_logging_security.py | View secret |
| 26448353 | Triggered | Generic High Entropy Secret | 451e5b0 | tests/test_logging_security.py | View secret |
🛠 Guidelines to remediate hardcoded secrets
- Understand the implications of revoking this secret by investigating where it is used in your code.
- Replace and store your secrets safely. Learn here the best practices.
- Revoke and rotate these secrets.
- If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.
To avoid such incidents in the future consider
- following these best practices for managing and storing secrets including API keys and other credentials
- install secret detection on pre-commit to catch secret before it leaves your machine and ease remediation.
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Add patterns for Anthropic API keys, Stripe keys, Bearer tokens, and generic api_key/project_key/secret_key formats per code review. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Remove errant `|` from email TLD character class - Move Anthropic pattern before OpenAI for correct matching - Add rk_ prefix to Stripe key tests Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Summary
This PR implements several security enhancements identified in the Agent Readiness Report:
src/utils/logging_config.pyusingloguru's patcher..github/workflows/codeql.yml) scanning Python and TypeScript..github/workflows/dast.yml) using OWASP ZAP (manual trigger).