opensafely-core / opensafely-core/opencodelists
Update the Permissions-Policy header to disable Topics
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 60
- Forks
- 16
- Avg merge
- 4d 12h
- Merged PRs (30d)
- 17
Description
See ebmdatalab/sysadmin#354
We disabled Google's Federated Learning of Cohorts (FLoC) on several Bennett sites. FLoC was replaced by Topics in May 2023, so we should also disable Topics.
To do so, we should add the browsing-topics permissions policy to the Permissions-Policy header. In a Django site with django-permissions-policy installed, that means updating the following in settings.py:
PERMISSIONS_POLICY = {
"interest-cohort": [],
"browsing-topics": [],
}
However, first we need to install django-permissions-policy. So, this is blocked on updating Django and other dependencies.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the blocked Django and dependency updates, then locate the site's settings.py. Confirm django-permissions-policy is installed and update the existing PERMISSIONS_POLICY configuration with browsing-topics alongside interest-cohort. Done means the Permissions-Policy header disables Topics as described.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- django, python
- Domain
- backend, security
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100