Skip to content

Commit fdd4ecf

Browse files
committed
Sync documentation of main branch
1 parent 6723c37 commit fdd4ecf

8 files changed

+173
-63
lines changed

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

Lines changed: 59 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12173,6 +12173,27 @@ endif::add-copy-button-to-env-var[]
1217312173
|string
1217412174
|`X-Forwarded-Prefix`
1217512175

12176+
a| [[quarkus-vertx-http_quarkus-http-proxy-enable-trusted-proxy-header]] [.property-path]##link:#quarkus-vertx-http_quarkus-http-proxy-enable-trusted-proxy-header[`quarkus.http.proxy.enable-trusted-proxy-header`]##
12177+
12178+
[.description]
12179+
--
12180+
Adds the header `X-Forwarded-Trusted-Proxy` if the request is forwarded by a trusted proxy. The value is `true` if the request is forwarded by a trusted proxy, otherwise `null`.
12181+
12182+
The forwarded parser detects forgery attempts and if the incoming request contains this header, it will be removed from the request.
12183+
12184+
The `X-Forwarded-Trusted-Proxy` header is a custom header, not part of the standard `Forwarded` header.
12185+
12186+
12187+
ifdef::add-copy-button-to-env-var[]
12188+
Environment variable: env_var_with_copy_button:+++QUARKUS_HTTP_PROXY_ENABLE_TRUSTED_PROXY_HEADER+++[]
12189+
endif::add-copy-button-to-env-var[]
12190+
ifndef::add-copy-button-to-env-var[]
12191+
Environment variable: `+++QUARKUS_HTTP_PROXY_ENABLE_TRUSTED_PROXY_HEADER+++`
12192+
endif::add-copy-button-to-env-var[]
12193+
--
12194+
|boolean
12195+
|`false`
12196+
1217612197
a| [[quarkus-vertx-http_quarkus-http-proxy-trusted-proxies]] [.property-path]##link:#quarkus-vertx-http_quarkus-http-proxy-trusted-proxies[`quarkus.http.proxy.trusted-proxies`]##
1217712198

1217812199
[.description]
@@ -13506,6 +13527,27 @@ endif::add-copy-button-to-env-var[]
1350613527
|string
1350713528
|`X-Forwarded-Prefix`
1350813529

13530+
a| [[quarkus-vertx-http_quarkus-management-proxy-enable-trusted-proxy-header]] [.property-path]##link:#quarkus-vertx-http_quarkus-management-proxy-enable-trusted-proxy-header[`quarkus.management.proxy.enable-trusted-proxy-header`]##
13531+
13532+
[.description]
13533+
--
13534+
Adds the header `X-Forwarded-Trusted-Proxy` if the request is forwarded by a trusted proxy. The value is `true` if the request is forwarded by a trusted proxy, otherwise `null`.
13535+
13536+
The forwarded parser detects forgery attempts and if the incoming request contains this header, it will be removed from the request.
13537+
13538+
The `X-Forwarded-Trusted-Proxy` header is a custom header, not part of the standard `Forwarded` header.
13539+
13540+
13541+
ifdef::add-copy-button-to-env-var[]
13542+
Environment variable: env_var_with_copy_button:+++QUARKUS_MANAGEMENT_PROXY_ENABLE_TRUSTED_PROXY_HEADER+++[]
13543+
endif::add-copy-button-to-env-var[]
13544+
ifndef::add-copy-button-to-env-var[]
13545+
Environment variable: `+++QUARKUS_MANAGEMENT_PROXY_ENABLE_TRUSTED_PROXY_HEADER+++`
13546+
endif::add-copy-button-to-env-var[]
13547+
--
13548+
|boolean
13549+
|`false`
13550+
1350913551
a| [[quarkus-vertx-http_quarkus-management-proxy-trusted-proxies]] [.property-path]##link:#quarkus-vertx-http_quarkus-management-proxy-trusted-proxies[`quarkus.management.proxy.trusted-proxies`]##
1351013552

