This is an automated email from the ASF dual-hosted git repository.

benjobs pushed a commit to branch dev-2.1.6
in repository https://gitbox.apache.org/repos/asf/incubator-streampark.git


The following commit(s) were added to refs/heads/dev-2.1.6 by this push:
     new 9168dabd9 [Improve] Unauthorized access to Spring Boot Actuator #4171 
(#4173)
9168dabd9 is described below

commit 9168dabd9879999c570a64904c76e308c6af81d6
Author: benjobs <[email protected]>
AuthorDate: Fri Jan 17 21:01:57 2025 +0800

    [Improve] Unauthorized access to Spring Boot Actuator #4171 (#4173)
---
 streampark-console/streampark-console-service/pom.xml                | 5 -----
 .../org/apache/streampark/console/base/config/SpringProperties.java  | 3 ++-
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/streampark-console/streampark-console-service/pom.xml 
b/streampark-console/streampark-console-service/pom.xml
index b9ce5868a..749ae5405 100644
--- a/streampark-console/streampark-console-service/pom.xml
+++ b/streampark-console/streampark-console-service/pom.xml
@@ -178,11 +178,6 @@
             <artifactId>spring-boot-starter-undertow</artifactId>
         </dependency>
 
-        <dependency>
-            <groupId>org.springframework.boot</groupId>
-            <artifactId>spring-boot-starter-actuator</artifactId>
-        </dependency>
-
         <dependency>
             <groupId>org.springframework.boot</groupId>
             <artifactId>spring-boot-starter-validation</artifactId>
diff --git 
a/streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/base/config/SpringProperties.java
 
b/streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/base/config/SpringProperties.java
index 855330dd9..2b1e0a71c 100644
--- 
a/streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/base/config/SpringProperties.java
+++ 
b/streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/base/config/SpringProperties.java
@@ -189,7 +189,8 @@ public class SpringProperties {
     config.put("springdoc.api-docs.enabled", "true");
 
     // metrics
-    config.put("management.health.ldap.enabled", "false");
+    config.put("management.endpoints.enabled-by-default", "false");
+
     return config;
   }
 

Reply via email to