CPBR-3924, CPBR-3775, CPBR-3776 | Remove Sigstore Transitives from cp-base-new Image#2129
Merged
Merged
Conversation
Mihir Chandna (mihirchandna)
marked this pull request as ready for review
July 21, 2026 04:44
Nitin Singh (nitsingh-ui)
approved these changes
Jul 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change Description
Appsec scanners flagged
cryptography 46.0.7andurllib3 2.6.3incp-base-newimage. Neither package is a declared dependency of this repo or of confluent-docker-utils.Root cause: We install
sigstoreunder Python 3.9 to verify the Python 3.14 source tarball, then runpip uninstall -y sigstoreandyum remove -y python39 python39-pipbut this does not cascade-remove transitives, andyum removeonly removes yum-tracked files - pip-installed content under/usr/local/lib{,64}/python3.9/site-packages/(cryptography, urllib3, pyOpenSSL, pydantic, requests, etc.) persists in the final image as orphans.Runtime uses Python 3.14, whose
sys.pathnever touches these directories, so the files are unused. This PR removes this unnecessary dependencies.Changes Made
base/Dockerfile.ubi8: Added remove py3.9 packages command after the sigstore uninstall stepTesting Done
Succesful Image Build: https://semaphore.ci.confluent.io/workflows/ebd6a5d7-18de-4b25-86b6-1a7f7e56c65f?pipeline_id=0ed328b5-1005-434a-943f-2f6fc75f995f