opensafely-core / opensafely-core/opencodelists
Deny requests not sent via Cloudflare
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 60
- Forks
- 16
- Avg merge
- 4d 12h
- Merged PRs (30d)
- 17
Description
We should set up nginx to deny any requests from users that try to bypass Cloudflare.
An example of this can be seen of this work can be seen here, and Cloudflare's list of IPs is available here.
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 by locating the repository's nginx or deployment configuration, then read the linked Server Fault example and Cloudflare's current IP-ranges documentation. Done means requests that do not come through Cloudflare are denied without blocking Cloudflare-originated traffic, with any relevant configuration checks passing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nginx
- Domain
- infrastructure, security
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100