oscerd opened a new pull request, #1104: URL: https://github.com/apache/flink-kubernetes-operator/pull/1104
## What Extend `DefaultValidator.validateJobSpec` to validate `JobSpec.jarURI`: reject malformed URIs, schemes outside a configurable allowlist, and `http`/`https` URIs whose host resolves to loopback, link-local, site-local, wildcard or multicast addresses. ## Config options - `kubernetes.operator.user.artifacts.allowed-schemes` (`List<String>`, default `https`, `local`) - `kubernetes.operator.user.artifacts.disallow-restricted-hosts` (`Boolean`, default `true`) ## Tests - `mvn -pl flink-kubernetes-operator test` → 2132 / 0 - `mvn -pl flink-kubernetes-webhook -am test` → 105 / 0 `DefaultValidatorTest` gains `testJarUriSchemeValidation` and `testJarUriHostValidation`. -- 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]
