tarampampam / error-pages

🚧 Pretty server's error pages in the docker image & git repository (for traefik, k8s, nginx and so on)
https://tarampampam.github.io/error-pages/
MIT License
833 stars 81 forks source link

IP Restricted additional information #236

Open ReptoxX opened 11 months ago

ReptoxX commented 11 months ago

Is there an existing issue for this?

Describe the problem to be solved

I want to only enable SHOW_DETAILS when the request comes from a specific ip range. Ex. Customers don't really need to know where the request is going inside the k8s cluster. But for debugging, it would be beneficial.

Suggest a solution

Add an environment variable to allow source-ip ranges for SHOW_DETAILS.

Additional context

No response

tarampampam commented 2 months ago

Hello there, and thank you for raising this issue! May I ask why you prefer not to enable detailed debugging information in development or staging environments while keeping it disabled in production? This approach seems more correct, doesn't it?