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

Review Django middleware #171

Open
1 task
delano opened this issue Jun 27, 2024 · 0 comments
Open
1 task

Review Django middleware #171

delano opened this issue Jun 27, 2024 · 0 comments

Comments

@delano
Copy link
Contributor

delano commented Jun 27, 2024

We need to review and potentially update our Django middleware configuration in apps/api/afb/settings.py. The current setup has some middleware commented out and may not be optimized for our application's needs. Here are the key points to address:

  1. Evaluate the necessity of the commented-out middleware (in the context of Nuxt App->Rest API):
    • SecurityMiddleware
    • DebugCorsMiddleware
    • CsrfViewMiddleware
  2. Assess the order of the middleware, ensuring it follows Django's recommended practices.
  3. Consider adding any missing middleware that could enhance our application's security, performance, or functionality.
  4. Review the use of third-party middleware (corsheaders, log_request_id) and confirm they are up-to-date and necessary.
  5. Document the reasons for including or excluding each middleware in the comments.
  6. Ensure that the middleware configuration is consistent across different environments (development, staging, production).
  7. Test the application thoroughly after any changes to verify that all functionality remains intact.

This review will help us maintain a secure, efficient, and well-documented middleware setup for our Django application.

Related to:

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

No branches or pull requests

1 participant