prikryla / friendly_betting

1 stars 0 forks source link

Fe login logic #4

Closed janmrakava closed 3 months ago

janmrakava commented 3 months ago

add logic for logic and fetch tokens.

Right now merge is required, and add CORS policy on BE side

gitguardian[bot] commented 3 months ago

⚠️ GitGuardian has uncovered 4 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 | GitGuardian status | Secret | Commit | Filename | | | -------------- | ------------------ | ------------------------------ | ---------------- | --------------- | -------------------- | | [13109800](https://dashboard.gitguardian.com/workspace/217383/incidents/13109800?occurrence=161002203) | Triggered | Generic High Entropy Secret | 41b2262b0fc36697bf19fc7afcafd67818f58334 | frontend/.env | [View secret](https://github.com/prikryla/friendly_betting/commit/41b2262b0fc36697bf19fc7afcafd67818f58334#diff-73e4ac151372ac43d9e0c6620f9781df4b013b88c0f1439f0f6f63445ab84d33R1) | | [13109800](https://dashboard.gitguardian.com/workspace/217383/incidents/13109800?occurrence=161002233) | Triggered | Generic High Entropy Secret | dca5b679f5842e27fab9cadc3a83a252142a4628 | frontend/.env | [View secret](https://github.com/prikryla/friendly_betting/commit/dca5b679f5842e27fab9cadc3a83a252142a4628#diff-73e4ac151372ac43d9e0c6620f9781df4b013b88c0f1439f0f6f63445ab84d33L1) | | [13109801](https://dashboard.gitguardian.com/workspace/217383/incidents/13109801?occurrence=161002204) | Triggered | Generic High Entropy Secret | 667f9da3be66610c5603f2c4d0f2f26a82d0c13d | frontend/auth.ts | [View secret](https://github.com/prikryla/friendly_betting/commit/667f9da3be66610c5603f2c4d0f2f26a82d0c13d#diff-ed41185c0dcbe969119ffeefc2285ef5f4fc6aaef4f7aafac6deacc5b45bb1f7R10) | | [13109801](https://dashboard.gitguardian.com/workspace/217383/incidents/13109801?occurrence=161003905) | Triggered | Generic High Entropy Secret | a2dcafa457fa88f84722c2c44a0ec753355c2d7f | frontend/auth.ts | [View secret](https://github.com/prikryla/friendly_betting/commit/a2dcafa457fa88f84722c2c44a0ec753355c2d7f#diff-ed41185c0dcbe969119ffeefc2285ef5f4fc6aaef4f7aafac6deacc5b45bb1f7L10) |
🛠 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](https://blog.gitguardian.com/secrets-api-management?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment) the best practices. 3. Revoke and [rotate these secrets](https://docs.gitguardian.com/secrets-detection/secrets-detection-engine/detectors/generics/generic_high_entropy_secret#revoke-the-secret?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment). 4. If possible, [rewrite git history](https://blog.gitguardian.com/rewriting-git-history-cheatsheet?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment). 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](https://blog.gitguardian.com/secrets-api-management/?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment) for managing and storing secrets including API keys and other credentials - install [secret detection on pre-commit](https://docs.gitguardian.com/ggshield-docs/integrations/git-hooks/pre-commit?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment) 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.

prikryla commented 3 months ago

It seems some credentials are leaked. Closing this one for now but we need to fix .gitignore and other files for stopping leaks.