LeonYoah commented on PR #13277:
URL: https://github.com/apache/seatunnel/pull/13277#issuecomment-7209356901
@SEZ9 Thanks for the thorough follow-up questions! I have pushed commit
`43a025c87e` to address the remaining code and documentation items. Here are
the answers to all 6 points:
1. **Port collision (`application.master.http-port` vs
`application.master.port`)**:
- Yes, it is validated eagerly at specification parsing / construction
time in `ApplicationSpecification` (`SeatunnelApplicationConfig.parse`), before
any master startup: passing an equal value throws
`IllegalArgumentException("application.master.http-port must differ from
application.master.port")`. This is also covered in
`ApplicationSpecificationTest`.
2. **Startup WARN when `application.master.http-port` is enabled without
Basic Auth**:
- Added in `SeatunnelApplicationConfig.configureMasterHttp`: when
`application.master.http-port` is configured and `http.isEnableBasicAuth()` is
`false`, a `WARN` is logged naming the port,
`seatunnel.engine.http.enable-basic-auth`, and Pod access restriction (no
credentials are logged).
3. **Docs — opt-in semantics & FAQ security guidance**:
- Both EN/ZH `configuration.md` option tables and notes document
`application.master.http-port` as opt-in (unset disables master HTTP and omits
the `http` Service port), with no default-enabled note remaining.
- Both EN/ZH `faq.md` security sections now advise enabling basic
authentication (mounted from a Secret rather than a ConfigMap) and restricting
access to that port in `NetworkPolicy` when `application.master.http-port` is
enabled.
4. **Docs — HTTPS**:
- Both `configuration.md` (table row + `:::note`) and `overview.md`
(EN/ZH) explicitly state that `application.master.http-port` is HTTP-only and
HTTPS is not enabled on the application master (`enable-https = false`).
5. **Docs — master overrides vs preserved `seatunnel.yaml` settings**:
- The earlier `"solely by the seatunnel.yaml"` phrasing has been removed.
The `:::note` in EN/ZH `configuration.md` states the exact master overrides
(`enable-http`, `port`, `enable-dynamic-port = false`, `enable-https = false`)
and what is preserved from `seatunnel.yaml` (basic auth, `context-path`, and
request/response size limits).
6. **Docs — keeping basic-auth credentials out of ConfigMaps**:
- Both EN/ZH `configuration.md` and `faq.md` explicitly instruct mounting
any `seatunnel.yaml` containing `basic-auth-password` from a Secret rather than
a ConfigMap.
On CI: in the run on `73769e3156`
([45852742543](https://github.com/LeonYoah/seatunnel/actions/runs/45852742543)),
`engine-resource-managers-it` (JDK 11 & 17, which runs
`KubernetesApplicationConfigurationIT`) and `engine-v2-it` (JDK 11 & 17) all
passed; the two failures were unrelated (`rocketmq-connector-it` on JDK 17 and
`jdbc-connectors-it-part-7` on JDK 11). This push triggers a fresh CI run on
`43a025c87e`.
PTAL when you have a moment!
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]