Skip to content

Commit 97b0f35

Browse files
Jan Waśhashhar
authored andcommitted
Document additional credential providers for JDBC connectors
1 parent 106ee5d commit 97b0f35

File tree

9 files changed

+69
-0
lines changed

9 files changed

+69
-0
lines changed

docs/src/main/sphinx/connector/clickhouse.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ property:
7878
For more information on TLS configuration options, see the `Clickhouse JDBC
7979
driver documentation <https://clickhouse.com/docs/en/interfaces/jdbc/>`_
8080

81+
.. include:: jdbc-authentication.fragment
82+
8183
Multiple ClickHouse servers
8284
^^^^^^^^^^^^^^^^^^^^^^^^^^^
8385

docs/src/main/sphinx/connector/druid.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ secured by basic authentication by updating the URL and adding credentials:
4646
Now you can access your Druid database in Trino with the ``druiddb`` catalog
4747
name from the properties file.
4848

49+
.. include:: jdbc-authentication.fragment
50+
4951
.. include:: jdbc-common-configurations.fragment
5052

5153
.. |default_domain_compaction_threshold| replace:: ``32``
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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.

docs/src/main/sphinx/connector/mariadb.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ connection properties as appropriate for your setup:
3434
connection-user=root
3535
connection-password=secret
3636
37+
.. include:: jdbc-authentication.fragment
38+
3739
.. include:: jdbc-common-configurations.fragment
3840

3941
.. |default_domain_compaction_threshold| replace:: ``32``

docs/src/main/sphinx/connector/mysql.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ appending it to the ``connection-url`` configuration property:
8080
For more information on TLS configuration options, see the `MySQL JDBC security
8181
documentation <https://dev.mysql.com/doc/connector-j/8.0/en/connector-j-connp-props-security.html#cj-conn-prop_sslMode>`_.
8282

83+
.. include:: jdbc-authentication.fragment
84+
8385
Multiple MySQL servers
8486
^^^^^^^^^^^^^^^^^^^^^^
8587

docs/src/main/sphinx/connector/oracle.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ To disable connection pooling, update properties to include the following:
7373
7474
oracle.connection-pool.enabled=false
7575
76+
.. include:: jdbc-authentication.fragment
77+
7678
Multiple Oracle servers
7779
^^^^^^^^^^^^^^^^^^^^^^^
7880

docs/src/main/sphinx/connector/postgresql.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ property:
7171
For more information on TLS configuration options, see the `PostgreSQL JDBC
7272
driver documentation <https://jdbc.postgresql.org/documentation/use/#connecting-to-the-database>`__.
7373

74+
.. include:: jdbc-authentication.fragment
75+
7476
Multiple PostgreSQL databases or servers
7577
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7678

docs/src/main/sphinx/connector/redshift.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ For more information on TLS configuration options, see the `Redshift JDBC driver
5757
documentation
5858
<https://docs.aws.amazon.com/redshift/latest/mgmt/jdbc20-configuration-options.html#jdbc20-ssl-option>`_.
5959

60+
.. include:: jdbc-authentication.fragment
61+
6062
Multiple Redshift databases or clusters
6163
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6264

docs/src/main/sphinx/connector/sqlserver.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ Further parameters like ``trustServerCertificate``, ``hostNameInCertificate``,
6969
SQL Server JDBC driver documentation
7070
<https://docs.microsoft.com/en-us/sql/connect/jdbc/using-ssl-encryption>`_.
7171

72+
.. include:: jdbc-authentication.fragment
73+
7274
Multiple SQL Server databases or servers
7375
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7476

0 commit comments

Comments
 (0)