langleyfoxall / laravel-boilerplate

Boilerplate for Laravel with common tools/plugins for ease of development.
MIT License
2 stars 4 forks source link

Hide environment variable values on exception pages. #30

Open ash123456789 opened 5 years ago

ash123456789 commented 5 years ago

I noticed on one of our projects that we weren't blacklisting environment variables and thought this would be beneficial to add to the boilerplate. This was added in Laravel 5.7.

AlexCatch commented 5 years ago

Could you see a use case where this could be counter intuitive? For me personally showing environment variables in the debug environment isn't exactly a security concern unless a live site is set to debug which I think is a bigger concern + I think it's sometimes useless to see these env variables to check if they're being populated correctly etc.

ash123456789 commented 5 years ago

Could you see a use case where this could be counter intuitive? For me personally showing environment variables in the debug environment isn't exactly a security concern unless a live site is set to debug which I think is a bigger concern + I think it's sometimes useless to see these env variables to check if they're being populated correctly etc.

This is more of preventative measure, since accidents do happen and the possibility of a production environment (or even staging) not being in production mode is not 0.

DivineOmega commented 5 years ago

It's worth considering if/how this change would affect Ignition (if at all), as we'll likely be installing Ignition and/or upgrading the boilerplate to Laravel 6.0 shortly.