Masks the password when not editing, reads back user, host, database and TLS mode, and catches unencoded @ # / % in passwords, localhost in production, missing or weak sslmode, unknown libpq parameters, wrong-database ports, Redis/MongoDB without TLS and .env quoting.