Repository navigation
fix: Enforce password complexity requirements on admin setup (#189) - #198
Merged
vybe merged 3 commits intoApr 1, 2026
Merged
Conversation
…ai#189) Add OWASP ASVS 2.1 password complexity validation to the admin setup endpoint. Passwords now require 12+ chars, uppercase, lowercase, digit, special character, and must not be a common password. - New: src/backend/utils/password_validation.py with reusable validator - New: tests/test_password_validation.py with 25 unit tests - Setup endpoint returns generic error (doesn't leak which rules failed) - Pydantic model adds max_length=128 (bcrypt DoS protection) - database.py logs specific failing rules for weak ADMIN_PASSWORD env var - Frontend shows real-time requirements checklist Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Update feature flow and index to reflect OWASP ASVS 2.1 password validation added in Abilityai#189. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Resolved 5 conflicts by merging both the setup_token security feature (upstream) and OWASP password complexity validation (this branch): - setup.py: Added setup_token validation before password complexity check - SetupPassword.vue: isValid requires both setup_token AND all password rules - test_setup.py: Kept upstream's token rejection test with compliant password - changelog.md & feature-flows.md: Combined entries from both branches Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Contributor
|
PR approved — please rebase on main to resolve the merge conflict, then we'll merge. Two PRs landed on main since your branch was last synced. |
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.
Description
Add OWASP ASVS 2.1 password complexity validation to the admin setup endpoint. Passwords now require 12+ characters, uppercase, lowercase, digit, special character, and must not be a common password. The frontend shows a real-time requirements checklist, and the backend returns a generic error message on the unauthenticated endpoint to avoid leaking which specific rules failed.
Related Issue
Fixes #189
Type of Change
Testing
Checklist