Skip to content

Commit af61d79

Browse files
authored
security: remove hardcoded token from openclaw-shim (#123)
1 parent 3eb5f54 commit af61d79

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

contrib/openclaw-shim.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/usr/bin/env bash
22
REAL_SHELL="/bin/bash"
33
RAMPART_URL="http://127.0.0.1:19090"
4-
RAMPART_TOKEN="c86356c424aafc202ec88e7cbdc6ce3cb0484be26c89cac20254dce4b6774897"
4+
# Token is auto-read from ~/.rampart/token if not set
5+
RAMPART_TOKEN="${RAMPART_TOKEN:-$(cat ~/.rampart/token 2>/dev/null)}"
56
RAMPART_MODE="enforce"
67
APPROVAL_POLL_INTERVAL=3
78
APPROVAL_TIMEOUT=300

0 commit comments

Comments
 (0)