aws/aws-secretsmanager-jdbc

provide option to enforce ssl

parth3724 opened this issue · 0 comments

I am using XML configuration for a database connection pool resource in an Apache Tomcat web server.
To enforce SSL, one way is to append url with requireSSL true option like below

<Resource name="someResourceName" auth="Container" type="javax.sql.DataSource"
          factory="org.apache.tomcat.jdbc.pool.DataSourceFactory"
          driverClassName="com.mysql.jdbc.Driver"
          url="jdbc:mysql://hostname:3306/databasename?useSSL=true&amp;requireSSL=true&amp;user=username&amp;password=password"
/>

but since i want to use this library, i have to use the url as secret name and

<Resource name="someResourceName" auth="Container" type="javax.sql.DataSource"
          factory="org.apache.tomcat.jdbc.pool.DataSourceFactory"
           driverClassName="com.amazonaws.secretsmanager.sql.AWSSecretsManagerMySQLDriver"
          url="AWS-Secret-Name"
/>

I am able to connect with mysql db (Aurora serverless v2).

But can any one help me with how to enforce SSL via this configuration ?