Skip to content

Commit 186449b

Browse files
committed
Sync documentation of main branch
1 parent 59ff110 commit 186449b

File tree

5 files changed

+34
-7
lines changed

5 files changed

+34
-7
lines changed

_generated-doc/main/config/quarkus-all-config.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64605,7 +64605,7 @@ Environment variable: `+++QUARKUS_MONGODB_DNS_SERVER_PORT+++`
6460564605
endif::add-copy-button-to-env-var[]
6460664606
--
6460764607
|int
64608-
|`53`
64608+
|
6460964609

6461064610
a| [[quarkus-mongodb-client_quarkus-mongodb-dns-lookup-timeout]] [.property-path]##link:#quarkus-mongodb-client_quarkus-mongodb-dns-lookup-timeout[`quarkus.mongodb.dns.lookup-timeout`]##
6461164611
ifdef::add-copy-button-to-config-props[]

_generated-doc/main/config/quarkus-mongodb-client.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ Environment variable: `+++QUARKUS_MONGODB_DNS_SERVER_PORT+++`
665665
endif::add-copy-button-to-env-var[]
666666
--
667667
|int
668-
|`53`
668+
|
669669

670670
a| [[quarkus-mongodb-client_quarkus-mongodb-dns-lookup-timeout]] [.property-path]##link:#quarkus-mongodb-client_quarkus-mongodb-dns-lookup-timeout[`quarkus.mongodb.dns.lookup-timeout`]##
671671
ifdef::add-copy-button-to-config-props[]

_generated-doc/main/config/quarkus-mongodb-client_quarkus.mongodb.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ Environment variable: `+++QUARKUS_MONGODB_DNS_SERVER_PORT+++`
665665
endif::add-copy-button-to-env-var[]
666666
--
667667
|int
668-
|`53`
668+
|
669669

670670
a| [[quarkus-mongodb-client_quarkus-mongodb-dns-lookup-timeout]] [.property-path]##link:#quarkus-mongodb-client_quarkus-mongodb-dns-lookup-timeout[`quarkus.mongodb.dns.lookup-timeout`]##
671671
ifdef::add-copy-button-to-config-props[]

_generated-doc/main/infra/quarkus-all-build-items.adoc

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3244,7 +3244,19 @@ a| https://github.com/quarkusio/quarkus/blob/main/extensions/arc/deployment/src/
32443244
[.description]
32453245
--
32463246
_No Javadoc found_
3247-
-- a|`io.quarkus.runtime.RuntimeValue<Boolean> runtimeEnabled`
3247+
-- a|`boolean tracingBuildTimeEnabled`
3248+
3249+
_No Javadoc found_
3250+
3251+
`boolean metricsBuildTimeEnabled`
3252+
3253+
_No Javadoc found_
3254+
3255+
`boolean loggingBuildTimeEnabled`
3256+
3257+
_No Javadoc found_
3258+
3259+
`io.quarkus.runtime.RuntimeValue<Boolean> runtimeEnabled`
32483260

32493261
_No Javadoc found_
32503262

_versions/main/guides/mongodb.adoc

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,10 +235,24 @@ In this example, we are using a single instance running on localhost:
235235
quarkus.mongodb.connection-string = mongodb://localhost:27017
236236
----
237237

238-
If you need more configuration properties, there is a full list at the end of this guide.
238+
=== Resolving mongo+srv:// URLs
239239

240-
WARNING: By default, Quarkus will restrict the use of JNDI within an application, as a precaution to try and mitigate any future vulnerabilities similar to Log4Shell.
241-
Because the `mongo+srv` protocol often used to connect to MongoDB requires JNDI, this protection is automatically disabled when using the MongoDB client extension.
240+
When using `mongo+srv://` URLs, the MongoDB driver resolves DNS SRV records to retrieve the list of hosts to connect to.
241+
By default, it relies on a DNS client implemented using JNDI.
242+
243+
For security reasons, Quarkus restricts JNDI usage within applications to help mitigate potential vulnerabilities like Log4Shell.
244+
To support `mongo+srv://`, Quarkus provides an alternative DNS client.
245+
246+
However, in some environments, this alternative DNS client may be unable to resolve `SRV` records.
247+
If you encounter such issues, you can revert to the MongoDB driver’s default DNS client by setting the following properties:
248+
249+
[source, properties]
250+
----
251+
quarkus.naming.enable-jndi=true
252+
quarkus.class-loading.removed-resources."io.quarkus\:quarkus-mongodb-client"=META-INF/services/com.mongodb.spi.dns.DnsClientProvider
253+
----
254+
255+
This restores the default JNDI-based resolution mechanism used by the MongoDB driver.
242256

243257
[[dev-services]]
244258
=== Use the MongoDB Dev Services
@@ -777,6 +791,7 @@ public class MyCustomizer implements MongoClientCustomizer {
777791

778792
IMPORTANT: Client-side field level encryption, and feature relying on https://github.com/mongodb/libmongocrypt[Mongo Crypt] in general, are not supported in native mode.
779793

794+
780795
== Configuration Reference
781796

782797
include::{generated-dir}/config/quarkus-mongodb-client.adoc[opts=optional, leveloffset=+1]

0 commit comments

Comments
 (0)