Skip to content

security: enforce server-side registration string length and complexity filters (#345)#527

Open
prakshithamalla-art wants to merge 2 commits into
UTKARSHH20:mainfrom
prakshithamalla-art:security/signup-password-validation
Open

security: enforce server-side registration string length and complexity filters (#345)#527
prakshithamalla-art wants to merge 2 commits into
UTKARSHH20:mainfrom
prakshithamalla-art:security/signup-password-validation

Conversation

@prakshithamalla-art

Copy link
Copy Markdown
Contributor

Closes #345

Changes Made:

  • Registration Input Hardening: Injected a localized security verification gate directly into the initial sequence parameters of the signup function inside backend/src/controllers/auth.controller.js.
  • Password Complexity Enforcement: Implemented regex pattern matching constraints (complexityRegex) requiring incoming password fields to strictly contain a minimum threshold of 8 characters, structured with alternating uppercase and lowercase characters, standard digits, and supported special syntax elements.
  • Upstream Validation Drop: Configured standard HTTP 400 Bad Request error returns with contextual error strings to drop weak requests immediately, mitigating downstream computational overhead on intensive bcrypt.hash operational tasks.
  • Maintained Structural Integrity: Preserved original code logic structures across all neighboring authentication and profile mapping routers.

@coderabbitai

coderabbitai Bot commented Jun 8, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@prakshithamalla-art, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 59 minutes and 23 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 0948cc61-5e66-48b0-a900-82a402acd243

📥 Commits

Reviewing files that changed from the base of the PR and between 29c9c86 and 7cdc948.

📒 Files selected for processing (1)
  • backend/src/controllers/auth.controller.js
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@prakshithamalla-art

Copy link
Copy Markdown
Contributor Author

@UTKARSHH20 pls check it and merge it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Security] Enforce strict regulatory validation filters on client registration strings

1 participant