COS301-SE-2024 / Crop-Prediction-System

The AI-Driven Crop Prediction System that applies Machine Learning and AI to analyze weather, soil, and crop data to predict crop health and yield. This system provides farmers with precise predictions, empowering them to make data-driven decisions and enhance their farming practices.
https://terrabyte.software
5 stars 1 forks source link

Dev #88

Closed iwandejong closed 5 days ago

gitguardian[bot] commented 5 days ago

⚠️ GitGuardian has uncovered 11 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 | | | -------------- | ------------------ | ------------------------------ | ---------------- | --------------- | -------------------- | | [11698717](https://dashboard.gitguardian.com/workspace/301252/incidents/11698717?occurrence=146189345) | Triggered | Generic High Entropy Secret | 9805e5f3f8613b9a0f6580ebecc752752abcaecc | backend/model/sensecap.py | [View secret](https://github.com/COS301-SE-2024/Crop-Prediction-System/commit/9805e5f3f8613b9a0f6580ebecc752752abcaecc#diff-59935cf4f018bc9bc5961ef91205ead816fe021546fc6b805c010acfb20a1a6bR11) | | [11698717](https://dashboard.gitguardian.com/workspace/301252/incidents/11698717?occurrence=148426590) | Triggered | Generic High Entropy Secret | b32a772fa4e2354bb80ddc34ff7c71045abb546b | backend/model/sensor/sensecap.py | [View secret](https://github.com/COS301-SE-2024/Crop-Prediction-System/commit/b32a772fa4e2354bb80ddc34ff7c71045abb546b#diff-0f618d45db5c8866bf28565122f4dba64a03cd5cd096266298c84a907b826df3L11) | | [11403475](https://dashboard.gitguardian.com/workspace/301252/incidents/11403475?occurrence=139810333) | Triggered | Google API Key | 4d2c414958cbe1379e3915baabf21a551033ef3d | frontend/plugins/maps.client.js | [View secret](https://github.com/COS301-SE-2024/Crop-Prediction-System/commit/4d2c414958cbe1379e3915baabf21a551033ef3d#diff-2e06dd849b8de09b3805d446b85f1693f6cfabc745712a7bd1d2c4e6945897d8L5) | | [11403475](https://dashboard.gitguardian.com/workspace/301252/incidents/11403475?occurrence=139810126) | Triggered | Google API Key | 1a8b5693e8a555eefd0fddf9a6d5d5d83980fc0a | frontend/plugins/maps.client.js | [View secret](https://github.com/COS301-SE-2024/Crop-Prediction-System/commit/1a8b5693e8a555eefd0fddf9a6d5d5d83980fc0a#diff-2e06dd849b8de09b3805d446b85f1693f6cfabc745712a7bd1d2c4e6945897d8R5) | | [11399912](https://dashboard.gitguardian.com/workspace/301252/incidents/11399912?occurrence=139810495) | Triggered | Supabase Service Role JWT | 38a2f364a48ff9ddb78f627535f1a63cb1d70282 | backend/database/supabaseInstance.py | [View secret](https://github.com/COS301-SE-2024/Crop-Prediction-System/commit/38a2f364a48ff9ddb78f627535f1a63cb1d70282#diff-c9e91daca6c63a13ee23c28ab3d5ac27adadc2966b451a0f26b7294083c36e5bL17) | | [11399912](https://dashboard.gitguardian.com/workspace/301252/incidents/11399912?occurrence=139810464) | Triggered | Supabase Service Role JWT | 586aebf1df5cf6fcaaf755303b8642bd8d3df303 | backend/database/supabaseInstance.py | [View secret](https://github.com/COS301-SE-2024/Crop-Prediction-System/commit/586aebf1df5cf6fcaaf755303b8642bd8d3df303#diff-c9e91daca6c63a13ee23c28ab3d5ac27adadc2966b451a0f26b7294083c36e5bR17) | | [11399912](https://dashboard.gitguardian.com/workspace/301252/incidents/11399912?occurrence=139810465) | Triggered | Supabase Service Role JWT | 586aebf1df5cf6fcaaf755303b8642bd8d3df303 | backend/database/supabaseInstance.py | [View secret](https://github.com/COS301-SE-2024/Crop-Prediction-System/commit/586aebf1df5cf6fcaaf755303b8642bd8d3df303#diff-c9e91daca6c63a13ee23c28ab3d5ac27adadc2966b451a0f26b7294083c36e5bL17) | | [11399912](https://dashboard.gitguardian.com/workspace/301252/incidents/11399912?occurrence=139810307) | Triggered | Supabase Service Role JWT | bb1ed7ac0f0dcdccf0fb48ddacd428c371fd080e | backend/database/supabaseInstance.py | [View secret](https://github.com/COS301-SE-2024/Crop-Prediction-System/commit/bb1ed7ac0f0dcdccf0fb48ddacd428c371fd080e#diff-c9e91daca6c63a13ee23c28ab3d5ac27adadc2966b451a0f26b7294083c36e5bR17) | | [11399912](https://dashboard.gitguardian.com/workspace/301252/incidents/11399912?occurrence=139810190) | Triggered | Supabase Service Role JWT | c4e3f8deeeed9f88631c9df995e0504bf3c26a91 | backend/database/supabaseInstance.py | [View secret](https://github.com/COS301-SE-2024/Crop-Prediction-System/commit/c4e3f8deeeed9f88631c9df995e0504bf3c26a91#diff-c9e91daca6c63a13ee23c28ab3d5ac27adadc2966b451a0f26b7294083c36e5bL17) | | [11399912](https://dashboard.gitguardian.com/workspace/301252/incidents/11399912?occurrence=139810308) | Triggered | Supabase Service Role JWT | bb1ed7ac0f0dcdccf0fb48ddacd428c371fd080e | backend/database/supabaseInstance.py | [View secret](https://github.com/COS301-SE-2024/Crop-Prediction-System/commit/bb1ed7ac0f0dcdccf0fb48ddacd428c371fd080e#diff-c9e91daca6c63a13ee23c28ab3d5ac27adadc2966b451a0f26b7294083c36e5bL17) | | [11399912](https://dashboard.gitguardian.com/workspace/301252/incidents/11399912?occurrence=139810191) | Triggered | Supabase Service Role JWT | c4e3f8deeeed9f88631c9df995e0504bf3c26a91 | backend/database/supabaseInstance.py | [View secret](https://github.com/COS301-SE-2024/Crop-Prediction-System/commit/c4e3f8deeeed9f88631c9df995e0504bf3c26a91#diff-c9e91daca6c63a13ee23c28ab3d5ac27adadc2966b451a0f26b7294083c36e5bR17) |
🛠 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.