Skip to content

Commit 9dae491

Browse files
Chris Choschmalliso
authored andcommitted
DOCSP-10985: add link to ConfigProvider (#28)
1 parent 96c600f commit 9dae491

File tree

4 files changed

+19
-4
lines changed

4 files changed

+19
-4
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.. admonition:: Avoid Exposing Your Authentication Credentials
2+
:class: important
3+
4+
To avoid exposing your authentication credentials in your
5+
``connection.uri`` setting, use a
6+
`ConfigProvider <https://docs.confluent.io/current/connect/security.html#externalizing-secrets>`__
7+
and set the appropriate configuration parameters.
8+

source/kafka-sink-cdc.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,5 @@ a specified CDC configuration when posted to the `Kafka Connect REST endpoint
6666
"collection": "mongosink"
6767
}
6868
}
69+
70+
.. include:: /includes/externalize-secrets.rst

source/kafka-sink-properties.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ data to sink to MongoDB. For an example configuration file, see
4545

4646
.. example::
4747

48-
| The following regex matches topics such as
49-
| "activity.landing.clicks" and "activity.support.clicks",
48+
| The following regex matches topics such as
49+
| "activity.landing.clicks" and "activity.support.clicks",
5050
| but not "activity.landing.views" or "activity.clicks":
51-
52-
.. code-block:: none
51+
52+
.. code-block:: none
5353

5454
topics.regex=activity\\.\\w+\\.clicks$
5555

@@ -67,6 +67,8 @@ data to sink to MongoDB. For an example configuration file, see
6767

6868
mongodb://username:password@localhost/
6969

70+
.. include:: /includes/externalize-secrets.rst
71+
7072
| **Default**: ``mongodb://localhost:27017``
7173
| **Accepted Values**: A valid MongoDB connection URI string
7274

source/kafka-source.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ an example source connector configuration file, see
106106
* - connection.uri
107107
- string
108108
- | A :manual:`MongoDB connection URI string </reference/connection-string/#standard-connection-string-format>`.
109+
110+
.. include:: /includes/externalize-secrets.rst
111+
109112
| **Default**: ``mongodb://localhost:27017,localhost:27018,localhost:27019``
110113
| **Accepted Values**: A valid MongoDB connection URI string
111114

0 commit comments

Comments
 (0)