Skip to content

Commit 36b1f65

Browse files
committed
Merge branch '2.1.x'
Closes gh-18876
2 parents 8d2fa0a + 89e050d commit 36b1f65

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

spring-boot-project/spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,11 @@ NOTE: Profiles activated in the above files will not affect the loading of <<spr
916916
=== Remote Applications
917917
The Spring Boot developer tools are not limited to local development.
918918
You can also use several features when running applications remotely.
919-
Remote support is opt-in.
919+
Remote support is opt-in as enabling it can be a security risk.
920+
It should only be enabled when running on a trusted network or when secured with SSL.
921+
If neither of these options is available to you, you should not use DevTools' remote support.
922+
You should never enable support on a production deployment.
923+
920924
To enable it, you need to make sure that `devtools` is included in the repackaged archive, as shown in the following listing:
921925

922926
[source,xml,indent=0,subs="verbatim,quotes,attributes"]
@@ -934,15 +938,8 @@ To enable it, you need to make sure that `devtools` is included in the repackage
934938
</build>
935939
----
936940

937-
Then you need to set a configprop:spring.devtools.remote.secret[] property, as shown in the following example:
938-
939-
[source,properties,indent=0,configprops]
940-
----
941-
spring.devtools.remote.secret=mysecret
942-
----
943-
944-
WARNING: Enabling `spring-boot-devtools` on a remote application is a security risk.
945-
You should never enable support on a production deployment.
941+
Then you need to set the configprop:spring.devtools.remote.secret[] property.
942+
Like any important password or secret, the value should be unique and strong such that it cannot be guessed or brute-forced.
946943

947944
Remote devtools support is provided in two parts: a server-side endpoint that accepts connections and a client application that you run in your IDE.
948945
The server component is automatically enabled when the configprop:spring.devtools.remote.secret[] property is set.

0 commit comments

Comments
 (0)