Open
Conversation
…o true and added a tabwidth of 2 config(.eslintrc.json): Specified use commonJS, node, recommended eslint and prettier and configured the latest version of ecma script
…onfig config(.prettierrc): Configured the semi colones, set single quotes t…
feat(src/config/db.js): Configured the connection to the database and handling failed attemtps when connecting to the database. feat(src/app.js): Configured the server and added an health route to check if everything is working good. feat(src/server.js): Established connection to the database after launched the server.
Feat/database connection
…ssword. feat(auth/authController.js): Added a login and a register function to add a new user, check wether the user already exist and handled errors using try catch. feat(app.js): Added the auth route.
…tion feat(model/User.js): Added a user model and a function to hash the pa…
feat(models/task.js): Added task model and added a status. feat(task/taskcontroller.js): Added a CRUD with a try catch section for every methods. feat(task/taskRoutes.js): Added a CRUD routes and a middlware to check the validity of the token for each of them. feat(middlewares/authMiddleware.js): Get the token, Check if the token is valid, check if the token exists, Add user to the request and handle errors.
feat(app.js): Added task routes.
…tion using joi to make sure only correct data enters our system. feat(middlewares/validate): Prevents broken/malicious input.
feat(validators/authValidation, taskValidation): Added request valida…
feat(app.js): Added the errorHandler middleware. feat(middlewares/errorHandler.js): Created a middleware to handle requests. feat(jest.config.js): Added necessary jest configuration to initiate unit tests. refactor(routes/task/taskController.js): Refactored the catch method using the errorHandler middleware. feat(tests/app.test.js): Added a test for the route Health in the app.js file.
…r_and_unit_tests update(package.json): Updated test script.
Secured headers (Helmet). Prevented CORS issues. Blocked brute-force attempts. Sanitized requests to prevent NoSQL injection & XSS.
…e_security_and_unti_test feat(src/app.js):
Added cluster to cpu number
|
| GitGuardian id | GitGuardian status | Secret | Commit | Filename | |
|---|---|---|---|---|---|
| - | - | MongoDB Credentials | a0bf529 | .env | View secret |
| - | - | MongoDB Credentials | ec4a850 | .env.example | 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.