fix: resolve security vulnerabilities in auth, registration & config#20
Merged
Conversation
- Rewrite README with professional structure: badges, live demo, feature categories, tech stack, architecture diagram, getting started guide, E2E test results, CI/CD pipeline, project structure, API endpoints, security measures, and RBAC matrix - Create docs/reports/TaskPulse_Project_Overview.xlsx with 6 sheets: Features (46), E2E Test Results (113), Security (19), Tech Stack (45), API Endpoints (80), Architecture (23) - Update Playwright config for deployed app testing via E2E_BASE_URL - Add test:e2e:deployed npm script Fixes #17 Co-Authored-By: Beeax
1. Password change now verifies current password before allowing update via Supabase sign_in_with_password before calling admin API 2. Org registration requires valid invite code to join existing org; auto-generates invite codes on org creation; forces EMPLOYEE role 3. Supabase error details no longer leaked to clients — generic error messages returned while raw exceptions logged server-side only 4. Config redaction now recursive — nested dicts and lists with sensitive keys (password, token, api_key, etc.) are properly masked Fixes #19 Co-Authored-By: Beeax
🚀 Vercel Preview Deployment
Commit: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
sign_in_with_passwordbefore allowing update (prevents account takeover with stolen session)Test plan
org_idrequires validinvite_codeorg_idforces EMPLOYEE role regardless ofrolefieldFixes #19