You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 00b64b8
Browse filesBrowse the repository at this point in the historyBrowse files
fix(clawdock): keep credentials out of diagnostic output (#133547)
Keep routine repair and config inspection output free of credential values and prefixes while preserving explicit clawdock-token reveal. Use validated config setters and fail closed when diagnostic rendering fails. Fixes#133535.
Copy file name to clipboardExpand all lines: docs/install/clawdock.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,9 +94,9 @@ ClawDock reads two separate `.env` files, matching the split described in [Docke
94
94
- The project `.env` next to `docker-compose.yml`: Docker-specific values like image name, ports, and `OPENCLAW_GATEWAY_TOKEN`. `clawdock-token` reads the token from here.
95
95
-`~/.openclaw/.env` (mounted into the container): env-backed secrets OpenClaw itself manages, alongside `openclaw.json` and the shared and per-agent SQLite auth stores.
96
96
97
-
`clawdock-fix-token` copies the token from the project `.env` into the container's `gateway.remote.token` and `gateway.auth.token` config values and restarts the gateway.
97
+
`clawdock-fix-token` copies the token from the project `.env` into the container's `gateway.remote.token` and `gateway.auth.token`through the validated config setters and restarts the gateway only after both writes succeed. It reports success or failure without printing tokens or token prefixes. `clawdock-token` explicitly prints the full token when you need it.
98
98
99
-
Use `clawdock-show-config` to inspect `openclaw.json`and both `.env` files quickly; it redacts `.env` values in its printed output.
99
+
Use `clawdock-show-config` to inspect JSON5 config structure and `.env` key names with all values redacted and comments omitted. It uses Node, JSON5, and dotenv from the built OpenClaw Docker image in temporary containers without starting dependencies; no host parser or running gateway is required. If Docker, parsing, or file access fails, it returns a failure with guidance and withholds that file's contents. Ambiguous `.env` values beginning with a literal quote are also withheld to avoid exposing unterminated multiline content. Source files are unchanged.
Copy file name to clipboardExpand all lines: scripts/clawdock/README.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -160,6 +160,10 @@ The Docker setup uses three config files on the host. The container never stores
160
160
161
161
**Do NOT** put API keys or bot tokens in `openclaw.json`. Use `~/.openclaw/.env` for all secrets.
162
162
163
+
`clawdock-show-config` displays JSON5 structure and `.env` key names with all values redacted and comments omitted. It requires Docker and the built OpenClaw image; temporary containers use the image's Node, JSON5, and dotenv without starting dependencies or requiring host parsers. Processing failures withhold the affected file's contents and return a failure with guidance. Ambiguous `.env` values beginning with a literal quote are also withheld to protect unterminated multiline content. Source files are unchanged.
164
+
165
+
`clawdock-fix-token` checks both config writes and reports success or failure without showing tokens or prefixes. Use `clawdock-token` only when you explicitly want the full token printed.
0 commit comments