opensafely-core / opensafely-core/opencodelists

Deny requests not sent via Cloudflare

Open
#2,145 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

initiative:onboarding security
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.