Use TLS for JDBC connection strings
MSALIncreasingly, for compliance reasons (e.g. NACHA), JDBC connection strings should be TLS-enabled. This recipe will update the port and optionally add a connection attribute to indicate that the connection is TLS-enabled.
org. openrewrite. java. spring. data. UseTlsJdbcConnectionStringRequired
The Spring property key to perform updates against. If this value is specified, the specified property will be used for searching, otherwise a default of spring.datasource.url will be used instead.
The non-TLS enabled port number to replace with the TLS-enabled port. If this value is specified, no changes will be made to jdbc connection strings which do not contain this port number.
The TLS-enabled port to use.
A connection attribute, if any, indicating to the JDBC provider that this is a TLS connection.
mod run . --recipe= org. openrewrite. java. spring. data. UseTlsJdbcConnectionString \
-P propertyKey= spring. datasource. url \
-P oldPort=1234 \
-P port=1234 \
-P attribute= sslConnection= trueInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.