1351113553
[.description]
@@ -71164,23 +71206,6 @@ endif::add-copy-button-to-env-var[]
7116471206
a|`off`, `query-only`, `query-and-variables`
7116571207
|`off`
7116671208

71167-
a|icon:lock[title=Fixed at build time] [[quarkus-smallrye-graphql_quarkus-smallrye-graphql-field-visibility]] [.property-path]##link:#quarkus-smallrye-graphql_quarkus-smallrye-graphql-field-visibility[`quarkus.smallrye-graphql.field-visibility`]##
71168-
71169-
[.description]
71170-
--
71171-
Set the Field visibility.
71172-
71173-
71174-
ifdef::add-copy-button-to-env-var[]
71175-
Environment variable: env_var_with_copy_button:+++QUARKUS_SMALLRYE_GRAPHQL_FIELD_VISIBILITY+++[]
71176-
endif::add-copy-button-to-env-var[]
71177-
ifndef::add-copy-button-to-env-var[]
71178-
Environment variable: `+++QUARKUS_SMALLRYE_GRAPHQL_FIELD_VISIBILITY+++`
71179-
endif::add-copy-button-to-env-var[]
71180-
--
71181-
|string
71182-
|`default`
71183-
7118471209
a|icon:lock[title=Fixed at build time] [[quarkus-smallrye-graphql_quarkus-smallrye-graphql-unwrap-exceptions]] [.property-path]##link:#quarkus-smallrye-graphql_quarkus-smallrye-graphql-unwrap-exceptions[`quarkus.smallrye-graphql.unwrap-exceptions`]##
7118571210

7118671211
[.description]
@@ -71385,6 +71410,23 @@ endif::add-copy-button-to-env-var[]
7138571410
|boolean
7138671411
|`true`
7138771412

71413+
a| [[quarkus-smallrye-graphql_quarkus-smallrye-graphql-field-visibility]] [.property-path]##link:#quarkus-smallrye-graphql_quarkus-smallrye-graphql-field-visibility[`quarkus.smallrye-graphql.field-visibility`]##
71414+
71415+
[.description]
71416+
--
71417+
Specifies the field visibility for the GraphQL schema. This configuration item allows you to define comma-separated list of patterns (GraphQLType.GraphQLField). These patterns are used to determine which fields should be excluded from the schema. Special value `no-introspection` will disable introspection fields. For more info see link:https://smallrye.io/smallrye-graphql/docs/schema/field-visibility[graphql-java documentation]
71418+
71419+
71420+
ifdef::add-copy-button-to-env-var[]
71421+
Environment variable: env_var_with_copy_button:+++QUARKUS_SMALLRYE_GRAPHQL_FIELD_VISIBILITY+++[]
71422+
endif::add-copy-button-to-env-var[]
71423+
ifndef::add-copy-button-to-env-var[]
71424+
Environment variable: `+++QUARKUS_SMALLRYE_GRAPHQL_FIELD_VISIBILITY+++`
71425+
endif::add-copy-button-to-env-var[]
71426+
--
71427+
|string
71428+
|`default`
71429+
7138871430
h|[[quarkus-smallrye-graphql_section_quarkus-smallrye-graphql-ui]] [.section-name.section-level0]##link:#quarkus-smallrye-graphql_section_quarkus-smallrye-graphql-ui[SmallRye GraphQL UI configuration]##
7138971431
h|Type
7139071432
h|Default

_generated-doc/main/config/quarkus-smallrye-graphql.adoc

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -364,23 +364,6 @@ endif::add-copy-button-to-env-var[]
364364
a|`off`, `query-only`, `query-and-variables`
365365
|`off`
366366

