Skip to main content

Module redaction

Module redaction 

Source
Expand description

Redaction utilities for cloud-mode logging/payloads.

Cloud mode must never log or report secrets. Git and HTTP error strings can contain embedded credentials (for example, URLs with user:pass@host).

This module provides a conservative sanitizer for untrusted error strings.

Functionsยง

redact_secrets
Redact likely secrets from an untrusted, user-controlled string.