Skip to content
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

How do I lock down the access to my backend to only specified instance(s) of Azure Front Door? #36141

Closed
SvetlanaDevOps opened this issue Jul 30, 2019 · 5 comments

Comments

@SvetlanaDevOps
Copy link

Answer here describes how to allow access for Azure Front Door Services in general. But how can I restrict access only to my particular Front Door instance? Or to some several instances, in general.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@TravisCragg-MSFT
Copy link
Member

@SvetlanaDevOps This article tells how to use IP restrictions to restrict traffic to only be from the Azure Front Door service, but you can also configure your web site to only accept requests from specific X-Forwarded-Host header values, meaning that only requests meant for your web site will be processed by your servers.

It is not a good practice to only allow requests from a specific IP or IPs (outside of the Front Door IP range) when using front door, because the forwarded traffic can come from multiple different edge locations.

@msrini-MSFT
Copy link
Contributor

@SvetlanaDevOps , If you have any further questions, feel free to tag me or Travis. For now I will go ahead and close this issue.

@awentzel
Copy link
Contributor

awentzel commented Jun 19, 2020

@SvetlanaDevOps but you can also configure your web site to only accept requests from specific X-Forwarded-Host header values

@TravisCragg-MSFT or @msrini-MSFT Could you verify that this "can" be the only method?
The other method "can" be to match on GET header for X-Azure-FDID in middleware?

Your paragraph was more specific than what's documented and seems more clear. I'm looking for verification that either IP restrictions can be used OR middleware with X-Azure-FDID are needed. Both are not.

What is the best practice recommendation?

I think this would be a welcome addition to the documentation.

I've also been updating SO question as I dig in deeper to completely understand and test the scenarios.

@awentzel
Copy link
Contributor

awentzel commented Jun 22, 2020

@SvetlanaDevOps Please consider re-opening this Issue to update the documentation to be accurate or should I file another issue for this request?

@RyanHill-MSFT
Copy link
Contributor

RyanHill-MSFT commented Jun 23, 2020

@awentzel, it's best to open a new issue. Sorry for the confusion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants