Skip to content

Adds option to hide personally identifiable information from section editors before review is complete enabling triple anonymous review.#4416

Merged
joemull merged 29 commits into
r-v1.7.xfrom
anon_se_view
Sep 26, 2024
Merged

Adds option to hide personally identifiable information from section editors before review is complete enabling triple anonymous review.#4416
joemull merged 29 commits into
r-v1.7.xfrom
anon_se_view

Conversation

@ajrbyers

@ajrbyers ajrbyers commented Sep 20, 2024

Copy link
Copy Markdown
Member

Closes #4417

This pull request adds a new security decorator and two new template tags that allow us to hide PII before an article has completed the review stage. Underlying email templates also use this to hide PII in emails.

Note: the custom reply-to setting is mandatory for this feature to work properly as outlined in the pii setting help text

Settings

A new setting se_pii_filter is introduced to enable or disable this feature.

Django Templates

During unassigned and review we hide all author data
Log information is reduced
Document management is locked

Email Templates

Accept, decline, revision and revisions complete templates have all been updated

Emails

The revisions complete email now sets the custom reply to kwarg to ensure the author's email wont leak to the editor.

@ajrbyers ajrbyers changed the base branch from master to r-v1.7.x September 20, 2024 10:18
@ajrbyers ajrbyers marked this pull request as draft September 20, 2024 10:18
@ajrbyers ajrbyers changed the title WIP for anonymising SE unassigned and review stages Adds option to hide personally identifiable information from section editors before review is complete Sep 24, 2024
@ajrbyers ajrbyers marked this pull request as ready for review September 24, 2024 20:57

@joemull joemull left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Seems to be working well generally. Got a few comments in the code, and I'll paste screenshots of the two spots I found where PII is still coming through:

image

image

Comment thread src/security/test_security.py
Comment thread src/utils/install/journal_defaults.json Outdated
Comment thread src/security/decorators.py Outdated
Comment thread src/security/templatetags/securitytags.py Outdated
Comment thread src/utils/install/journal_defaults.json

@joemull joemull left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Here are a few more spots now that I'm loading the right builtin template filters:

image

image

Comment thread src/security/test_security.py
@ajrbyers

Copy link
Copy Markdown
Member Author

I've added the additional fields to the tests, which are passing.

Will now start working on docs for this: #4426

@ajrbyers ajrbyers assigned joemull and unassigned ajrbyers Sep 26, 2024
@ajrbyers ajrbyers requested a review from joemull September 26, 2024 11:40
@joemull joemull merged commit 2e7b1b1 into r-v1.7.x Sep 26, 2024
@joemull joemull deleted the anon_se_view branch September 26, 2024 11:42
@ajrbyers ajrbyers changed the title Adds option to hide personally identifiable information from section editors before review is complete Adds option to hide personally identifiable information from section editors before review is complete enabling triple anonymous review. May 29, 2025
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.

3 participants