-
- Downloads
Support SSL server certificate parameter for MySQL (#15172)
Adding ssl-cert config field to MySQL DB details map, to hold the server cert chain in PEM format (similar to what is done in MongoDB driver) Updating MySQL driver init to map :ssl-cert into :serverSslCert for the JDBC url, when ssl is in use and cert is provided (the MariaDB driver we are using accepts PEM format certificates inline directly for the param value, so no need to shepherd into a temp file) Adding new test to mysql_test.clj to run a single test while connecting via SSL with PEM cert Update CircleCI config: - use extra-env to set all the MySQL SSL instance DB related vars (for an RDS instance, currently) - adding the rds-combined-ca-bundle.pem certificate to resources/certificates - loading that cert bundle from resources directory via env var Adding to/fixing assertion in connection-spec-test for :ssl
Showing
- .circleci/config.yml 12 additions, 0 deletions.circleci/config.yml
- resources/certificates/README.md 7 additions, 0 deletionsresources/certificates/README.md
- resources/certificates/rds-combined-ca-bundle.pem 720 additions, 0 deletionsresources/certificates/rds-combined-ca-bundle.pem
- src/metabase/driver/mysql.clj 12 additions, 4 deletionssrc/metabase/driver/mysql.clj
- test/metabase/driver/mysql_test.clj 23 additions, 3 deletionstest/metabase/driver/mysql_test.clj
Loading
Please register or sign in to comment