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
Enable IP anonymisation by default, let users disable anonymisation during Piwik installation #5052
Comments
Also this was requested by FSF as part of making Piwik a GNU package: #5276
Also:
|
See also Let users deactivate DoNotTrack feature during installation #6566 |
Could we maybe explain also if this has any impact on some features (like geolocation, user tracking)? For example me I'm not familiar enough with every feature of Piwik and that's an information I would like to have: I would be OK to leave this option enabled but I would need to know the tradeoffs. |
Nice! feedback:
|
Actually the anonymizer is enabled when the page is shown. Then the form is optional: if you submit it, what you checked gets saved. If you don't, the default was already applied.
That's how forms are rendered. I took example on the other steps of the installation to have the form, I have no idea how to customize it, especially since the form library is an old PEAR library and I couldn't find any decent doc online (no docs either on developer.piwik.org). Anyway maybe it's not so bad because I'll be adding #6566 and we'll have several checkbox so borders make sense. |
By default today it's 1 byte. Should I change the default in the class? Or should I manually set 2 bytes in the installation? I'm afraid that:
I'd rather go with changing the default value in the Config class TBH. |
OK so actually I think we need to discuss this further and find a consistent solution with #6566 Here is the default config in the code: namespace Piwik\Plugins\PrivacyManager;
class Config
{
private $properties = array(
'doNotTrackEnabled' => array('type' => 'boolean', 'default' => true),
'ipAnonymizerEnabled' => array('type' => 'boolean', 'default' => false),
'ipAddressMaskLength' => array('type' => 'integer', 'default' => 1),
);
Currently in my branch I manually enable "ip anonymization" in the controller (during the installation), which will store I should only store the setting value in database if it differs from the default PHP value (I'm talking only about the install steps). What do you think? |
sounds good!
+1
I don't think it would as we 'should' have stored the number of bytes.
+1 - created an issue so it's notified in changelog #6579 |
Sure, changing default is better. There is this requirement:
|
so is that OK to change the default values in the Config class then? |
I guess so but I haven't tested so I can't confirm |
I have tested with a new account: no value is stored in database (so the default options are used from the config files). If I change the settings of the user, then settings are stored in database afterwards. So if we change the class default values:
So I guess that we can't use that solution… |
I propose that you change the default and then add an Upgrade file for 2.9.0 that will disable IPAnon if it was "unset". So that for users who upgrade that never changed it, we keep their old settings (no IP anonimisation) |
OK I think we have 3 options:
By the way the last solution is just a patch up and doesn't prevent the whole thing from happening again, or happening for other settings too… |
ha missed your comment! OK so that's the solution I prefer too! |
…vious Piwik installs, a migration script disable it on upgrade to 2.9.
…an enrich The PrivacyManager plugins adds 2 settings to that form to let user disable (enabled by default) DoNotTrack and IP anonymization
👍 see also #6160 |
The goal of this ticket is to help Piwik users ensure they comply with advanced Privacy legislation by default, while giving them a chance to disable advanced privacy features, in this case: IP anonymisation.
Steps:
[x] Anonymise IP addresses of users in Piwik (better privacy)
Reasoning to enable by default:
Please comment with any feedback, suggestion or question.
The text was updated successfully, but these errors were encountered: