/
Connection Strings
Automatically redacted connection strings
Troubleshoot automatically redacts http/ftp connection strings containing a username and password.
This redaction is equivalent to the following redact yaml:
apiVersion: troubleshoot.sh/v1beta2
kind: Redactor
metadata:
name: Connection Strings
spec:
redactors:
- name: Redact connection strings with username and password
removals:
regex:
- redactor: '(?i)(https?|ftp)(:\/\/)(?P<mask>[^:\"\/]+){1}(:)(?P<mask>[^@\"\/]+){1}(?P<host>@[^:\/\s\"]+){1}(?P<port>:[\d]+)?'
Note:
troubleshoot.sh/v1beta2
was introduced in preflight and support-bundle krew plugin version 0.9.39 and Kots version 1.19.0. Kots vendors should read the guide to maintain backwards compatibility.