367-
a|icon:lock[title=Fixed at build time] [[quarkus-smallrye-graphql_quarkus-smallrye-graphql-field-visibility]] [.property-path]##link:#quarkus-smallrye-graphql_quarkus-smallrye-graphql-field-visibility[`quarkus.smallrye-graphql.field-visibility`]##
368-
369-
[.description]
370-
--
371-
Set the Field visibility.
372-
373-
374-
ifdef::add-copy-button-to-env-var[]
375-
Environment variable: env_var_with_copy_button:+++QUARKUS_SMALLRYE_GRAPHQL_FIELD_VISIBILITY+++[]
376-
endif::add-copy-button-to-env-var[]
377-
ifndef::add-copy-button-to-env-var[]
378-
Environment variable: `+++QUARKUS_SMALLRYE_GRAPHQL_FIELD_VISIBILITY+++`
379-
endif::add-copy-button-to-env-var[]
380-
--
381-
|string
382-
|`default`
383-
384367
a|icon:lock[title=Fixed at build time] [[quarkus-smallrye-graphql_quarkus-smallrye-graphql-unwrap-exceptions]] [.property-path]##link:#quarkus-smallrye-graphql_quarkus-smallrye-graphql-unwrap-exceptions[`quarkus.smallrye-graphql.unwrap-exceptions`]##
385368

386369
[.description]
@@ -585,6 +568,23 @@ endif::add-copy-button-to-env-var[]
585568
|boolean
586569
|`true`
587570

571+
a| [[quarkus-smallrye-graphql_quarkus-smallrye-graphql-field-visibility]] [.property-path]##link:#quarkus-smallrye-graphql_quarkus-smallrye-graphql-field-visibility[`quarkus.smallrye-graphql.field-visibility`]##
572+
573+
[.description]
574+
--
575+
Specifies the field visibility for the GraphQL schema. This configuration item allows you to define comma-separated list of patterns (GraphQLType.GraphQLField). These patterns are used to determine which fields should be excluded from the schema. Special value `no-introspection` will disable introspection fields. For more info see link:https://smallrye.io/smallrye-graphql/docs/schema/field-visibility[graphql-java documentation]
576+
577+
578+
ifdef::add-copy-button-to-env-var[]
579+
Environment variable: env_var_with_copy_button:+++QUARKUS_SMALLRYE_GRAPHQL_FIELD_VISIBILITY+++[]
580+
endif::add-copy-button-to-env-var[]
581+
ifndef::add-copy-button-to-env-var[]
582+
Environment variable: `+++QUARKUS_SMALLRYE_GRAPHQL_FIELD_VISIBILITY+++`
583+
endif::add-copy-button-to-env-var[]
584+
--
585+
|string
586+
|`default`
587+
588588
h|[[quarkus-smallrye-graphql_section_quarkus-smallrye-graphql-ui]] [.section-name.section-level0]##link:#quarkus-smallrye-graphql_section_quarkus-smallrye-graphql-ui[SmallRye GraphQL UI configuration]##
589589
h|Type
590590
h|Default

_generated-doc/main/config/quarkus-smallrye-graphql_quarkus.smallrye-graphql.adoc

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -364,23 +364,6 @@ endif::add-copy-button-to-env-var[]
364364
a|`off`, `query-only`, `query-and-variables`
365365
|`off`
366366

367-
a|icon:lock[title=Fixed at build time] [[quarkus-smallrye-graphql_quarkus-smallrye-graphql-field-visibility]] [.property-path]##link:#quarkus-smallrye-graphql_quarkus-smallrye-graphql-field-visibility[`quarkus.smallrye-graphql.field-visibility`]##
368-
369-
[.description]
370-
--
371-
Set the Field visibility.
372-
373-
374-
ifdef::add-copy-button-to-env-var[]
375-
Environment variable: env_var_with_copy_button:+++QUARKUS_SMALLRYE_GRAPHQL_FIELD_VISIBILITY+++[]
376-
endif::add-copy-button-to-env-var[]
377-
ifndef::add-copy-button-to-env-var[]
378-
Environment variable: `+++QUARKUS_SMALLRYE_GRAPHQL_FIELD_VISIBILITY+++`
379-
endif::add-copy-button-to-env-var[]
380-
--
381-
|string
382-
|`default`
383-
384367
a|icon:lock[title=Fixed at build time] [[quarkus-smallrye-graphql_quarkus-smallrye-graphql-unwrap-exceptions]] [.property-path]##link:#quarkus-smallrye-graphql_quarkus-smallrye-graphql-unwrap-exceptions[`quarkus.smallrye-graphql.unwrap-exceptions`]##
385368

