|
| 1 | +Data source authentication |
| 2 | +^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 3 | + |
| 4 | +The connector can provide credentials for the data source connection |
| 5 | +in multiple ways: |
| 6 | + |
| 7 | +* inline, in the connector configuration file |
| 8 | +* in a separate properties file |
| 9 | +* in a key store file |
| 10 | +* as extra credentials set when connecting to Trino |
| 11 | + |
| 12 | +You can use :doc:`secrets </security/secrets>` to avoid storing sensitive |
| 13 | +values in the catalog properties files. |
| 14 | + |
| 15 | +The following table describes configuration properties |
| 16 | +for connection credentials: |
| 17 | + |
| 18 | +.. list-table:: |
| 19 | + :widths: 40, 60 |
| 20 | + :header-rows: 1 |
| 21 | + |
| 22 | + * - Property name |
| 23 | + - Description |
| 24 | + * - ``credential-provider.type`` |
| 25 | + - Type of the credential provider. Must be one of ``INLINE``, ``FILE``, or |
| 26 | + ``KEYSTORE``; defaults to ``INLINE``. |
| 27 | + * - ``connection-user`` |
| 28 | + - Connection user name. |
| 29 | + * - ``connection-password`` |
| 30 | + - Connection password. |
| 31 | + * - ``user-credential-name`` |
| 32 | + - Name of the extra credentials property, whose value to use as the user |
| 33 | + name. See ``extraCredentials`` in :ref:`jdbc-parameter-reference`. |
| 34 | + * - ``password-credential-name`` |
| 35 | + - Name of the extra credentials property, whose value to use as the |
| 36 | + password. |
| 37 | + * - ``connection-credential-file`` |
| 38 | + - Location of the properties file where credentials are present. It must |
| 39 | + contain the ``connection-user`` and ``connection-password`` properties. |
| 40 | + * - ``keystore-file-path`` |
| 41 | + - The location of the Java Keystore file, from which to read credentials. |
| 42 | + * - ``keystore-type`` |
| 43 | + - File format of the keystore file, for example ``JKS`` or ``PEM``. |
| 44 | + * - ``keystore-password`` |
| 45 | + - Password for the key store. |
| 46 | + * - ``keystore-user-credential-name`` |
| 47 | + - Name of the key store entity to use as the user name. |
| 48 | + * - ``keystore-user-credential-password`` |
| 49 | + - Password for the user name key store entity. |
| 50 | + * - ``keystore-password-credential-name`` |
| 51 | + - Name of the key store entity to use as the password. |
| 52 | + * - ``keystore-password-credential-password`` |
| 53 | + - Password for the password key store entity. |
0 commit comments