-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
chore: Deprecates the ENABLE_JAVASCRIPT_CONTROLS feature flag #26635
chore: Deprecates the ENABLE_JAVASCRIPT_CONTROLS feature flag #26635
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #26635 +/- ##
==========================================
- Coverage 69.18% 69.04% -0.14%
==========================================
Files 1948 1938 -10
Lines 76036 75609 -427
Branches 8478 8478
==========================================
- Hits 52604 52204 -400
+ Misses 21265 21238 -27
Partials 2167 2167
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
will there be a new feature to replace this deprecation? |
We're open to proposals! As it stands, there are no contenders, but this feature needs to be removed as a known security vector. In my mind, its replacement would be something templating-based (markdown or jinja) that is handed the full data object, and can render tooltip content. It should be something that can be added to any plugin (not just DeckGL). It should not allow arbitrary JavaScript (that's a security problem). It would definitely be subject to a SIP, and we're willing to consider a SIP from anyone who wants to contribute such a feature. |
SUMMARY
As part of the 4.0 approved initiatives, this PR deprecates the
ENABLE_JAVASCRIPT_CONTROLS
feature flag which is currentlyFalse
by default and used to enable programmers to customize certain charts (like the geospatial ones) by inputting javascript in controls. This exposes an XSS security vulnerability.TESTING INSTRUCTIONS
CI.
ADDITIONAL INFORMATION