-
-
Notifications
You must be signed in to change notification settings - Fork 729
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
Anonymise customer first and last names #12862
Anonymise customer first and last names #12862
Conversation
These were added a couple of years ago in openfoodfoundation#8763 But I guess we never noticed the names weren't getting anonymised. The old 'name' field is still in the DB. It was kept for compatibility during migraiton but never cleaned up. I've added the tech debt task to the welcome new devs board now: openfoodfoundation#8835
Hey @dacook , I guess this PR is dependent on completing openfoodfoundation/ofn-install#937, right? |
Yes you're right, sorry we can't deploy PRs to the new uk staging server yet. BTW I just noticed a mistake in the description above, have now fixed that. |
@filipefurtad0 @dacook i'm removing the feedback needed label as I think this is unblocked now - correct? |
Yes, that's correct thanks. |
Not sure this is something with the PR - I've noticed this with other PRs today as well - but staging is failing: So, I was not able to test this... |
That's odd. You tried to deploy to uk-staging but it looks like it tried to deploy to all staging servers. And maybe another process was deploying at the same time? |
The deploy script on uk-staging was wrong. It did deploy to all staging servers at the same time. I fixed it manually. I'll ask in Slack what the cause may be. |
Hey, it seems the staging-UK key has changed so I'm getting:
Where can I find the new key? (posted in #devops too, in case someone is online) |
You don't need to get a new key from somewhere. The host will supply it. You just have to delete the old keys first:
This warning is to prevent you from connecting to a malicious server pretending to be staging-uk. So if we hadn't changed servers then this warning would be worrying. But since we did change servers, we can forget the old key and ssh will automatically use the new key. |
Thanks for that hint @mkllnk , I've managed to log in to the staging server and run the command. Before running it: After running the script: I've noticed though, that email accounts were also anonymized, for example, the account I was using was changed as well - I've noticed this on the top right corner: (This means our log in information needs to be updated). I'm not sure this was intended. It's not a major issue, but not mentioned on the description - I was expecting only the customer names to be anonymized. Do you think this is ok to be merged as is @dacook ? Please feel free to, if this is ok. |
That's necessary because the email address often contains the person's name as well. |
Thanks. Perhaps it would be appropriate to skip admin accounts, for convenience. But as we don't frequently refresh staging databases we probably don't need to consider that right now. |
These were added a couple of years ago in #8763 But I guess we never noticed the names weren't getting anonymised.
Now they will be anonymised whenever we run the rake task
ofn:data:anonymize
. This task is used when refreshing staging servers.The old 'name' field is still in the DB. It was kept for compatibility during migraiton but never cleaned up. I've added the tech debt task to the welcome new devs board now: #8835
What should we test?
Run the script and check that customer names can not be viewed in the system.
This must be executed on uk_staging because it was recently refreshed from prod and the customer names will still be present. IE:
pr-staged-uk
label and wait for the PR to be deployed.Dependencies