Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add security improvements with Morgan and Helmet #671

Merged

Conversation

NirajD04
Copy link

**### Overview: This PR enhances the security and logging capabilities of the application by integrating the following middleware:

Morgan:**

Adds HTTP request logging to monitor and debug the application effectively.
Configured to log request method, URL, response time, and status codes.
Helmet:

Improves security by setting various HTTP headers to protect against common vulnerabilities.
Ensures all routes are utilizing Helmet to enforce security best practices.

**Changes Made:

Installed and configured Morgan and Helmet as middleware in the Express application.
Updated the server configuration to include logging and security enhancements.
Benefits:

Improved Security: Adds a layer of protection against potential security threats.
Better Debugging: Provides clear logging of incoming requests, aiding in monitoring application behavior.**

@NirajD04
Copy link
Author

@tushargupta1504 please accept this pr under gssoc,24 extended.

@NirajD04
Copy link
Author

issue #671

@tushargupta1504 tushargupta1504 merged commit efbb01b into tushargupta1504:main Nov 10, 2024
1 check passed
@NirajD04
Copy link
Author

assign this also
Otherwise i wont count
@tushargupta1504

@NirajD04
Copy link
Author

**it will not be counted if not ASSINED THIS

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

Successfully merging this pull request may close these issues.

3 participants