piighost/db-connection-string

A database URL carrying its password, the form an application reads from an environment variable and a traceback prints whole. The span stops at the host, so the database name and the query string are left in clear, which is what makes a redacted log still readable.

Label: DB_CONNECTION_STRING

Pattern

\b(?:postgres(?:ql)?|mysql|mongodb(?:\+srv)?|redis|amqp)://[^\s:/@]+:[^\s@/]+@[^\s/]*[^\s/.,;:!?)\]]

Must be caught

Must be left alone

Tags: international, secrets, network, software-dev

Download the detector as TOML