sha174n opened a new pull request, #40327: URL: https://github.com/apache/superset/pull/40327
## Summary Adds environment variable control for the Werkzeug debugger in Docker development containers. ## Changes - Added `SUPERSET_DEBUG_ENABLED` environment variable check - Debugger disabled by default, enabled only when explicitly requested - Clear startup messaging shows current debugger state - Maintains all existing functionality for development workflows ## Usage **Default behavior (secure):** ```bash docker compose up app # Shows: "🔒 Werkzeug debugger disabled" ``` **Enable debugging when needed:** ```bash SUPERSET_DEBUG_ENABLED=true docker compose up app # Shows: "⚠️ Werkzeug debugger enabled (requires PIN for /console access)" ``` ## Testing Instructions 1. Start dev container with default settings - verify debugger disabled message 2. Start with `SUPERSET_DEBUG_ENABLED=true` - verify debugger enabled message 3. Confirm existing development workflows unchanged 4. Verify shell script syntax with `bash -n docker/docker-bootstrap.sh` 🤖 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
