fix: critical auth fixes (C2, C3, C4, H1)#17
Closed
my-claude-utils wants to merge 1 commit intomainfrom
Closed
Conversation
- C2: One-time bootstrap tokens (deleted after JWT exchange) + Enter key regeneration - C3: Pre-commit hook to reject staged .env files - C4: WebSocket origin verification (verifyClient callback) - H1: Dynamic CORS (restricted to allowed origins, no more wildcard)
Owner
Author
|
Included in consolidated PR to main |
cshumac
added a commit
to cshumac/clsh
that referenced
this pull request
Mar 21, 2026
…y-claude-utils#14,my-claude-utils#17) - Increase scrypt N from 16384 (2^14) to 131072 (2^17) per OWASP recommendation - New hash format `scrypt:<N>$salt$key` encodes the cost parameter - Backward-compatible verification of legacy `scrypt$salt$key` hashes (N=16384) - Remove clientHash handling from POST /api/auth/password/setup - Add tests for new format, N value, and legacy hash verification
5 tasks
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
.envfiles to prevent credential leaks. Auto-installed viapreparescript.Access-Control-Allow-Originis now dynamic (checks against allowed origins set) instead of wildcard*. IncludesVary: Originheader.Test plan
npx turbo run typecheck lint buildpasses🤖 Generated with Claude Code