386369
[.description]
@@ -585,6 +568,23 @@ endif::add-copy-button-to-env-var[]
585568
|boolean
586569
|`true`
587570

571+
a| [[quarkus-smallrye-graphql_quarkus-smallrye-graphql-field-visibility]] [.property-path]##link:#quarkus-smallrye-graphql_quarkus-smallrye-graphql-field-visibility[`quarkus.smallrye-graphql.field-visibility`]##
572+
573+
[.description]
574+
--
575+
Specifies the field visibility for the GraphQL schema. This configuration item allows you to define comma-separated list of patterns (GraphQLType.GraphQLField). These patterns are used to determine which fields should be excluded from the schema. Special value `no-introspection` will disable introspection fields. For more info see link:https://smallrye.io/smallrye-graphql/docs/schema/field-visibility[graphql-java documentation]
576+
577+
578+
ifdef::add-copy-button-to-env-var[]
579+
Environment variable: env_var_with_copy_button:+++QUARKUS_SMALLRYE_GRAPHQL_FIELD_VISIBILITY+++[]
580+
endif::add-copy-button-to-env-var[]
581+
ifndef::add-copy-button-to-env-var[]
582+
Environment variable: `+++QUARKUS_SMALLRYE_GRAPHQL_FIELD_VISIBILITY+++`
583+
endif::add-copy-button-to-env-var[]
584+
--
585+
|string
586+
|`default`
587+
588588
h|[[quarkus-smallrye-graphql_section_quarkus-smallrye-graphql-ui]] [.section-name.section-level0]##link:#quarkus-smallrye-graphql_section_quarkus-smallrye-graphql-ui[SmallRye GraphQL UI configuration]##
589589
h|Type
590590
h|Default

_generated-doc/main/config/quarkus-vertx-http_quarkus.http.adoc

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2947,6 +2947,27 @@ endif::add-copy-button-to-env-var[]
29472947
|string
29482948
|`X-Forwarded-Prefix`
29492949

2950+
a| [[quarkus-vertx-http_quarkus-http-proxy-enable-trusted-proxy-header]] [.property-path]##link:#quarkus-vertx-http_quarkus-http-proxy-enable-trusted-proxy-header[`quarkus.http.proxy.enable-trusted-proxy-header`]##
2951+
2952+
[.description]
2953+
--
2954+
Adds the header `X-Forwarded-Trusted-Proxy` if the request is forwarded by a trusted proxy. The value is `true` if the request is forwarded by a trusted proxy, otherwise `null`.
2955+
2956+
The forwarded parser detects forgery attempts and if the incoming request contains this header, it will be removed from the request.
2957+
2958+
The `X-Forwarded-Trusted-Proxy` header is a custom header, not part of the standard `Forwarded` header.
2959+
2960+
2961+
ifdef::add-copy-button-to-env-var[]
2962+
Environment variable: env_var_with_copy_button:+++QUARKUS_HTTP_PROXY_ENABLE_TRUSTED_PROXY_HEADER+++[]
2963+
endif::add-copy-button-to-env-var[]
2964+
ifndef::add-copy-button-to-env-var[]
2965+
Environment variable: `+++QUARKUS_HTTP_PROXY_ENABLE_TRUSTED_PROXY_HEADER+++`
2966+
endif::add-copy-button-to-env-var[]
2967+
--
2968+
|boolean
2969+
|`false`
2970+
29502971
a| [[quarkus-vertx-http_quarkus-http-proxy-trusted-proxies]] [.property-path]##link:#quarkus-vertx-http_quarkus-http-proxy-trusted-proxies[`quarkus.http.proxy.trusted-proxies`]##
29512972

29522973
[.description]

_generated-doc/main/config/quarkus-vertx-http_quarkus.management.adoc

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1266,6 +1266,27 @@ endif::add-copy-button-to-env-var[]
12661266
|string
12671267
|`X-Forwarded-Prefix`
12681268

