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

Adding explicit Flask session cookie options to default config #8317

Merged
merged 2 commits into from
Sep 29, 2019

Conversation

craig-rueda
Copy link
Member

CATEGORY

Choose one

  • Bug Fix
  • Enhancement (new features, refinement)
  • Refactor
  • Add tests
  • Build / Development Environment
  • Documentation

SUMMARY

This will enforce a SameSite policy of Lax for session cookies served up by Superset.
(https://www.owasp.org/index.php/SameSite)
The SameSite cookie attribute attempts to solve many of the issues associated with cross origin attacks as they relate to cookies with a single option.

In this PR, I'm basically surfacing the underlying Flask options which control these options and am providing a sensible set of defaults.

REVIEWERS

@mistercrunch @dpgaspar

@codecov-io
Copy link

Codecov Report

Merging #8317 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #8317      +/-   ##
==========================================
+ Coverage   67.74%   67.75%   +<.01%     
==========================================
  Files         451      451              
  Lines       22699    22702       +3     
  Branches     2370     2370              
==========================================
+ Hits        15378    15381       +3     
  Misses       7184     7184              
  Partials      137      137
Impacted Files Coverage Δ
superset/config.py 89% <100%> (+0.17%) ⬆️

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 3764d43...34913cb. Read the comment docs.

@dpgaspar dpgaspar merged commit cff10eb into apache:master Sep 29, 2019
@dpgaspar dpgaspar deleted the samesite branch September 29, 2019 23:11
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.35.0 labels Feb 28, 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/S 🚢 0.35.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants