Repository navigation
chore(install): generate the executor secret on install - #14770
Conversation
Fresh installs generate _APP_EXECUTOR_SECRET like the other token secrets instead of keeping the placeholder, and the API warns at startup when the placeholder is still set.
|
Review complete. No blocking issues — approved ✅; 1 nitpick below. 🧹 Nitpicks (1) — 🟢 1 low
This PR registers
Reviewed commit: 745ccdf |
🔵 Tier A · Mergeable after minor fixes
The installer now generates
Note Not approving while a bug finding is open: Make the warning accurate for missing secrets
Fix with agent prompt### Issue 1
app/http.php:43-44
**Make the warning accurate for missing secrets**
`isInsecure()` also matches `null` and an empty string, so an unset or blank secret reaches this message claiming it is the public placeholder. Operators in that case may look for a placeholder value that is not present; mention the missing/empty cases too, or narrow the condition to the placeholder.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.📂 Walkthrough · 2
Reviewed |
| if (EncryptionKey::isInsecure(System::getEnv('_APP_EXECUTOR_SECRET'))) { | ||
| Console::warning('_APP_EXECUTOR_SECRET is the public default "' . EncryptionKey::PLACEHOLDER . '". Set a unique secret.'); |
There was a problem hiding this comment.
Make the warning accurate for missing secrets
isInsecure() also matches null and an empty string, so an unset or blank secret reaches this message claiming it is the public placeholder. Operators in that case may look for a placeholder value that is not present; mention the missing/empty cases too, or narrow the condition to the placeholder.
Prompt To Fix With AI
This is a comment left during a code review.
Path: app/http.php
Line: 43-44
Comment:
**Make the warning accurate for missing secrets**
`isInsecure()` also matches `null` and an empty string, so an unset or blank secret reaches this message claiming it is the public placeholder. Operators in that case may look for a placeholder value that is not present; mention the missing/empty cases too, or narrow the condition to the placeholder.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.🟡 Minor · error-handling · Reply if this doesn't apply.
Security rulesNo new WARNING or ERROR findings from security rules. 19 existing findings tracked in
|
✨ Benchmark resultsComparing
Per-scenario breakdown & investigation detailsMetrics below reflect the current branch (after). Δ P95 compares against the base.
Top API waits (after)
|
chore(install): generate the executor secret on install (cherry picked from commit c89c143)
What changed
_APP_EXECUTOR_SECRETuses thetokenfilter, so fresh installs generate it instead of keeping theyour-secret-keyplaceholder.Tested
php -lon the changed files. The installer and the startup warning were not run.