Replace the userinfo of a URL (https://user:secret@host/...) with ***, so a
credential in a base URL never reaches an error message, a log or CI output.
A URL without userinfo is returned unchanged; one that does not parse (a port
typo, an unencoded "#" in the password) has its userinfo cut out by text
(credentialsIn).
Replace the userinfo of a URL (
https://user:secret@host/...) with***, so a credential in a base URL never reaches an error message, a log or CI output. A URL without userinfo is returned unchanged; one that does not parse (a port typo, an unencoded "#" in the password) has its userinfo cut out by text (credentialsIn).