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

   ### SUMMARY
   
   PR #36538 modernized example loading to use the import/export framework, 
routing through `import_database()`. This function checks 
`PREVENT_UNSAFE_DB_CONNECTIONS`, which blocks SQLite URIs. In CI/showtime 
environments where this flag is enabled and `SQLALCHEMY_EXAMPLES_URI` is 
SQLite, example loading now fails with:
   
   ```
   SupersetSecurityException: SQLiteDialect_pysqlite cannot be used as a data 
source for security reasons.
   ```
   
   The fix skips the URI safety check when `ignore_permissions=True`, since 
system imports (like examples) use URIs from server config 
(`SQLALCHEMY_EXAMPLES_URI`), not untrusted user input.
   
   ### TESTING INSTRUCTIONS
   
   1. Set `PREVENT_UNSAFE_DB_CONNECTIONS = True` and `SQLALCHEMY_EXAMPLES_URI` 
to a SQLite URI
   2. Run `superset load-examples`
   3. Confirm examples load without the `SupersetSecurityException`
   
   ### ADDITIONAL INFORMATION
   - [ ] Has associated issue:
   - [ ] Required feature flags:
   - [ ] Changes UI
   - [ ] Includes DB Migration
   - [ ] 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: [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]

Reply via email to