Skip to content

userdb: mark PII fields as sensitive in user records#40978

Merged
yuwata merged 1 commit intosystemd:mainfrom
dylanmtaylor:mark-pii-sensitive
Mar 11, 2026
Merged

userdb: mark PII fields as sensitive in user records#40978
yuwata merged 1 commit intosystemd:mainfrom
dylanmtaylor:mark-pii-sensitive

Conversation

@dylanmtaylor
Copy link
Copy Markdown
Contributor

Mark realName, emailAddress, and location as sensitive in JSON user records so that they are excluded from debug log output. These fields contain personally identifiable information that should not be leaked in logs, which are generally more accessible than the user database itself.

This was originally part of #40954 but was split out into its own PR for separate discussion, as there were differing opinions on whether the sensitive flag is appropriate for PII fields (vs. only key material). @bluca noted that the primary value is avoiding PII in log dumps, not memory zeroing.

@github-actions github-actions bot added util-lib please-review PR is ready for (re-)review by a maintainer labels Mar 6, 2026
@dylanmtaylor
Copy link
Copy Markdown
Contributor Author

#40954 (review)

@dylanmtaylor dylanmtaylor force-pushed the mark-pii-sensitive branch 2 times, most recently from 053b60a to bb9b2ca Compare March 6, 2026 16:11
@dylanmtaylor dylanmtaylor requested a review from YHNdnzj March 6, 2026 16:11
@dylanmtaylor dylanmtaylor force-pushed the mark-pii-sensitive branch 2 times, most recently from 959daf3 to a4e0683 Compare March 9, 2026 13:30
@keszybz
Copy link
Copy Markdown
Member

keszybz commented Mar 9, 2026

The code is simple. @poettering had some doubts because this is just local… But it seems fine to do this. I don't think we'd ever need to log the full name and other details. So it seems reasonable to do this…

@keszybz keszybz requested a review from poettering March 9, 2026 14:34
@keszybz keszybz added this to the v260 milestone Mar 9, 2026
@dylanmtaylor
Copy link
Copy Markdown
Contributor Author

If we merge this into v260, I will rebase the other PR onto this, so it's just adding the one field for birthDate to the PII section. Nice and easy to do. :) I think that'll make @bluca happy with how the PII is handled.

@dylanmtaylor dylanmtaylor force-pushed the mark-pii-sensitive branch 2 times, most recently from 353a36a to a35f356 Compare March 10, 2026 16:56
Mark realName, emailAddress, and location as sensitive in JSON user
records so that they are excluded from debug log output. These fields
contain personally identifiable information that should not be leaked
in logs, which are generally more accessible than the user database
itself.
@bluca
Copy link
Copy Markdown
Member

bluca commented Mar 10, 2026

Please don't continuosly rebase, as CI capacity is limited, so if there's no code changes are pushed we don't want to waste cycles

@dylanmtaylor
Copy link
Copy Markdown
Contributor Author

Please don't continuosly rebase, as CI capacity is limited, so if there's no code changes are pushed we don't want to waste cycles

Sorry about that, @bluca I thought keeping this up to date was helping with mergability. Regardless, based on #40954 (comment) can we merge this one in now, and I can rebase the other one on top of this?

@keszybz
Copy link
Copy Markdown
Member

keszybz commented Mar 10, 2026

It actually doesn't help, because we lose the previous results. So now we have to wait again.

Lennart said he's doesn't care in the other PR, so let's indeed merge this.

@keszybz keszybz added good-to-merge/waiting-for-ci 👍 PR is good to merge, but CI hasn't passed at time of review. Please merge if you see CI has passed and removed please-review PR is ready for (re-)review by a maintainer labels Mar 10, 2026
@dylanmtaylor
Copy link
Copy Markdown
Contributor Author

It actually doesn't help, because we lose the previous results. So now we have to wait again.

Lennart said he's doesn't care in the other PR, so let's indeed merge this.

I see some failing checks. Do those need to pass before this is merged?

@keszybz
Copy link
Copy Markdown
Member

keszybz commented Mar 10, 2026

Those failures appear to be unrelated. I restarted a bunch of jobs.

@dylanmtaylor
Copy link
Copy Markdown
Contributor Author

For the noble/ppc64el failure: "No valid host was found. There are not enough hosts available."

Not related to this change, just flaky infrastructure.

@dylanmtaylor
Copy link
Copy Markdown
Contributor Author

Interesting. Two mkosi tests failing still with different tests failing on each run.

@dylanmtaylor
Copy link
Copy Markdown
Contributor Author

I think this should be merged, skipping CI. These seem to be intermittent test failures unrelated to this change.

Attempt 1 failures:
Fedora 43: TEST-21-DFUZZER
Debian: TEST-53-TIMER

Attempt 2 failures:
Fedora 43: TEST-02-UNITTESTS
Debian: TEST-29-PORTABLE

@yuwata yuwata merged commit c72860d into systemd:main Mar 11, 2026
59 of 67 checks passed
@github-actions github-actions bot removed the good-to-merge/waiting-for-ci 👍 PR is good to merge, but CI hasn't passed at time of review. Please merge if you see CI has passed label Mar 11, 2026
@dylanmtaylor dylanmtaylor deleted the mark-pii-sensitive branch March 11, 2026 01:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

5 participants