ZIm/crates/util/src
Peter Tripp a713c66a9d
Redact command environment variables from log output (#32985)
Before/After (linebreaks added for readability)
```log 
# before
INFO  [project::context_server_store::extension]
loaded command for context server mcp-server-github:
Command { 
  command: "/Users/peter/Library/Application Support/Zed/extensions/work/mcp-server-github/github-mcp-server-v0.5.0/github-mcp-server", 
  args: ["stdio"], 
  env: [("GITHUB_PERSONAL_ACCESS_TOKEN", "gho_WOOOOOOOOOOOOOOO")] 
}

#after
INFO  [project::context_server_store::extension]
loaded command for context server mcp-server-github:
Command {
  command: "/Users/peter/Library/Application Support/Zed/extensions/work/mcp-server-github/github-mcp-server-v0.5.0/github-mcp-server",
  args: ["stdio"],
  env: [("GITHUB_PERSONAL_ACCESS_TOKEN", "[REDACTED]")]
}
```

Release Notes:

- Redact sensitive environment variables from MCP logs
2025-06-21 11:19:23 -04:00
..
test Add #[track_caller] to test utilities that involve marked text (#32043) 2025-06-04 02:37:27 +00:00
arc_cow.rs Rust 1.85 (#25272) 2025-02-28 18:33:35 +01:00
archive.rs Keep file permissions when extracting zip archives on Unix (#31304) 2025-05-23 20:45:32 +00:00
command.rs windows: Set CREATE_NO_WINDOW for commands (#18447) 2024-11-20 16:52:38 -08:00
fs.rs supermaven_api: Ensure downloaded Supermaven binary has executable permissions set (#32576) 2025-06-17 14:39:45 +00:00
markdown.rs Refactor markdown formatting utilities to avoid building intermediate strings (#29511) 2025-04-27 19:04:51 +00:00
paths.rs Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00
redact.rs Redact command environment variables from log output (#32985) 2025-06-21 11:19:23 -04:00
serde.rs Track cumulative token usage in assistant2 when using anthropic API (#26738) 2025-03-13 22:56:16 +00:00
shell_env.rs Fix shell environment loading for Zed installations with spaces in path (#32702) 2025-06-13 18:12:31 +00:00
size.rs agent: Create TerminalToolCard and display shell output while it's running (#29546) 2025-04-29 16:06:43 +00:00
test.rs Canonicalize paths when running tests (#23655) 2025-01-26 14:56:07 +08:00
time.rs agent: Create TerminalToolCard and display shell output while it's running (#29546) 2025-04-29 16:06:43 +00:00
util.rs Redact command environment variables from log output (#32985) 2025-06-21 11:19:23 -04:00