You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "kta1kri (via GitHub)" <gi...@apache.org> on 2026/09/28 08:08:55 UTC
[PR] [Chart] Disable unauthenticated Zeta REST API v1 in the Kubernetes Helm chart defaults [seatunnel]
kta1kri opened a new pull request, #12513:
URL: https://github.com/apache/seatunnel/pull/12513
### Purpose of this pull request
The Kubernetes Helm chart's Hazelcast configuration enables the deprecated Zeta REST API v1, while the standalone config and the v1 documentation state that it is disabled by default:
- `deploy/kubernetes/seatunnel/conf/hazelcast-master.yaml` and `hazelcast-worker.yaml` set `rest-api.enabled: true`.
- `config/hazelcast.yaml` and `config/hazelcast-master.yaml` set `rest-api.enabled: false`, and `docs/en/seatunnel-engine/rest-api-v1.md` states that v1 is already disabled by default.
REST API v1 is served on the Hazelcast member port (5801) without authentication — the optional HTTP Basic auth applies only to the Jetty listener used by REST API v2 and the Web UI. Because the chart mounts these files through the ConfigMap and exposes port 5801, a deployment following the chart ships a management endpoint that the documentation describes as off by default.
This aligns the chart with the standalone default and the docs by setting `rest-api.enabled: false` in both chart Hazelcast configs. The chart already directs users to REST API v2 on port 8080. `endpoint-groups` are left unchanged, matching `config/hazelcast.yaml` (they are inert while the REST API is disabled).
This was discussed privately with the SeaTunnel PMC, who confirmed the inconsistency and agreed it should be corrected as a hardening/consistency improvement.
### Does this PR introduce _any_ user-facing change?
Deployments that relied on the chart exposing Zeta REST API v1 on port 5801 must switch to REST API v2 on port 8080 (the chart's documented interface, and the standalone default). Operators are also encouraged to restrict the Hazelcast member port (5801) with a NetworkPolicy.
### How was this patch tested?
Configuration-only change; the values now mirror `config/hazelcast.yaml`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Chart] Disable unauthenticated Zeta REST API v1 in the Kubernetes Helm chart defaults [seatunnel]
Posted by "davidzollo (via GitHub)" <gi...@apache.org>.
davidzollo merged PR #12513:
URL: https://github.com/apache/seatunnel/pull/12513
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Chart] Disable unauthenticated Zeta REST API v1 in the Kubernetes Helm chart defaults [seatunnel]
Posted by "kta1kri (via GitHub)" <gi...@apache.org>.
kta1kri commented on PR #12513:
URL: https://github.com/apache/seatunnel/pull/12513#issuecomment-5868023374
Thanks @DanielLeens and @davidzollo for the careful review.
**Issue 1 (metrics on 5801) — addressed by repointing Prometheus to REST API v2.**
You're right that disabling `rest-api` closes the member-port (5801) HTTP layer, so `/hazelcast/rest/instance/metrics` there stops answering. The same samples are already served on the REST API v2 / Jetty listener (8080), so there's no need to keep the unauthenticated v1 REST layer alive just for telemetry:
- `RestHttpGetCommandProcessor.handleMetrics` (5801) and `MetricsServlet.doGet` (8080) both write `nodeExtension.getMetricFamilySamples()` via `TextFormat.writeFormat`, so the output is identical.
- `JettyService` registers `MetricsServlet` at `/metrics` and `/openmetrics` unconditionally, with the default context-path `""`, and the chart already runs the Jetty listener (`enable-http: true`, port 8080).
So I repointed the default Prometheus pod annotations (master + worker) from `5801` `/hazelcast/rest/instance/metrics` to `8080` `/metrics`, with a comment explaining why. v1 stays fully off, and telemetry keeps working. Caveat worth noting: if REST v2 Basic auth is enabled the scrape needs credentials — it's off by default in the chart.
I traced this in source rather than on a live cluster; on a running install `curl http://<pod>:8080/metrics` should return the same Prometheus text that `5801/hazelcast/rest/instance/metrics` used to.
**Issue 2 (upgrade/migration note) — added.**
- `docs/en/introduction/concepts/incompatible-changes.md`: new entry under `## dev` (affected component, impact, migration to REST v2 on 8080, re-enabling v1 via a custom ConfigMap plus a `NetworkPolicy` on 5801 if truly required, and the metrics repoint).
- `docs/en/getting-started/kubernetes/helm.md` and `docs/zh/getting-started/kubernetes/helm.md`: a matching note, including that `helm upgrade` updates the ConfigMap but running pods keep the old config until restarted (mounted via `subPath`, no checksum annotation).
**CI:** enabled Actions in my fork and pushed the above as a new commit, so the workflows should run now.
Happy to adjust any of the wording.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Chart] Disable unauthenticated Zeta REST API v1 in the Kubernetes Helm chart defaults [seatunnel]
Posted by "davidzollo (via GitHub)" <gi...@apache.org>.
davidzollo commented on PR #12513:
URL: https://github.com/apache/seatunnel/pull/12513#issuecomment-5867836977
Good job.
Thanks a lot for your valuable contribution to Apache SeaTunnel!
To pass the automated CI checks for this PR, could you please enable CI workflows in your forked repository first? You can refer to the check run link below as a reference for the required CI configuration https://github.com/apache/seatunnel/pull/12513/checks?check_run_id=108841583714
If you run into any trouble enabling CI or encounter related errors during the process, feel free to leave a comment here. Contributors are always ready to offer help~
<img width="2412" height="1472" alt="image" src="https://github.com/user-attachments/assets/6abd2ea1-da45-4d78-a81c-0158f2d7a851" />
Please ignore the following message if you have joined in the SeaTunnel Slack~
To facilitate focused communication among contributors, we’ve created a brand-new dedicated #contributors channel in official Slack workspace.
Slack workspace link: https://s.apache.org/seatunnel-slack
This channel is designed for technical discussions, feature design brainstorming, roadmap sync and direct communication with project core Contributors. Everyone who contributes code, docs, test cases or community ideas is warmly invited to join, share thoughts and collaborate together under The Apache Way. Welcome to join 😄
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org