Commit 0eb94af
Guard against dev-default RENDERER_PASSWORD in production
The Pro renderer's JS side raises if RENDERER_PASSWORD is unset in
production, but accepts the literal "local-dev-renderer-password"
value. A CP secret misconfigured to that string (easy to happen when
copying from .env.example) would let both sides "match" while running
with no real authentication.
Split the branch by Rails.env.local?:
- dev/test keeps the .presence || default fallback so blank env vars
still work for local development
- production fetches strict and raises if blank, unset, or the literal
dev default
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 9518acd commit 0eb94af
1 file changed
Lines changed: 21 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
21 | 36 | | |
0 commit comments