Skip to content

Update pyasn1 to newer version#717

Open
danpawlik wants to merge 1 commit into
infrawatch:masterfrom
danpawlik:bump-pyasn
Open

Update pyasn1 to newer version#717
danpawlik wants to merge 1 commit into
infrawatch:masterfrom
danpawlik:bump-pyasn

Conversation

@danpawlik

@danpawlik danpawlik commented Jul 16, 2026

Copy link
Copy Markdown
Member

The pyasn1 which is installed in base container image has installed vulnerable version of pyasn1 library.
Update the library to latest version [1]

Related-To: OSPRH-32895

[1] https://github.com/pyasn1/pyasn1/releases/tag/v0.6.4

@lhh

lhh commented Jul 16, 2026

Copy link
Copy Markdown

This may not work outside of upstream builds or in places where building from source is a requirement. Also, would it make sense to nuke the old one too?

Something like:
RUN rpm -e --nodeps python3-pyasn1
RUN pip3 -vvv install --compile --no-binary :all: pyasn1>=0.6.4

The pyasn1 which is installed in base container image has installed
vulnerable version of pyasn1 library.
Update the library to latest version [1]

[1] https://github.com/pyasn1/pyasn1/releases/tag/v0.6.4

Signed-off-by: Daniel Pawlik <dpawlik@redhat.com>
@centosinfra-prod-github-app

Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdoproject.org/buildset/696420d204d140eaaddb244e451d2d4b

✔️ stf-crc-ocp_418-local_build SUCCESS in 50m 52s
stf-crc-ocp_420-local_build NODE_FAILURE Node(set) request 100-0000148176 failed in 0s
✔️ stf-crc-ocp_418-local_build-index_deploy SUCCESS in 54m 07s
stf-crc-ocp_420-local_build-index_deploy NODE_FAILURE Node(set) request 100-0000148178 failed in 0s
stf-crc-ocp_418-nightly_bundles-index_deploy RETRY_LIMIT in 23m 47s
✔️ stf-crc-ocp_420-nightly_bundles-index_deploy SUCCESS in 42m 30s
✔️ stf-crc-ocp_418-catalog_deploy SUCCESS in 45m 12s
✔️ stf-crc-ocp_420-catalog_deploy SUCCESS in 40m 16s

@danpawlik

Copy link
Copy Markdown
Member Author

recheck

@danpawlik

Copy link
Copy Markdown
Member Author

@lhh is it fine ?

danpawlik added a commit to danpawlik/smart-gateway-operator that referenced this pull request Jul 22, 2026
The pyasn1 which is installed in base container image has installed
vulnerable version of pyasn1 library.
Update the library to latest version [1]

Related-To: OSPRH-32894

Similar approach was done in service-telemetry-operator [2]

[1] https://github.com/pyasn1/pyasn1/releases/tag/v0.6.4
[2] infrawatch/service-telemetry-operator#717

Signed-off-by: Daniel Pawlik <dpawlik@redhat.com>
danpawlik added a commit to danpawlik/smart-gateway-operator that referenced this pull request Jul 22, 2026
The pyasn1 which is installed in base container image has installed
vulnerable version of pyasn1 library.
Update the library to latest version [1]

Related-To: OSPRH-32894

Similar approach was done in service-telemetry-operator [2]

[1] https://github.com/pyasn1/pyasn1/releases/tag/v0.6.4
[2] infrawatch/service-telemetry-operator#717

Signed-off-by: Daniel Pawlik <dpawlik@redhat.com>
@lhh

lhh commented Jul 23, 2026

Copy link
Copy Markdown

It's fine; turns out the source image didn't have it, but this keeps the BOM clear if it ever did have it:
2026-07-20 14:20:01.375524 | controller | error: package python3-pyasn1 is not installed

Same caveats we discussed apply (fine for these upstream builds, not fine in any place things need to be built from source). I'd rather it wasn't needed; hopefully the image you are sourcing here publishes a proper update.

@compi-migui ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants