[ 
https://issues.apache.org/jira/browse/FLINK-38383?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18133553#comment-18133553
 ] 

Josh Keegan commented on FLINK-38383:
-------------------------------------

This is still an issue with the current operator release (1.16.1), which now 
uses eclipse-temurin:17-jre-jammy as its base image. With the rate at which 
CVEs are now being discovered and fixed, this would be very helpful for us to 
keep known vulnerabilities patched in our Kubernetes clusters.

Would it be possible to rebuild and publish updated operator images on a 
regular cadence (e.g. daily), or whenever the upstream base image changes? 
Ideally with distinct tags, e.g. 1.16.1-r1 so that users could explicitly 
upgrade to patched images, but if mutable tags are preferred (like is done for 
the main Flink image) that also works for me.

> Automatically republish Flink Kubernetes Operator image when base image 
> receives security patches
> -------------------------------------------------------------------------------------------------
>
>                 Key: FLINK-38383
>                 URL: https://issues.apache.org/jira/browse/FLINK-38383
>             Project: Flink
>          Issue Type: Improvement
>          Components: Kubernetes Operator
>    Affects Versions: 1.12.1
>            Reporter: Jaydeep Karia
>            Priority: Major
>
> Currently, the published {{apache/flink-kubernetes-operator}} images are 
> built on top of 
> [eclipse-temurin-11-jre-jammy|https://github.com/apache/flink-kubernetes-operator/blob/release-1.12.1/Dockerfile#L38C6-L38C47]{{{}{}}}.
> For example, the {{1.12.1}} operator image (released July 2025) was built 
> against Temurin 11.0.27 (packaged April 15, 2025):
> $ java --version
> openjdk 11.0.27 2025-04-15
> OpenJDK Runtime Environment Temurin-11.0.27+6 (build 11.0.27+6)
> OpenJDK 64-Bit Server VM Temurin-11.0.27+6 (build 11.0.27+6, mixed mode, 
> sharing)
>  
> {{}}
> Since then, the Temurin project has published {*}11.0.28{*}, which addresses 
> multiple high-severity CVEs (e.g., CVE-2025-30749, CVE-2025-50106). While 
> these CVEs may not be directly exploitable in the Operator context 
> (server-side, trusted code), most downstream users are required to consume 
> images without known CVEs for compliance and audit reasons.
> ----
> h3. Motivation
>  * Security scanners flag the current Operator image due to the outdated JRE 
> version.
>  * Teams deploying Flink in production often must rebuild the Operator image 
> themselves just to update the Java base layer.
>  * Automating republishing when the base image is updated reduces friction, 
> improves supply chain hygiene, and helps downstream users meet security 
> requirements without custom builds.
> ----
> h3. Proposed Improvement
> Introduce a process to *rebuild and republish the Operator image 
> automatically* whenever the base image ({{{}eclipse-temurin-11-jre-jammy{}}}) 
> is updated with a patched JDK/JRE version. Possible approaches:
>  * Add a scheduled GitHub Action / CI job that periodically checks for 
> updated Temurin tags and rebuilds the Operator image.
>  * Or, at a minimum, document and commit to publishing patched “-rX” images 
> (e.g., {{{}1.12.1-r1{}}}) shortly after upstream Temurin releases a CPU 
> update.
> ----
> h3. References
>  * Eclipse Temurin 11.0.28 release notes
>  * [Oracle Critical Patch Update – July 
> 2025|https://www.oracle.com/security-alerts/cpujul2025.html?utm_source=chatgpt.com]
>  * CVEs addressed: 
> [CVE-2025-30749|https://nvd.nist.gov/vuln/detail/CVE-2025-30749?utm_source=chatgpt.com],
>  
> [CVE-2025-50106|https://nvd.nist.gov/vuln/detail/CVE-2025-50106?utm_source=chatgpt.com]



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to