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: add option to disable secure cookies and configure samesite #3441

Merged
merged 6 commits into from
Feb 27, 2024

Conversation

matthewelwell
Copy link
Contributor

@matthewelwell matthewelwell commented Feb 20, 2024

Thanks for submitting a PR! Please check the boxes below:

  • I have run pre-commit to check linting
  • I have added information to docs/ if required so people know about the feature!
  • I have filled in the "Changes" section below?
  • I have filled in the "How did you test this code" section below?
  • I have used a Conventional Commit title for this Pull Request

Changes

Adds an environment variables to disable using secure cookies and configuring the value of samesite. This is to be used for deployments inside a private network without a domain / ssl cert.

How did you test this code?

Used a combination of SAME_SITE_COOKIE: strict and USE_SECURE_COOKIES: false to confirm that running the Flagsmith application over http on an internal IP address correctly sets the token. Note that the defaults are set to the same as the previous values.

Copy link

vercel bot commented Feb 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs 🛑 Canceled (Inspect) Feb 26, 2024 5:49pm
flagsmith-frontend-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 26, 2024 5:49pm
flagsmith-frontend-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 26, 2024 5:49pm

@github-actions github-actions bot added front-end Issue related to the React Front End Dashboard api Issue related to the REST API docs Documentation updates labels Feb 20, 2024
Copy link
Contributor

github-actions bot commented Feb 20, 2024

Uffizzi Preview deployment-46906 was deleted.

@codecov-commenter
Copy link

codecov-commenter commented Feb 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.91%. Comparing base (a4f2d64) to head (9ebe844).

❗ Current head 9ebe844 differs from pull request most recent head 75344d7. Consider uploading reports for the commit 75344d7 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3441   +/-   ##
=======================================
  Coverage   95.91%   95.91%           
=======================================
  Files        1092     1092           
  Lines       34003    34005    +2     
=======================================
+ Hits        32613    32615    +2     
  Misses       1390     1390           

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

@matthewelwell matthewelwell marked this pull request as ready for review February 26, 2024 17:36
@matthewelwell matthewelwell changed the title feat: add option to disable secure cookies (WIP) feat: add option to disable secure cookies and configure samesite Feb 26, 2024
@matthewelwell matthewelwell added this pull request to the merge queue Feb 27, 2024
Merged via the queue into main with commit 7ec5491 Feb 27, 2024
24 checks passed
@matthewelwell matthewelwell deleted the feat/add-option-to-disable-secure-cookies branch February 27, 2024 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Issue related to the REST API docs Documentation updates front-end Issue related to the React Front End Dashboard
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants