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

feat: Make async query JWT cookie domain configurable #14007

Merged
merged 2 commits into from
Apr 12, 2021

Conversation

benjreinhart
Copy link
Contributor

@benjreinhart benjreinhart commented Apr 7, 2021

SUMMARY

This allows folks to specify the domain attribute for a cookie set by the global async query feature. This is similar to the other configuration related to this cookie (e.g., GLOBAL_ASYNC_QUERIES_JWT_COOKIE_SECURE).

ADDITIONAL INFORMATION

  • Has associated issue:
  • 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

@codecov
Copy link

codecov bot commented Apr 8, 2021

Codecov Report

Merging #14007 (63fa747) into master (667eb83) will decrease coverage by 0.13%.
The diff coverage is 100.00%.

❗ Current head 63fa747 differs from pull request most recent head e00363a. Consider uploading reports for the commit e00363a to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master   #14007      +/-   ##
==========================================
- Coverage   79.40%   79.26%   -0.14%     
==========================================
  Files         938      938              
  Lines       47541    47544       +3     
  Branches     5940     5940              
==========================================
- Hits        37749    37687      -62     
- Misses       9666     9731      +65     
  Partials      126      126              
Flag Coverage Δ
cypress 56.08% <ø> (+0.02%) ⬆️
hive ?
mysql 80.76% <100.00%> (+<0.01%) ⬆️
postgres 80.79% <100.00%> (+<0.01%) ⬆️
presto 80.51% <100.00%> (+0.01%) ⬆️
python 81.09% <100.00%> (-0.27%) ⬇️
sqlite 80.39% <100.00%> (+<0.01%) ⬆️

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

Impacted Files Coverage Δ
superset/config.py 91.00% <100.00%> (+0.03%) ⬆️
superset/utils/async_query_manager.py 81.37% <100.00%> (+0.37%) ⬆️
superset/db_engines/hive.py 0.00% <0.00%> (-82.15%) ⬇️
superset/db_engine_specs/hive.py 74.42% <0.00%> (-16.42%) ⬇️
superset/connectors/sqla/models.py 90.53% <0.00%> (-0.24%) ⬇️
superset/utils/core.py 88.83% <0.00%> (-0.13%) ⬇️
superset/db_engine_specs/presto.py 89.95% <0.00%> (+0.41%) ⬆️
superset-frontend/src/filters/utils.ts 100.00% <0.00%> (+4.76%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 667eb83...e00363a. Read the comment docs.

Copy link
Member

@craig-rueda craig-rueda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Is there a test for the JWT handling? Would probably be good to validate this.

@robdiciuccio
Copy link
Member

Looks good, but now needs to be synced with master.

@benjreinhart benjreinhart force-pushed the benjreinhart/jwt-cookie-domain branch from aaf386c to e00363a Compare April 8, 2021 22:32
@benjreinhart
Copy link
Contributor Author

Is there a test for the JWT handling? Would probably be good to validate this.

I did not see one, though in this case I feel ok without one given it's a simple change.

@robdiciuccio robdiciuccio merged commit 1c6173c into apache:master Apr 12, 2021
amitmiran137 pushed a commit that referenced this pull request Apr 13, 2021
* master:
  fix: unable to apply logging format (#14074)
  refactor: Bootstrap to AntD - Slider (#13989)
  chore(spa refactor): refactoring dashboard to use api's instead of bootstrapdata (#13306)
  fix(listview): update listview feature flag (#13906)
  Add docs for configuring Docker Compose setup (#13961)
  feat: invalid password error message (Postgres) (#14038)
  fix: flacky test in test_update_dataset_item_w_override_columns (#14082)
  feat: Implement Celery SoftTimeLimit handling (#13740)
  feat: only send alert error emails to owners of the alert (#13862)
  feat: add descriptions to report emails (#13827)
  Make chart exclude itself from cross filtering (#14046)
  fix: fix bug when remove chart not  removing it's related cross filter data (#14081)
  feat(native-filters): Add default first value to select filter (#13726)
  feat: Make async query JWT cookie domain configurable (#14007)
  fix: add exception to catch session not having JWT (#14036)

# Conflicts:
#	superset-frontend/src/dashboard/actions/hydrate.js
#	superset/views/core.py
amitmiran137 pushed a commit that referenced this pull request Apr 13, 2021
* master: (53 commits)
  test: Adds tests to the UndoRedoKeyListeners component (#13919)
  chore: Adds dataMask reducer to reducerIndex (#13951)
  test: Tests audit for the Dashboard FilterBar (#13916)
  fix: unable to apply logging format (#14074)
  refactor: Bootstrap to AntD - Slider (#13989)
  chore(spa refactor): refactoring dashboard to use api's instead of bootstrapdata (#13306)
  fix(listview): update listview feature flag (#13906)
  Add docs for configuring Docker Compose setup (#13961)
  feat: invalid password error message (Postgres) (#14038)
  fix: flacky test in test_update_dataset_item_w_override_columns (#14082)
  feat: Implement Celery SoftTimeLimit handling (#13740)
  feat: only send alert error emails to owners of the alert (#13862)
  feat: add descriptions to report emails (#13827)
  Make chart exclude itself from cross filtering (#14046)
  fix: fix bug when remove chart not  removing it's related cross filter data (#14081)
  feat(native-filters): Add default first value to select filter (#13726)
  feat: Make async query JWT cookie domain configurable (#14007)
  fix: add exception to catch session not having JWT (#14036)
  Use consistent chart value (#14031)
  fix: Use superset generic db to catch external_metadata queries (#13974)
  ...
allanco91 pushed a commit to allanco91/superset that referenced this pull request May 21, 2021
QAlexBall pushed a commit to QAlexBall/superset that referenced this pull request Dec 29, 2021
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.2.0 labels Mar 12, 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 🚢 1.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants