Constants§
- DEFAULT_
REDACTION_ STR - A default string to use for redaction.
Traits§
- Redact
- A trait to redact known secrets from a type.
Functions§
- redact_
known_ secrets_ from_ url Deprecated - Deprecated name of
redact_url_for_display. - redact_
signatures_ in_ text - Mask the signature of a pre-signed URL wherever one appears in
text. - redact_
url_ for_ display - Masks the known secret patterns in a URL for display in logs and error
messages: the password in the userinfo (the username stays), the token in
a
/t/<token>/path, and asigquery parameter such as an Azure SAS signature. Other query parameters and the fragment are left untouched, so the URL stays recognizable for debugging. - strip_
url_ for_ serialization - Strips a URL down to what is safe to write into durable output such as
canonical match specs, repodata, or lockfiles: the userinfo, a
/t/<token>/path prefix, and the query string are dropped, as is any fragment that is not a conda artifact digest (md5:<hex>orsha256:<hex>), which is a content address rather than a secret.