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

fix: don't allow bypassing ALLOW_REGISTRATION_WITHOUT_INVITE behaviour #4454

Merged
merged 3 commits into from
Aug 7, 2024

Conversation

matthewelwell
Copy link
Contributor

Changes

This PR adds a new invite_hash field to the payload on the register endpoint to ensure that it's not possible to bypass the ALLOW_REGISTRATION_WITHOUT_INVITE setting.

Note: this will need to be added on the frontend. It's likely that the E2E tests will fail until that is done.

How did you test this code?

Added new tests and updated an existing test.

Copy link

vercel bot commented Aug 6, 2024

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

3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs ⬜️ Ignored (Inspect) Visit Preview Aug 7, 2024 0:17am
flagsmith-frontend-preview ⬜️ Ignored (Inspect) Visit Preview Aug 7, 2024 0:17am
flagsmith-frontend-staging ⬜️ Ignored (Inspect) Visit Preview Aug 7, 2024 0:17am

Copy link
Contributor

github-actions bot commented Aug 6, 2024

Uffizzi Preview deployment-55019 was deleted.

@matthewelwell matthewelwell changed the title fix: don't all bypassing ALLOW_REGISTRATION_WITHOUT_INVITE behaviour fix: don't allow bypassing ALLOW_REGISTRATION_WITHOUT_INVITE behaviour Aug 6, 2024
@github-actions github-actions bot added fix and removed fix labels Aug 6, 2024
Copy link

codecov bot commented Aug 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.86%. Comparing base (5cbdd7f) to head (4105aee).
Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4454   +/-   ##
=======================================
  Coverage   96.85%   96.86%           
=======================================
  Files        1170     1172    +2     
  Lines       38812    38896   +84     
=======================================
+ Hits        37592    37676   +84     
  Misses       1220     1220           

☔ 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 August 7, 2024 10:48
@matthewelwell matthewelwell requested a review from a team as a code owner August 7, 2024 10:48
@matthewelwell matthewelwell requested review from zachaysan and removed request for a team August 7, 2024 10:48
Copy link
Contributor

github-actions bot commented Aug 7, 2024

Docker builds report

Image Build Status Security report
ghcr.io/flagsmith/flagsmith-e2e:pr-4454 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-api-test:pr-4454 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-frontend:pr-4454 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-api:pr-4454 Finished ✅ Results
ghcr.io/flagsmith/flagsmith:pr-4454 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-private-cloud:pr-4454 Finished ✅ Results

@github-actions github-actions bot added fix and removed fix labels Aug 7, 2024
@matthewelwell
Copy link
Contributor Author

FE component has been merged and tested here

@github-actions github-actions bot added fix and removed fix labels Aug 7, 2024
@matthewelwell matthewelwell added this pull request to the merge queue Aug 7, 2024
Merged via the queue into main with commit 0e6deec Aug 7, 2024
35 checks passed
@matthewelwell matthewelwell deleted the fix/secure-invite-links branch August 7, 2024 12:28
@rolodato rolodato added the security Security updates label Aug 7, 2024
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 fix security Security updates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants