Skip to content

Commit

Permalink
encrypt fields embeddings
Browse files Browse the repository at this point in the history
(cherry picked from commit 05b10e4)
(cherry picked from commit 4a1c4ef)
(cherry picked from commit c1b1e75)
  • Loading branch information
rustagir committed Sep 27, 2024
1 parent 2e15d7a commit 42a834e
Show file tree
Hide file tree
Showing 4 changed files with 40 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>

0 comments on commit 42a834e

Please sign in to comment.