Commit df4b613
fix(shared): validate SOURCEBOT_ENCRYPTION_KEY is 32 chars
The key is used directly as a 32-byte AES-256-CBC key. Validate its
length at startup so a misconfigured key fails fast with an actionable
message instead of a RangeError deep in an encryption call.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent a84e7a9 commit df4b613
1 file changed
Lines changed: 7 additions & 1 deletion
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
340 | | - | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
341 | 347 | | |
342 | 348 | | |
343 | 349 | | |
| |||
0 commit comments