You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/CrshAutoConfiguration.java
+19-16Lines changed: 19 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -88,16 +88,17 @@
88
88
* The default shell authentication method uses a username and password combination. If no
89
89
* configuration is provided the default username is 'user' and the password will be
90
90
* printed to console during application startup. Those default values can be overridden
91
-
* by using {@code shell.auth.simple.username} and {@code shell.auth.simple.password}.
91
+
* by using {@code management.shell.auth.simple.username} and
92
+
* {@code management.shell.auth.simple.password}.
92
93
* <p>
93
94
* If a Spring Security {@link AuthenticationManager} is detected, this configuration will
94
95
* create a {@link CRaSHPlugin} to forward shell authentication requests to Spring
95
-
* Security. This authentication method will get enabled if {@code shell.auth} is set to
96
-
* {@code spring} or if no explicit {@code shell.auth} is provided and a
97
-
* {@link AuthenticationManager} is available. In the latter case shell access will be
98
-
* restricted to users having roles that match those configured in
96
+
* Security. This authentication method will get enabled if {@code management.shell.auth.type}
97
+
* is set to {@code spring} or if no explicit {@code management.shell.auth} is provided
98
+
* and a {@link AuthenticationManager} is available. In the latter case shell access will
99
+
* be restricted to users having roles that match those configured in
99
100
* {@link ManagementServerProperties}. Required roles can be overridden by
100
-
* {@code shell.auth.spring.roles}.
101
+
* {@code management.shell.auth.spring.roles}.
101
102
* <p>
102
103
* To add customizations to the shell simply define beans of type {@link CRaSHPlugin} in
103
104
* the application context. Those beans will get auto detected during startup and
@@ -109,7 +110,7 @@
109
110
* <a href="http://www.crashub.org">crashub.org</a>. By default Boot will search for
110
111
* commands using the following classpath scanning pattern {@code classpath*:/commands/**}
111
112
* . To add different locations or override the default use
112
-
* {@code shell.command_path_patterns} in your application configuration.
113
+
* {@code management.shell.command-path-patterns} in your application configuration.
Copy file name to clipboardExpand all lines: spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/CrshAutoConfigurationTests.java
0 commit comments