pennersr / django-healthpoint Goto Github PK
View Code? Open in Web Editor NEWFramework for adding an endpoint for health checks to your project.
License: MIT License
Framework for adding an endpoint for health checks to your project.
License: MIT License
Warning:
/usr/local/lib/python3.7/site-packages/healthpoint/urls.py:7: RemovedInDjango40Warning: django.conf.urls.url() is deprecated in favor of django.urls.re_path()
Expected behavior:
For Django 3 users, it does not throw this warning.
Healthpoint does the health checks first before checking which user is doing the request. After doing the actual health checks it decides whether the results are allowed to be displayed to the user.
When you are doing a request with a staff member or with the special Basic authentication credentials, you will see the results in the response. Otherwise you just get a status code.
The health checks itself can have some latency as checking connectivity to related services (database, object storage etc.) is a typical use case for this package.
When an attacker knows about the health check endpoint it could in theory create a DoS attack by calling the endpoint without any authentication at a high request rate.
There are several ways how to deal with this problem. According to me introducing a single boolean setting to require basic authentication when basic authentication is configured should be sufficient.
Looking forward to feedback on how to handle this. ๐
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.