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

wanghailin pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/seatunnel.git


The following commit(s) were added to refs/heads/dev by this push:
     new b0f29f52a0 [Improve][Zeta] Disable restful api v1 by default (#8766)
b0f29f52a0 is described below

commit b0f29f52a04b378a3a6edd455946632452739d09
Author: Jia Fan <[email protected]>
AuthorDate: Wed Feb 19 13:47:04 2025 +0800

    [Improve][Zeta] Disable restful api v1 by default (#8766)
---
 config/hazelcast-master.yaml            | 2 +-
 config/hazelcast.yaml                   | 2 +-
 docs/en/seatunnel-engine/rest-api-v1.md | 5 +++--
 docs/zh/seatunnel-engine/rest-api-v1.md | 5 +++--
 4 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/config/hazelcast-master.yaml b/config/hazelcast-master.yaml
index ef52a71770..ad03671ac2 100644
--- a/config/hazelcast-master.yaml
+++ b/config/hazelcast-master.yaml
@@ -19,7 +19,7 @@ hazelcast:
   cluster-name: seatunnel
   network:
     rest-api:
-      enabled: true
+      enabled: false
       endpoint-groups:
         CLUSTER_WRITE:
           enabled: true
diff --git a/config/hazelcast.yaml b/config/hazelcast.yaml
index f0a658082a..169b33eee3 100644
--- a/config/hazelcast.yaml
+++ b/config/hazelcast.yaml
@@ -19,7 +19,7 @@ hazelcast:
   cluster-name: seatunnel
   network:
     rest-api:
-      enabled: true
+      enabled: false
       endpoint-groups:
         CLUSTER_WRITE:
           enabled: true
diff --git a/docs/en/seatunnel-engine/rest-api-v1.md 
b/docs/en/seatunnel-engine/rest-api-v1.md
index f9b5f69aa7..5e9b772edc 100644
--- a/docs/en/seatunnel-engine/rest-api-v1.md
+++ b/docs/en/seatunnel-engine/rest-api-v1.md
@@ -6,7 +6,7 @@ sidebar_position: 11
 
 :::caution warn
 
-It is recommended to use the v2 version of the Rest API. The v1 version is 
deprecated and will be removed in the future.
+It is recommended to use the v2 version of the Rest API. The v1 version is 
deprecated and will be removed in the future. We already disabled the v1 
version by default. If you want to use the v1 version, you need to enable it in 
the `hazelcast.yaml` file.
 
 :::
 
@@ -16,7 +16,8 @@ completed jobs. The monitoring API is a RESTful API that 
accepts HTTP requests a
 ## Overview
 
 The monitoring API is backed by a web server that runs as part of the node, 
each node member can provide RESTful api capability.
-By default, this server listens at port 5801, which can be configured in 
hazelcast.yaml like :
+By default, the server disables the RESTful API V1, and it can be enabled by 
setting the `rest-api.enabled` configuration in the `hazelcast.yaml` file.
+This server listens at port 5801, which can be configured in hazelcast.yaml 
like :
 
 ```yaml
 network:
diff --git a/docs/zh/seatunnel-engine/rest-api-v1.md 
b/docs/zh/seatunnel-engine/rest-api-v1.md
index f23021cdb9..1fe4eaf6f4 100644
--- a/docs/zh/seatunnel-engine/rest-api-v1.md
+++ b/docs/zh/seatunnel-engine/rest-api-v1.md
@@ -6,7 +6,7 @@ sidebar_position: 11
 
 :::caution warn
 
-推荐使用v2版本的Rest API。 v1 版本已弃用,并将在将来删除。
+推荐使用v2版本的Rest API。 v1 版本已弃用,并将在将来删除。 
我们已经默认关闭了v1版本的API,如果您需要使用v1版本,请在`hazelcast.yaml`文件中启用它。
 
 :::
 
@@ -15,7 +15,8 @@ SeaTunnel有一个用于监控的API,可用于查询运行作业的状态和
 ## 概述
 
 监控API是由运行的web服务提供的,它是节点运行的一部分,每个节点成员都可以提供rest API功能。
-默认情况下,该服务监听端口为5801,该端口可以在hazelcast.yaml中配置,如下所示:
+默认情况下,服务器禁用了RESTful API V1,可以通过在`hazelcast.yaml`文件中设置`rest-api.enabled`配置来启用它。
+该服务监听端口为5801,该端口可以在hazelcast.yaml中配置,如下所示:
 
 ```yaml
 network:

Reply via email to