Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better anonymising of data #16697

Merged
merged 2 commits into from Nov 11, 2020
Merged

Better anonymising of data #16697

merged 2 commits into from Nov 11, 2020

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented Nov 10, 2020

Description:

This anonymise filter is used in the system check page where the user can copy an anonymised version of the system report.

I noticed for example should the DB prefix be matomo_ and the DB user be matomo, then the system check would actually say DB Prefix: $DB_USERNAME_ and thus exposing that the DB username is matomo. In a similar way if say the DB host is localhost, and some value in the system check page includes localhost when this would be replaced with $DB_HOST and therefore exposing the host.

I now changed it to an equals so $DB_USERNAME or $DB_HOST will only be shown when the value matches, not contains. This can be still an issue though eg when the DB prefix is matomo or a value in the system check page is localhost. So maybe we should actually just remove the replacement of these DB related variables to not accidentally leak any information. Will change this in the following commit to no longer do any such replacement.

I guess it was there just in case someone would add print DB User in a system check entry or through some kind of backtrace or something but thinking about it, it should not be an issue.

Review

  • Functional review done
  • Usability review done (is anything maybe unclear or think about anything that would cause people to reach out to support)
  • Security review done see checklist
  • Code review done
  • Tests were added if useful/possible
  • Reviewed for breaking changes
  • Developer changelog updated if needed
  • Documentation added if needed
  • Existing documentation updated if needed

@tsteur tsteur added not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. Needs Review PRs that need a code review labels Nov 10, 2020
@tsteur tsteur added this to the 4.0.0-RC milestone Nov 10, 2020
@tsteur tsteur merged commit 4039709 into 4.x-dev Nov 11, 2020
@tsteur tsteur deleted the betteranonymise branch November 11, 2020 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants