Commit 869a0b3
committed
fix(nextgen-evangelist): least-privilege deno perms + drop generated sample.js
Address #533 review findings:
- Hypatia js_deno_all_perms (CWE-250): the orchestrator spawned sub-tools with
`deno run -A` (all perms). Replaced with --allow-read --allow-run --allow-write
(the union the tools need); usage docs updated to --allow-read --allow-run.
- Semgrep detect-non-literal-regexp on deno-esm-spike/sample.js: that file is
GENERATED --deno-esm output whose prelude uses new RegExp(<non-literal>).
Generated code is not hand-edited; dropped sample.js + gitignored it, documented
regeneration, and recorded the prelude-RegExp as a codegen finding.
Orchestrator re-verified green end-to-end with the new flags.
https://claude.ai/code/session_01WoKhFQePiRsAj7aqnxbG8s1 parent af747e6 commit 869a0b3
6 files changed
Lines changed: 21 additions & 473 deletions
File tree
- proposals/nextgen-evangelist
- deno-esm-spike
- evangelist
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
| 120 | + | |
119 | 121 | | |
120 | 122 | | |
121 | 123 | | |
| |||
159 | 161 | | |
160 | 162 | | |
161 | 163 | | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
0 commit comments