Repository navigation
Commit 82a1141
fix(scripts): enforce config integrity check in non-root mode (NVIDIA#1071)
* sec(scripts): enforce config integrity check in non-root mode
In non-root mode, verify_config_integrity() failure was logged as a
warning but execution continued, allowing a tampered openclaw.json
to be loaded. The root path correctly treats this as fatal.
Make the non-root path consistent: exit 1 on integrity failure so
a modified config is never silently accepted regardless of the
execution mode.
Closes NVIDIA#1013
* test(scripts): add regression tests for non-root config integrity exit
Verify that the non-root code path exits on verify_config_integrity
failure and does not contain the old "proceeding anyway" fallback.
Also verify both root and non-root paths call verify_config_integrity.
Signed-off-by: latenighthackathon <latenighthackathon@users.noreply.github.com>
---------
Signed-off-by: latenighthackathon <latenighthackathon@users.noreply.github.com>
Co-authored-by: latenighthackathon <latenighthackathon@users.noreply.github.com>
Co-authored-by: KJ <kejones@nvidia.com>1 parent 6d06818 commit 82a1141
2 files changed
Lines changed: 22 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
298 | | - | |
| 298 | + | |
| 299 | + | |
299 | 300 | | |
300 | 301 | | |
301 | 302 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
18 | 38 | | |
0 commit comments