Skip to content

CPBR-3924, CPBR-3775, CPBR-3776 | Remove Sigstore Transitives from cp-base-new Image#2128

Merged
Mihir Chandna (mihirchandna) merged 1 commit into
7.6.xfrom
76x-rm-sigstore-deps
Jul 22, 2026
Merged

CPBR-3924, CPBR-3775, CPBR-3776 | Remove Sigstore Transitives from cp-base-new Image#2128
Mihir Chandna (mihirchandna) merged 1 commit into
7.6.xfrom
76x-rm-sigstore-deps

Conversation

@mihirchandna

@mihirchandna Mihir Chandna (mihirchandna) commented Jul 21, 2026

Copy link
Copy Markdown
Member

Change Description

Appsec scanners flagged cryptography 46.0.7 and urllib3 2.6.3 in cp-base-new image. Neither package is a declared dependency of this repo or of confluent-docker-utils.

Root cause: We install sigstore under Python 3.9 to verify the Python 3.14 source tarball, then run pip uninstall -y sigstore and yum remove -y python39 python39-pip but this does not cascade-remove transitives, and yum remove only 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.path never touches these directories, so the files are unused. This PR removes this unnecessary dependencies. To be pint merged upto 7.9.x

Changes Made

  • base/Dockerfile.ubi8: Added remove py3.9 packages command after the sigstore uninstall step

Testing Done

Succesful Image Build: https://semaphore.ci.confluent.io/workflows/8adf793f-eeb2-4ed2-bd84-568d739d91e7?pipeline_id=fcebe9a9-b7d9-4adc-b4a7-7f613de489c0

Ref: https://confluentinc.atlassian.net/browse/CPBR-3924, https://confluentinc.atlassian.net/browse/CPBR-3775, https://confluentinc.atlassian.net/browse/CPBR-3776

@mihirchandna
Mihir Chandna (mihirchandna) marked this pull request as ready for review July 21, 2026 04:44
@mihirchandna
Mihir Chandna (mihirchandna) requested a review from a team as a code owner July 21, 2026 04:44
@mihirchandna
Mihir Chandna (mihirchandna) merged commit f17398f into 7.6.x Jul 22, 2026
3 checks passed
@mihirchandna
Mihir Chandna (mihirchandna) deleted the 76x-rm-sigstore-deps branch July 22, 2026 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants