Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provide option to enforce ssl #226

Open
parth3724 opened this issue May 7, 2024 · 0 comments · May be fixed by #258
Open

provide option to enforce ssl #226

parth3724 opened this issue May 7, 2024 · 0 comments · May be fixed by #258
Labels
enhancement New feature or request

Comments

@parth3724
Copy link

parth3724 commented May 7, 2024

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 ?

@parth3724 parth3724 added the enhancement New feature or request label May 7, 2024
@LibbyKen LibbyKen linked a pull request Jan 8, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant