Skip to content

Commit b79c9b3

Browse files
ranjeshjCopilot
andcommitted
docs: avoid printing gateway config secrets
Co-authored-by: Copilot <[email protected]>
1 parent fbcf656 commit b79c9b3

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎docs/WSL_GATEWAY_ADMIN.md‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,12 @@ wsl.exe -d OpenClawGateway --user openclaw -- bash -lc "ls -l /home/openclaw/.op
7171
# Verifies that openclaw.json is valid JSON without printing it.
7272
wsl.exe -d OpenClawGateway --user openclaw -- bash -lc "python3 -m json.tool /home/openclaw/.openclaw/openclaw.json > /dev/null"
7373
74-
# Prints the first 120 lines of openclaw.json for inspection.
75-
wsl.exe -d OpenClawGateway --user openclaw -- bash -lc "sed -n '1,120p' /home/openclaw/.openclaw/openclaw.json"
74+
# Prints only the top-level config keys, not secret values.
75+
wsl.exe -d OpenClawGateway --user openclaw -- python3 -c "import json; data=json.load(open('/home/openclaw/.openclaw/openclaw.json')); print('\n'.join(sorted(data.keys())))"
7676
```
7777

78+
Do not paste or share the full `openclaw.json` file. It can contain gateway tokens, private endpoints, provider settings, or other secrets; redact those values before sharing diagnostics.
79+
7880
## Inspect gateway state
7981

8082
Run gateway service checks as `openclaw`:

0 commit comments

Comments
 (0)