pub fn redact_env_values(value: &mut Value)Expand description
Replace every value under the top-level env object with
"<redacted>", keeping the keys visible. Safe to call on any
JSON value, including non-objects and objects without an env
field. Other top-level keys (permissions, hooks, etc.) are
left untouched.
Callers that forward settings to less-trusted consumers should apply this. Hosts that want the raw values must explicitly opt in.