Only user account-ID in log messages

Created on 19 April 2024, 8 months ago

Problem/Motivation

Various events get logged in the Drupal logging facilities. If the event is related to an account, most times the account's name is used in the log message.

Some examples:
https://git.drupalcode.org/project/externalauth/-/blob/2.0.5/src/Externa...
https://git.drupalcode.org/project/externalauth/-/blob/2.0.5/src/Externa...
https://git.drupalcode.org/project/externalauth/-/blob/2.0.5/src/Externa...

Proposed resolution

To keep the logs clean of personal information I suggest to use the account's entity-ID instead of user-identifiable strings to gain a pseudonymization of the stored messages.

Remaining tasks

Find all occurrences of logged account information and replace it with account entity-IDs.

User interface changes

none

API changes

none

Data model changes

none

Feature request
Status

Active

Version

2.0

Component

Code

Created by

🇦🇹Austria guedressel

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024