🔒️(helm) allow server host and whitelist pod IP for health checks

Updated Django's ALLOWED_HOSTS setting from '*' to the specific host of the
server. Setting ALLOWED_HOSTS to '*' is a security risk as it allows any host
to access the application, potentially exposing it to malicious attacks.
Restricting ALLOWED_HOSTS to the server's host ensures only legitimate
requests are processed.

In a Kubernetes environment, we also needed to whitelist the pod's IP address
to allow health checks to pass. This ensures that Kubernetes liveness and
readiness probes can access the application to verify its health.
This commit is contained in:
lebaudantoine
2024-08-05 16:58:11 +02:00
committed by aleb_the_flash
parent aef85bb1ab
commit d965ee7060
6 changed files with 10 additions and 5 deletions