Commit 18f12c6
committed
fix(scripts): make config integrity check fatal in non-root mode
In nemoclaw-start.sh, the non-root code path caught verify_config_integrity
failures and continued with a warning, bypassing the security model that
protects openclaw.json from tampering. The root code path correctly treated
the check as fatal (exits under set -euo pipefail).
The integrity check is now fatal in both code paths. If the config hash
doesn't match, the sandbox refuses to start regardless of whether it's
running as root or non-root.
Adds regression tests verifying:
- The non-root block exits on integrity failure
- No code path bypasses verify_config_integrity
Fixes #10131 parent ba824a6 commit 18f12c6
2 files changed
Lines changed: 30 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
| 187 | + | |
| 188 | + | |
188 | 189 | | |
189 | 190 | | |
190 | 191 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 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 | + | |
0 commit comments