You’ll also want to make sure that you’ve enabled the data scrubber, and not just added values to “Additional sensitive fields” text box (which will have no effect if the scrubber is disabled):
Please note that there are lots of values being passed to sentry that I have not deliberately added. The values I am passing are:
$sentryClient->user_context(array(
‘id’ => Session::get(‘user_id’),
‘user_account_type’ => Session::get(‘user_account_type’),
‘selected_company_id’=> Session::get(‘selected_company_id’)
));
However it seems to be scraping all of the Session info.
I can confirm the data scrubber is enabled in settings.
I think our settings won’t apply to additional user context right now. We def should improve it to apply here, but arguably if you want to filter it you should change the app to avoid sending it which will always be safest.
Hi, I agree that it would be safer not to send the values, but I don’t have any control over it. I have tried reduce the sentry logging just down to the automatic error and exception catching by doing:
require_once ‘vendor/sentry/sentry/lib/Raven/Autoloader.php’;
Raven_Autoloader::register();
// Enable Sentry automatic error and exception capturing which is recommended
$sentryClient = new Raven_Client('https://19d762c7df5f4b849a790efffcbbc192:b1bcdcdf3aae49d2b78570a675ec52cf@sentry.io/97114');
$error_handler = new Raven_ErrorHandler($sentryClient);
$error_handler->registerExceptionHandler();
$error_handler->registerErrorHandler();
$error_handler->registerShutdownFunction();
// creates an demo issue for sentry
trigger_error("create error show whether filtered values are being excluded.");
Even if I only use this default error handling the Sentry client is still collecting all of the session variables and passing them to sentry.io. Is there really no way to stop this happening?