Skip to content

Commit

Permalink
encrypt fields embeddings
Browse files Browse the repository at this point in the history
  • Loading branch information
rustagir committed Sep 27, 2024
1 parent 2e93b14 commit 05b10e4
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 1 deletion.
2 changes: 1 addition & 1 deletion snooty.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ kotlin-docs = "https://kotlinlang.org"
package-name-org = "mongodb-org"
api = "https://mongodb.github.io/mongo-java-driver/{+version+}"
stable-api = "Stable API"
mongocrypt-version = "1.7.3"
mongocrypt-version = "{+full-version+}"
nettyVersion = "io.netty:netty-all:4.1.79.Final"
snappyVersion = "org.xerial.snappy:snappy-java:1.1.8.4"
zstdVersion = "com.github.luben:zstd-jni:1.5.5-2"
Expand Down
25 changes: 25 additions & 0 deletions source/fundamentals/encrypt-fields.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@
.. _kotlin-fle:

.. sharedinclude:: dbx/encrypt-fields.rst

.. replacement:: driver-specific-content

.. important:: Compatible Encryption Library Version

The {+driver-short+} uses the `mongodb-crypt
<https://mvnrepository.com/artifact/org.mongodb/mongodb-crypt>`__
encryption library for in-use encryption. This driver version
is compatible with ``mongodb-crypt`` v{+mongocrypt-version+}.

Select from the following :guilabel:`Maven` and
:guilabel:`Gradle` tabs to see how to add the ``mongodb-crypt``
dependency to your project by using the specified manager:

.. tabs::

.. tab:: Maven
:tabid: maven-dependency

.. include:: /includes/fundamentals/code-snippets/crypt-maven-versioned.rst

.. tab:: Gradle
:tabid: gradle-dependency

.. include:: /includes/fundamentals/code-snippets/crypt-gradle-versioned.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.. code-block:: groovy
dependencies {
implementation("org.mongodb:mongodb-crypt:{+mongocrypt-version+}")
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.. code-block:: xml
<dependencies>
<dependency>
<groupId>org.mongodb</groupId>
<artifactId>mongodb-crypt</artifactId>
<version>{+mongocrypt-version+}</version>
</dependency>
</dependencies>
4 changes: 4 additions & 0 deletions source/whats-new.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ improvements, and fixes:

:ref:`kotlin-search-indexes` in the Indexes guide

.. replacement:: encrypt-link

the :ref:`In-Use Encryption <kotlin-fle>` guide

.. replacement:: vector-search-link

:ref:`kotlin-atlas-vector-search` in the Aggregates Builders guide
Expand Down

0 comments on commit 05b10e4

Please sign in to comment.