Skip to content
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

Conversation

michael-s-molina
Copy link
Member

SUMMARY

As part of the 4.0 approved initiatives, this PR deprecates the ENABLE_JAVASCRIPT_CONTROLS feature flag which is currently False 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

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • 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

@michael-s-molina michael-s-molina added the v4.0 Label added by the release manager to track PRs to be included in the 4.0 branch label Jan 16, 2024
@michael-s-molina michael-s-molina requested a review from a team January 16, 2024 16:21
Copy link

codecov bot commented Jan 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (7ca6d8c) 69.18% compared to head (0bd9243) 69.04%.
Report is 1 commits behind head on master.

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              
Flag Coverage Δ
hive 53.58% <ø> (-0.11%) ⬇️
mysql 77.88% <ø> (-0.16%) ⬇️
postgres 77.98% <ø> (-0.19%) ⬇️
presto 53.53% <ø> (-0.11%) ⬇️
python 82.73% <ø> (-0.13%) ⬇️
sqlite 77.57% <ø> (-0.19%) ⬇️
unit 55.81% <ø> (-0.08%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@michael-s-molina michael-s-molina merged commit d5b62d8 into apache:master Jan 17, 2024
34 checks passed
Muhammed-baban pushed a commit to intellica-tech/reporting-tool that referenced this pull request Jan 19, 2024
@JZ6
Copy link
Contributor

JZ6 commented Mar 14, 2024

will there be a new feature to replace this deprecation?

@rusackas
Copy link
Member

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.

sfirke pushed a commit to sfirke/superset that referenced this pull request Mar 22, 2024
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 4.0.0 labels Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/XS v4.0 Label added by the release manager to track PRs to be included in the 4.0 branch 🚢 4.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants