drush icon indicating copy to clipboard operation
drush copied to clipboard

Add sanitization for dblog

Open primsi opened this issue 2 years ago • 2 comments

Database log entries may contain user-related information, such as debug data. In use cases, where sanitization is used when importing prod db to staging environments, it may not be as relevant to include log entries from different environments.

We could add a command that takes care of that, but for BC make it opt-in.

If maintainers think this makes sense, I could create a PR for this.

primsi avatar Sep 25 '23 15:09 primsi

I would consider this is plain drupal core enters sensitive info into the logs. If it takes contrib or custom code to do it, I dont think Drush core needs to handle it.

weitzman avatar Sep 28 '23 11:09 weitzman

the watchdog table contains IP's, that many any log entry connected to a user personal.

Berdir avatar Nov 06 '23 13:11 Berdir