You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "mistercrunch (via GitHub)" <gi...@apache.org> on 2026/03/06 00:32:08 UTC

[PR] fix(dev): allow external access to webpack dev server via env var [superset]

mistercrunch opened a new pull request, #38459:
URL: https://github.com/apache/superset/pull/38459

   ### SUMMARY
   
   Adds a `WEBPACK_ALLOW_ALL_HOSTS` env var that, when set, configures webpack-dev-server with `allowedHosts: 'all'`. This enables access from external IPs (e.g. remote dev environments like Agor, Codespaces, or any cloud-based dev setup) without hardcoding host entries.
   
   - **`superset-frontend/webpack.config.js`**: Checks `WEBPACK_ALLOW_ALL_HOSTS` env var; when truthy uses `allowedHosts: 'all'`, otherwise keeps the existing restrictive list
   - **`docker-compose-light.yml`**: Passes `WEBPACK_ALLOW_ALL_HOSTS=true` by default since the light compose already binds to `0.0.0.0`
   - **`.agor.yml`**: Environment template for multi-worktree development using `docker-compose-light.yml`
   
   Default local development behavior is unchanged — the env var must be explicitly set to opt in.
   
   ### TESTING INSTRUCTIONS
   
   1. Start with `docker-compose-light.yml`: `NODE_PORT=9001 docker compose -f docker-compose-light.yml up -d`
   2. Access the dev server from an external IP — should work (previously rejected by `allowedHosts`)
   3. Without the env var (`WEBPACK_ALLOW_ALL_HOSTS=`), external access should be rejected as before
   
   ### ADDITIONAL INFORMATION
   - [ ] Has associated issue:
   - [ ] Required feature flags:
   - [ ] Changes UI
   - [ ] Includes DB Migration (follow approval process in [SIP-59](https://github.com/apache/superset/issues/13351))
     - [ ] Migration is atomic, supports rollback & is backwards-compatible
     - [ ] Confirm DB migration upgrade and downgrade tested
     - [ ] Runtime estimates and downtime expectations provided
   - [ ] Introduces new feature or API
   - [ ] Removes existing feature or API
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] fix(dev): allow external access to webpack dev server via env var [superset]

Posted by "mistercrunch (via GitHub)" <gi...@apache.org>.
mistercrunch closed pull request #38459: fix(dev): allow external access to webpack dev server via env var
URL: https://github.com/apache/superset/pull/38459


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] fix(dev): allow external access to webpack dev server via env var [superset]

Posted by "bito-code-review[bot] (via GitHub)" <gi...@apache.org>.
bito-code-review[bot] commented on PR #38459:
URL: https://github.com/apache/superset/pull/38459#issuecomment-4008693632

   AI Code Review is in progress (usually takes 3 to 15 minutes unless it's a very large PR).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org