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

Sanitize IP hashes on staging servers #1552

Merged
merged 2 commits into from Jun 5, 2020

Conversation

yvanzo
Copy link
Contributor

@yvanzo yvanzo commented Jun 4, 2020

Problem

IP hashes were stored and displayed to everyone on test.musicbrainz.org since everyone has account admin permissions.

Solution

Do not store IP hashes on staging servers running a sanitized database.
This is the same condition that is already used to inform that all passwords have been reset.

Action

  1. Set DB_STAGING_SERVER_SANITIZED to 1 for test.musicbrainz.org

Copy link
Member

@reosarevok reosarevok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems sensible

lib/DBDefs.pm.sample Outdated Show resolved Hide resolved
lib/MusicBrainz/Server/Controller/Root.pm Outdated Show resolved Hide resolved
In particular, it should be disabled on test.musicbrainz.org where
everyone is admin and can access IP hashes.
@yvanzo
Copy link
Contributor Author

yvanzo commented Jun 5, 2020

Just fixed checking DBDefs keys instead of not yet defined stash entries in commit db5abe3.

@yvanzo yvanzo merged commit ef746ca into metabrainz:master Jun 5, 2020
@yvanzo yvanzo deleted the sanitize-ip-hash branch June 5, 2020 07:36
@mwiencek
Copy link
Member

mwiencek commented Jun 5, 2020

I'd say it's preferable to do that in both places even.

@yvanzo
Copy link
Contributor Author

yvanzo commented Jun 6, 2020

To be addressed in #1555.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants