Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/metabase/metabase. Pull mirroring updated .
  1. Jan 31, 2024
  2. Dec 29, 2022
    • metamben's avatar
      Remove unused Java keystores (#27448) · 2557fb56
      metamben authored
      - resources/certificates/rds_root_ca_truststore.jks was used for testing Oracle
        but is not needed any more
      - cacerts_with_RDS_root_ca.jks does not seem to be used either
      2557fb56
  3. Dec 26, 2021
  4. Mar 31, 2021
    • Jeff Evans's avatar
      Fix Oracle SSL tests (#15260) · c938fb05
      Jeff Evans authored
      Fix Oracle SSL tests
      
      Define new test for Oracle SSL connectivity, in oracle_test.clj, similar to how things work in mysql_test.clj
      
      Add new test util macro, with-env-keys-renamed-by, to support running tests with environ keys temporarily renamed
      
      Using new test macro from both MySQL and Oracle SSL connectivity tests
      
      Removing now unneeded be-tests-oracle-ssl-ee CircleCI job
      
      Removing now unneeded test-selector parameter for test-driver orb in CircleCI config.yml
      
      Updating JVM_OPTS to use a trust store that starts with cacerts and adds the RDS root CA, rather than one only
      containing the RDS root CA
      c938fb05
  5. Mar 24, 2021
    • Jeff Evans's avatar
      Support SSL server certificate parameter for MySQL (#15172) · 54f6a5e7
      Jeff Evans authored
      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
      54f6a5e7
  6. Mar 11, 2021
    • Jeff Evans's avatar
      Add support for connecting to Oracle with SSL (#15078) · 7b24bc98
      Jeff Evans authored
      Update Oracle driver to have the `ssl` (boolean) option, with the expectation that any keystore/truststore params have been set as JVM parameters
      
      Updating CircleCI config to allow for the following parameters to the `test-driver` orb:
      - `extra-env`: a string that will be prepended to the `lein test` invocation, in order to set environment variables specifically for that test run.  Expected to look like `VAR_NAME=a VAR_NAME_2=b`. Defaults to blank (i.e. nothing).
      - `test-selector`: a string that represents the Leiningen test [selectors](https://cljdoc.org/d/leiningen/leiningen/2.9.5/api/leiningen.test#test). Defaults to `:all` (i.e., run all tests).
      
      Adding RDS root CA truststore file to our resources so that CircleCI (and anyone else, really) can refer to it
      
      Defining new `be-tests-oracle-ssl-ee test-driver` task, and is identical to it except for the env vars required to connect via SSL instead (by specifying the RDS root CA trust store).  It only runs a few Oracle driver specific tests, not the full suite, since we are really only concerned with connectivity here.
      
      Updating Oracle driver docs to discuss relevant JVM params and configuration
      7b24bc98
Loading