Skip to content

add main file#2

Open
sviat-radius wants to merge 1 commit into
mainfrom
test1
Open

add main file#2
sviat-radius wants to merge 1 commit into
mainfrom
test1

Conversation

@sviat-radius

Copy link
Copy Markdown
Owner

No description provided.

@gitguardian

gitguardian Bot commented Nov 30, 2022

Copy link
Copy Markdown

⚠️ GitGuardian has uncovered 2 secrets following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secrets in your pull request
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
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secrets safely. Learn here the best practices.
  3. Revoke and rotate these secrets.
  4. 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


🦉 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!

Comment thread main.py
@app.route('/req_1')
def req_one():
# hardcoded api secret in obvious header
headers = {'X-API-KEY' : 'CkSaSTFTEJ4BSpSAULQJBvpc586JhCxT'}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛑 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

Comment thread main.py
@app.route('/req_7')
def req_seven():
# hardcoded secret in obvious post body
data = {'password' : 'r87hh5MgYZwYWqk7yzmvvG'}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛑 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant