mirror of
https://github.com/devvmhq/devvm.git
synced 2026-12-01 16:27:33 -10:00
redact.String takes the password out of a proxy URL without a scheme (user:password@host:port), which needs the port and a user that starts a word, so emails, mailto: links and ssh targets stay as they are. redact.Split says where a writer may end part of a line: after its last space or tab, at most 4 KiB before its end, never inside a secret. The run log's redacting writer uses it when a line passes 64 KiB and at a logged command's start (flushPart), and holds the rest for the next write, so a password split there is still found; DieLogged and the run's end write it all. Co-Authored-By: Claude Opus 5.5 <[email protected]>