Skip to content

fix(results): mask sensitive id values on result cards - #1954

Open
notlakshitha wants to merge 1 commit into
libredb:mainfrom
notlakshitha:fix/1940-resultcard-mask-id
Open

notlakshitha wants to merge 1 commit into
libredb:mainfrom
notlakshitha:fix/1940-resultcard-mask-id

Conversation

@notlakshitha

Copy link
Copy Markdown
Contributor

Fixes #1940.

ResultCard was printing the id field with String(idValue) even when display masking was on, so a sensitive id column (e.g. national_id) showed in clear on the phone layout while the table view masked it. Mask the id the same way as the title, and add a regression test.

Focused ResultCard tests passed locally (9).

ResultCard printed the id field with String(idValue) even when display
masking was on, so a national_id (or any *_id) column showed in clear on
the phone layout while the table view masked it (libredb#1940).
@codecov

codecov Bot commented Oct 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Display masking: the result card shows a masked id column in clear

1 participant