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

Create a health check endpoint that ignores ALLOWED_HOSTS check #45

Open
smaniotto opened this issue Jan 7, 2020 · 2 comments · May be fixed by #208
Open

Create a health check endpoint that ignores ALLOWED_HOSTS check #45

smaniotto opened this issue Jan 7, 2020 · 2 comments · May be fixed by #208

Comments

@smaniotto
Copy link
Contributor

The default health check endpoint for load balancers normally is "/", which by default returns a 404, and it sends the request with an internal IP host, that is blocked by ALLOWED_HOSTS checking, returning a 403.

A suggestion is creating a "/health-check" endpoint that simply returns a 200 back and creating a middleware to ignore allowed host checking for this endpoint. Ideas?

@rodolfolottin
Copy link
Contributor

rodolfolottin commented Oct 22, 2020

I think that we can close this issue since Fred has already implemented it @CheesecakeLabs/backend

I am just not so sure about what @smaniotto is suggesting in "creating a middleware to ignore allowed host checking for this endpoint"

@fredericojordan
Copy link
Contributor

I think he means to not enforce the ALLOWED_HOSTS check on the "/health-check" endpoint.
The suggestion is to implement it through a Middleware.

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

Successfully merging a pull request may close this issue.

3 participants