Commit 61f9046
clap [bot]
fix: remove process.env credential access from plugin — use os.homedir() instead
OpenClaw 2026.3.31 added a security scanner that flags plugins combining
environment variable access with network requests as potential credential
harvesting. The RAMPART_TOKEN env var check triggered this false positive.
Token is now loaded only from ~/.rampart/token via os.homedir() — no env var
access. The token is a local auth token for the Rampart daemon on localhost
and never leaves the machine.1 parent 10ce8f2 commit 61f9046
1 file changed
+5
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
| 15 | + | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
17 | | - | |
| 20 | + | |
18 | 21 | | |
19 | 22 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
28 | | - | |
29 | 27 | | |
30 | | - | |
31 | | - | |
| 28 | + | |
32 | 29 | | |
33 | 30 | | |
34 | 31 | | |
| |||
0 commit comments