1269+
a| [[quarkus-vertx-http_quarkus-management-proxy-enable-trusted-proxy-header]] [.property-path]##link:#quarkus-vertx-http_quarkus-management-proxy-enable-trusted-proxy-header[`quarkus.management.proxy.enable-trusted-proxy-header`]##
1270+
1271+
[.description]
1272+
--
1273+
Adds the header `X-Forwarded-Trusted-Proxy` if the request is forwarded by a trusted proxy. The value is `true` if the request is forwarded by a trusted proxy, otherwise `null`.
1274+
1275+
The forwarded parser detects forgery attempts and if the incoming request contains this header, it will be removed from the request.
1276+
1277+
The `X-Forwarded-Trusted-Proxy` header is a custom header, not part of the standard `Forwarded` header.
1278+
1279+
1280+
ifdef::add-copy-button-to-env-var[]
1281+
Environment variable: env_var_with_copy_button:+++QUARKUS_MANAGEMENT_PROXY_ENABLE_TRUSTED_PROXY_HEADER+++[]
1282+
endif::add-copy-button-to-env-var[]
1283+
ifndef::add-copy-button-to-env-var[]
1284+
Environment variable: `+++QUARKUS_MANAGEMENT_PROXY_ENABLE_TRUSTED_PROXY_HEADER+++`
1285+
endif::add-copy-button-to-env-var[]
1286+
--
1287+
|boolean
1288+
|`false`
1289+
12691290
a| [[quarkus-vertx-http_quarkus-management-proxy-trusted-proxies]] [.property-path]##link:#quarkus-vertx-http_quarkus-management-proxy-trusted-proxies[`quarkus.management.proxy.trusted-proxies`]##
12701291

12711292
[.description]

_versions/main/guides/deploying-to-google-cloud.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@ Then, you will need to create a `src/main/appengine/app.yaml` file, let's keep i
6060

6161
[source, yaml]
6262
----
63-
runtime: java11
63+
runtime: java17
6464
----
6565

6666
This will create a default service for your App Engine application.
6767

6868
[NOTE]
6969
====
70-
You can also use the new Java 17 runtime by defining `runtime: java17` instead.
70+
You can also use another Java runtime supported by App Engine, for example, for Java 21, use `runtime: java21` instead.
7171
====
7272

7373
App Engine Standard does not support the default Quarkus' specific packaging layout, therefore, you must set up your application to be packaged as an uber-jar via your `application.properties` file:
@@ -114,7 +114,7 @@ First, add the plugin to your `pom.xml`:
114114
<plugin>
115115
<groupId>com.google.cloud.tools</groupId>
116116
<artifactId>appengine-maven-plugin</artifactId>
117-
<version>2.4.4</version>
117+
<version>2.7.0</version>
118118
<configuration>
119119
<projectId>GCLOUD_CONFIG</projectId> <1>
120120
<version>gettingstarted</version>

_versions/main/guides/mailer-reference.adoc

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ To send a simple email, proceed as follows:
6666
[source, java]
6767
----
6868
// Imperative API:
69-
mailer.send(Mail.withText("[email protected]", "A simple email from quarkus", "This is my body."));
69+
mailer.send(Mail.withText("[email protected]", "A simple email from quarkus", "This is my body.").setFrom("[email protected]"));
7070
// Reactive API:
71-
Uni<Void> stage = reactiveMailer.send(Mail.withText("[email protected]", "A reactive email from quarkus", "This is my body."));
71+
Uni<Void> stage = reactiveMailer.send(Mail.withText("[email protected]", "A reactive email from quarkus", "This is my body.").setFrom("[email protected]"));
7272
----
7373

7474
For example, you can use the `Mailer` in an HTTP endpoint as follows:
@@ -78,14 +78,14 @@ For example, you can use the `Mailer` in an HTTP endpoint as follows:
7878
@GET
7979
@Path("/imperative")
8080
public void sendASimpleEmail() {
81-
mailer.send(Mail.withText("[email protected]", "A simple email from quarkus", "This is my body"));
81+
mailer.send(Mail.withText("[email protected]", "A simple email from quarkus", "This is my body").setFrom("[email protected]"));
8282
}
8383
8484
@GET
8585
@Path("/reactive")
8686
public Uni<Void> sendASimpleEmailAsync() {
8787
return reactiveMailer.send(
88-
Mail.withText("[email protected]", "A reactive email from quarkus", "This is my body"));
88+
Mail.withText("[email protected]", "A reactive email from quarkus", "This is my body").setFrom("[email protected]"));
8989
}
9090
----
9191

