Find JDBC connections with empty passwords
ProprietaryFinds DriverManager.getConnection(...) calls whose password argument is empty or whitespace-only, or whose URL embeds a password= query parameter with no value. Connecting to a database without a password grants unauthenticated access; the password should be sourced from configuration or a secret manager instead.
org. openrewrite. java. security. search. FindJdbcEmptyPasswordmod run . --recipe= org. openrewrite. java. security. search. FindJdbcEmptyPasswordInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.