Commit b4cb7e1
Address critical code review issues
This commit addresses three critical issues identified in code review:
1. CRITICAL: Fix build script validation logic in package-scripts.yml
- Changed from OR (||) to AND (&&) logic for artifact checks
- Previously would pass if ANY ONE artifact existed (masking build failures)
- Now requires ALL THREE artifacts to exist for proper validation
- Ensures build failures are properly detected, not masked
2. SECURITY: Fix timing attack vulnerability in authHandler.ts
- Replaced simple string comparison with timingSafeEqual() from crypto
- Prevents timing attacks where attackers could brute-force password
- Added proper length checking and error handling
- Note: TODO remains for fastify-basic-auth migration (issue #110)
3. Version consistency: Update node-renderer to 16.2.0-beta.12
- Brings node-renderer in line with other workspace packages
- Was one version behind (beta.11 vs beta.12)
Testing completed:
- bundle exec rubocop: no offenses
- yarn start format.listDifferent: all files properly formatted
- yarn nps build.prepack: successfully validates with new AND logic
- Verified all build artifacts exist and rebuild correctly
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent f14376e commit b4cb7e1
File tree
3 files changed
+38
-9
lines changed- packages/react-on-rails-pro-node-renderer
- src/worker
3 files changed
+38
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
Lines changed: 35 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
21 | 50 | | |
22 | 51 | | |
23 | 52 | | |
| |||
0 commit comments