Azure / Azure/static-web-apps

Having an Empty Array in allowedIpRanges Denies All Access to App

Open
#814 4 comments 0 reactions 0 assignees View on GitHub
triaged
Dominant language
No language data
Stars
346
Forks
67
PR merge metrics
No merged PRs in 30d

Description

Not sure if this is a bug or a feature request, but in my mind this should work differently than it currently does.

I have three instances of a Static Web App - test, staging and production. These have different IP whitelist rules to limit access accordingly:
- test is only allowed from a couple of VPN IP's that the developers use
- staging is allowed from those same IP's, plus a couple of other ones that testers/security auditors use
- production should be open to everyone

Since Static Web Apps don't (yet?) allow for having different `staticwebapp.config.json` files for different instances, I generate the file inside the deployment pipeline using a shell script, something like this:

```
generate_config() {
cat > $CONFIG_FILE < $CONFIG_FILE <

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.