@@ -96,6 +96,20 @@ You can create new `io.quarkus.mailer.Mail` instances from the constructor or fr
9696
`Mail.withHtml` helper methods.
9797
The `Mail` instance lets you add recipients (to, cc, or bcc), set the subject, headers, sender (from) address...
9898

99+
Most of these properties are optional, but the sender address is required. It can either be set on an individual `Mail` instances using
100+
101+
[source,java]
102+
----
103+
.setFrom("[email protected]");
104+
----
105+
106+
or a global default can be configured, using
107+
108+
[source,properties]
109+
----
110+
111+
----
112+
99113
You can also send several `Mail` objects in one call:
100114

101115
[source, java]

_versions/main/guides/tls-registry-reference.adoc

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@ These properties are required for:
4848
* Creating separate, named configurations by using `+quarkus.tls.<name>.*+`.
4949
By specifying the `+quarkus.tls.<name>.*+` properties, you can adapt the TLS settings for a specific component.
5050

51+
[IMPORTANT]
52+
====
53+
The default TLS configuration is not a fallback/global configuration. This means that each named TLS configuration
54+
(or "TLS bucket") needs to provide its own properties. For instance, `quarkus.tls.reload-period` will only be applied
55+
to the default TLS configuration.
56+
====
57+
5158
=== Configuring HTTPS for a HTTP server
5259

5360
To ensure secure client-server communication, the client is often required to verify the server's authenticity.
@@ -620,7 +627,7 @@ If any of these checks fail, the application will not start.
620627
== Reloading certificates
621628

622629
The `TlsConfiguration` obtained from the `TLSConfigurationRegistry` includes a mechanism for reloading certificates.
623-
The `reload` method refreshes the keystores and truststores, typically by reloading them from the file system.
630+
The `reload` method refreshes the keystores, truststores and CRLs, typically by reloading them from the file system.
624631

625632
NOTE: The reload operation is not automatic and must be triggered manually.
626633
Additionally, the `TlsConfiguration` implementation must support reloading (which is the case for the configured certificate).
@@ -650,8 +657,10 @@ public void reload() {
650657
}
651658
}
652659
653-
// In the server or client code
654-
public void onReload(@Observes CertificateUpdatedEvent reload) {
660+
// In the server (or client) code
661+
private final io.vertx.core.http.HttpServer server;
662+
663+
public void onCertificateUpdate(@Observes CertificateUpdatedEvent reload) {
655664
if ("name".equals(event.getName())) {
656665
server.updateSSLOptions(reload.tlsConfiguration().getSSLOptions());
657666
// Or update the SSLContext.
@@ -678,13 +687,16 @@ quarkus.tls.key-store.pem.0.key=tls.key
678687
+
679688
[source,properties]
680689
----
681-
quarkus.tls.http.reload-period=30min
690+
quarkus.tls.http.reload-period=30m
682691
quarkus.tls.http.key-store.pem.0.cert=tls.crt
683692
quarkus.tls.http.key-store.pem.0.key=tls.key
684693
----
685694

686695
IMPORTANT: Impacted server and client may need to listen to the `CertificateUpdatedEvent` to apply the new certificates.
687-
This is automatically done for the Quarkus HTTP server, including the management interface if it is enabled.
696+
This is automatically done for the Quarkus HTTP server (i.e. Quarkus REST server, gRPC server, Web Socket server) and
697+
the management interface if it is enabled.
698+
699+
NOTE: In Quarkus dev mode, when files are touched, it will trigger the `CertificateUpdatedEvent` much more frequently.
688700

689701
ifndef::no-kubernetes-secrets-or-cert-manager[]
690702
== Using Kubernetes secrets or cert-manager

0 commit comments

Comments
 (0)