You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampark.apache.org by be...@apache.org on 2025/01/16 12:10:17 UTC
(incubator-streampark) 01/01: [Improve] Unauthorized access to Spring Boot Actuator #4171
This is an automated email from the ASF dual-hosted git repository.
benjobs pushed a commit to branch issue-4171
in repository https://gitbox.apache.org/repos/asf/incubator-streampark.git
commit 070e0c6344e508d352a3338315101f6ae9aeca30
Author: benjobs <be...@apache.org>
AuthorDate: Thu Jan 16 20:10:00 2025 +0800
[Improve] Unauthorized access to Spring Boot Actuator #4171
---
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;
}