COS301-SE-2024 / IoT-DIRfram

This project aims to develop software for a Raspberry Pi that automatically executes when connected via USB or UART to retrieve information from an IoT device. The software will gather details such as firmware version, chip model, and voltage usage, compiling them into an XML format.
0 stars 0 forks source link

Feature/uart #54

Closed u21513768 closed 1 month ago

u21513768 commented 1 month ago

This contains all the necessary code needed for the python side/hardware side of the code. It contains the individual components that make up the python script as well as the bin directory., the contents of which should be placed in /usr/local/bin of the pi on which the scripts will run

Users to review merge request: @lloydcreighton @CarterShin

gitguardian[bot] commented 1 month ago

⚠️ GitGuardian has uncovered 5 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 | | | -------------- | ------------------ | ------------------------------ | ---------------- | --------------- | -------------------- | | [11716218](https://dashboard.gitguardian.com/workspace/301252/incidents/11716218?occurrence=148474063) | Triggered | MongoDB Credentials | 30812285725f46daa697f6bf8a9340bf86abfaa6 | src/upload_to_server.py | [View secret](https://github.com/COS301-SE-2024/IoT-DIRfram/commit/30812285725f46daa697f6bf8a9340bf86abfaa6#diff-f56bd97d81a0c3dfd3ba734d6e588334a1a6921da5ffb5fc46861512928e8a8fR5) | | [11716218](https://dashboard.gitguardian.com/workspace/301252/incidents/11716218?occurrence=148474064) | Triggered | MongoDB Credentials | 07fafe1a1ca41d4817df5365bc388fe9fba39212 | src/upload_to_server.py | [View secret](https://github.com/COS301-SE-2024/IoT-DIRfram/commit/07fafe1a1ca41d4817df5365bc388fe9fba39212#diff-f56bd97d81a0c3dfd3ba734d6e588334a1a6921da5ffb5fc46861512928e8a8fL4) | | [11716218](https://dashboard.gitguardian.com/workspace/301252/incidents/11716218?occurrence=148474065) | Triggered | MongoDB Credentials | d9fed4daf4b723a5543bc9aed2e42682c9d00a2a | python/testing_functions/upload_to_server.py | [View secret](https://github.com/COS301-SE-2024/IoT-DIRfram/commit/d9fed4daf4b723a5543bc9aed2e42682c9d00a2a#diff-7a38226dd2874867b467d8e75cce2a337cf809aabdac33517d9787cbcb5c6053L5) | | [11716218](https://dashboard.gitguardian.com/workspace/301252/incidents/11716218?occurrence=148474066) | Triggered | MongoDB Credentials | 30812285725f46daa697f6bf8a9340bf86abfaa6 | src/upload_to_server.py | [View secret](https://github.com/COS301-SE-2024/IoT-DIRfram/commit/30812285725f46daa697f6bf8a9340bf86abfaa6#diff-f56bd97d81a0c3dfd3ba734d6e588334a1a6921da5ffb5fc46861512928e8a8fL5) | | [11716218](https://dashboard.gitguardian.com/workspace/301252/incidents/11716218?occurrence=148474067) | Triggered | MongoDB Credentials | 1db428ca5ab9a183dd4c72ec3d38a755ed11c093 | src/upload_to_server.py | [View secret](https://github.com/COS301-SE-2024/IoT-DIRfram/commit/1db428ca5ab9a183dd4c72ec3d38a755ed11c093#diff-f56bd97d81a0c3dfd3ba734d6e588334a1a6921da5ffb5fc46861512928e8a8fR4) |
🛠 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/specifics/mongo_uri#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.

u21513768 commented 1 month ago

Not sure why it's giving these errors, these files are not part of this branch

u21513768 commented 1 month ago

Solved it!

CarterShin commented 1 month ago

Please rebase your branch with dev to resolve conflicts