Skip to content

[Feature]: Improve security and setup by adding secure session cookies and .env.example file #80

@gar6307

Description

@gar6307

Where are you from?

Mention the even you are from.

[Yes] GSSoc

[No ] OSCI

Description of the Feature

I want to make the backend more secure and easier for new contributors to set up.

Proposed changes:

  1. Add secure session cookie settings like httpOnly, sameSite, and secure flags.
  2. Disable the X-Powered-By header to hide Express info for security.
  3. Create a .env.example file to help new contributors quickly set up environment variables.
  4. Improve the /api/health endpoint by showing database name, memory usage, and environment details.

These changes will improve security, make the project easier to understand, and help new contributors get started faster.

Estimated time to implement the feature

1-2 days

Additional context

These are small but important changes that will make the project more professional and contributor-friendly.

For example:

  • Secure session cookies prevent session hijacking.
  • .env.example file makes setup easier for first-time contributors.
  • Improving the health check will help with monitoring and debugging.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions