add main file#2
Conversation
|
| GitGuardian id | Secret | Commit | Filename | |
|---|---|---|---|---|
| 5140791 | Generic High Entropy Secret | 6af3be1 | main.py | View secret |
| 5140792 | Generic Password | 6af3be1 | main.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.
Our GitHub checks need improvements? Share your feedbacks!
| @app.route('/req_1') | ||
| def req_one(): | ||
| # hardcoded api secret in obvious header | ||
| headers = {'X-API-KEY' : 'CkSaSTFTEJ4BSpSAULQJBvpc586JhCxT'} |
There was a problem hiding this comment.
🛑 Gitleaks has detected a secret with rule-id generic-api-key in commit 6af3be1.
If this secret is a true positive, please rotate the secret ASAP.
If this secret is a false positive, you can add the fingerprint below to your .gitleaksignore file and commit the change to this branch.
echo 6af3be177325a37a515d7aa69c74506145462758:main.py:generic-api-key:14 >> .gitleaksignore
| @app.route('/req_7') | ||
| def req_seven(): | ||
| # hardcoded secret in obvious post body | ||
| data = {'password' : 'r87hh5MgYZwYWqk7yzmvvG'} |
There was a problem hiding this comment.
🛑 Gitleaks has detected a secret with rule-id generic-api-key in commit 6af3be1.
If this secret is a true positive, please rotate the secret ASAP.
If this secret is a false positive, you can add the fingerprint below to your .gitleaksignore file and commit the change to this branch.
echo 6af3be177325a37a515d7aa69c74506145462758:main.py:generic-api-key:54 >> .gitleaksignore
No description provided.