Skip to content

Add CloudFront IP ranges as trusted for real_ip #1906

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

Merged
merged 1 commit into from
Nov 19, 2019

Conversation

jtgeibel
Copy link
Member

This change will allow nginx to recurse past the CloudFront IP
addresses and store the correct client IP address in $remote_addr.
It is important that the correct client IP is available for rate
limiting on the publish endpoint and logging.

This list will need to be updated periodically.

cc @pietroalbini - This should probably be deployed before we enable CloudFront on production.

This change will allow nginx to recurse past the CloudFront IP
addresses and store the correct client IP address in `$remote_addr`.
It is important that the correct client IP is available for rate
limiting on the publish endpoint and logging.

This list will need to be updated periodically.
@rust-highfive
Copy link

r? @sgrif

(rust_highfive has picked a reviewer for you, use r? to override)

@sgrif
Copy link
Contributor

sgrif commented Nov 19, 2019

@bors: r+

@bors
Copy link
Contributor

bors commented Nov 19, 2019

📌 Commit a35c6ea has been approved by sgrif

@bors
Copy link
Contributor

bors commented Nov 19, 2019

⌛ Testing commit a35c6ea with merge 7f03d34...

bors added a commit that referenced this pull request Nov 19, 2019
Add CloudFront IP ranges as trusted for real_ip

This change will allow nginx to recurse past the CloudFront IP
addresses and store the correct client IP address in `$remote_addr`.
It is important that the correct client IP is available for rate
limiting on the publish endpoint and logging.

This list will need to be updated periodically.

cc @pietroalbini - This should probably be deployed before we enable CloudFront on production.
@sgrif
Copy link
Contributor

sgrif commented Nov 19, 2019

I'd like to just replace this with something that pulls from its API at boot time rather than having to remember to update the list periodically, but this is fine for now

@bors
Copy link
Contributor

bors commented Nov 19, 2019

☀️ Test successful - checks-travis
Approved by: sgrif
Pushing 7f03d34 to master...

@bors bors merged commit a35c6ea into rust-lang:master Nov 19, 2019
@jtgeibel jtgeibel deleted the cloudfront-real-ip branch November 23, 2019 05:08
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.

5 participants