{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/22"}],"enrichment":{"capability":"Automatically adds an Elastic Beanstalk instance's public IP to Django's ALLOWED_HOSTS during application startup, allowing health checks to succeed without 400 Bad Request errors.","skillfed_tags":["aws-elastic-beanstalk","django-middleware"],"use_cases":["Running a Django application on AWS Elastic Beanstalk without manually managing ALLOWED_HOSTS for each instance's public IP.","Preventing health check failures caused by Django rejecting requests with unrecognized host headers in load-balanced environments.","Automating host validation on Elastic Beanstalk deployments to reduce configuration overhead and deployment errors."],"what_it_does":"django-ebhealthcheck is a Django application that solves a specific problem with AWS Elastic Beanstalk's health check system. When Elastic Beanstalk performs health checks on load-balanced instances, it uses the instance's public IP as the request's host header. By default, Django rejects requests with unrecognized host headers and returns a 400 Bad Request error, causing health checks to fail. This package intercepts that flow at application startup and dynamically adds the instance's public IP to Django's ALLOWED_HOSTS setting, allowing health checks to succeed.\n\nThe package depends only on requests and installs as a simple Django app configuration. Version 2.0.0 and later support IMDSv2 (the newer AWS metadata service); earlier versions support IMDSv1. It is marked Production/Stable but has been dormant since mid-2022, suggesting the problem it solves is stable and rarely needs changes.","worth_installing":"Yes, if you are running Django on AWS Elastic Beanstalk and experiencing health check failures due to ALLOWED_HOSTS validation. It solves a narrow, well-defined problem with minimal dependencies and no security vulnerabilities. The dormant maintenance status is not a concern for a stable, single-purpose utility. Install it if this is your deployment model; skip it otherwise."},"id":"django-ebhealthcheck","links":{"html":"https://skillfed.io/packages/django-ebhealthcheck","md":"https://skillfed.io/packages/django-ebhealthcheck.md","pypi":"https://pypi.org/project/django-ebhealthcheck/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2022-08-22","license_spdx":null,"license_treatment":"permissive","name":"django-ebhealthcheck","python_support":"unspecified","summary":"Django app to add an instance's public IP to ALLOWED_HOSTS for Elastic Beanstalk's health check system"},"popularity":{"monthly_downloads":80208,"position":14309,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2.0.2"}
