-
Notifications
You must be signed in to change notification settings - Fork 28
Default debug blacklist/whitelist for new projects? #1236
Comments
Sounds like a good idea to me. Go for it. |
The problem seems to be that the Whoops package doesn't currently support whitelisting... |
The problem with packages is that the stuff can get dumped before packages are registered. I did a similar package, but I couldn't find a reasonable way to register it soon enough. Currently I have it so that the developer must call my class in The only "automatic" way I could think of was to edit the bootstrap automatically. Maybe I'll do that later. |
Note for anyone reading this. A simple approach is to just add this to you
This will hide the most sensitive data from your whoops error page. My suggestion in this ticket was to make something like this the default setting. |
Sir actually i tried your code in my project.but it didnt worked. |
@VishwasShetty install Laravel Ignition to be your error page and you don't need to worry about the blacklist anymore: https://flareapp.io/docs/ignition-for-laravel/installation |
That is wrong. Sometimes the app crashes before Ignition is started but after Whoops is started, so one can still get their variables dumped in a most unexpected way. |
This should be definitely hidden by default, no matter what! Just stating that somewhere in the docs is simply not good enough. People might not read docs entirely or forget about it. |
As previous stated, you can add the following to
This DEFINITELY works. And with Laravel 7 and 8 they added |
Based on this pull request laravel/framework#21336 and this comment laravel/framework#21336 (comment)
As suggested in the pull request. Would it be a good idea if we hide the credentials from the whoops debug page by default?
It can prevent accidental password leaks for projects that are deployed to a live environment with debug mode still on.
The text was updated successfully, but these errors were encountered: