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

Support local development using services behind firewall #367

Closed
pakrym opened this issue Jan 26, 2022 · 2 comments
Closed

Support local development using services behind firewall #367

pakrym opened this issue Jan 26, 2022 · 2 comments

Comments

@pakrym
Copy link

pakrym commented Jan 26, 2022

Some services (like Azure SQL) are not exposed to the internet by default. When developing an application that uses Azure SQL a firewall rule needs to be manually added to allow remote access.

It would be nice if azd was able to simplify this scenario somehow. One way might be to have a well-known parameter name DEV_EXTERNAL_IP and use it to conditionally populate the firewall rules in local dev scenarios.

@karolz-ms
Copy link
Contributor

Having a parameter that allows traffic from a single IP to go through does not seem to be a flexible enough solution. Because of NAT, and as the developer is changing location, the IP that Azure SQL "sees" as the source of traffic might change unpredictably.

Here is what the baseline should be IMO:

  1. In production the allowed traffic should come only from a set of well-known hosts that are part of the application. This is usually done via vnet settings.
  2. In development the server should accept all properly authenticated traffic.

I am going to follow up with the Azure SQL team to see if they think the above is valid and what are their general thoughts on the use of the SQL firewall during development vs production.

If the above holds, our problem is not so much the firewall configuration for SQL Azure, but the fact that we haven't really embraced the idea of production-vs-development deployments. @jongio @markweitzel do we have a (design) issue for that?

@savannahostrowski savannahostrowski transferred this issue from another repository Jul 29, 2022
@danieljurek danieljurek transferred this issue from another repository Aug 4, 2022
@karolz-ms karolz-ms added this to the Backlog milestone Aug 16, 2022
@karolz-ms karolz-ms removed their assignment Nov 16, 2022
@rajeshkamal5050
Copy link
Contributor

Closing this in favor of #1142

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

5 participants