You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
8000
Operator uses a compatibility Job Pod’s exit status without checking its owner UID #55550
With the Auto update strategy, the Keycloak Operator uses the compatibility Job Pod’s exit status to choose between a rolling update and recreating the deployment. It selects the Pod by namespace and labels without checking that the Pod’s controller owner UID matches the compatibility Job’s UID.
Version
Confirmed in the source for Keycloak Operator 26.8.2 and upstream main. A normal Auto update was also verified on 26.8.2.
Expected behavior
The Operator should use a Pod’s exit status only after confirming that the expected compatibility Job owns that Pod.
Actual behavior
The Operator checks that the compatibility Job belongs to the Keycloak resource, then reads the exit status from a Pod selected by the Job’s labels without verifying its owner UID. The verified normal update completed successfully. An incorrect update decision was not observed.
How to Reproduce?
Review the Pod lookup used by the Auto update compatibility check in 26.8.2 or upstream main. The source confirms the missing ownership check.
This issue was originally tracked in the private repository. Migrated by @Pepo48.
Activity