Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fetching digest from image field when using cri-o (PROJQUAY-6512) #122

Merged
merged 4 commits into from
Feb 7, 2024

Conversation

bcaton85
Copy link
Contributor

As of OCP 4.15 the cri-o runtime now replaces the pod.status.imageID field with an internal cri-o ID instead of the resolved digest. This prevents CSO retrieving scan results since it's unable to fetch a digest for the resolved image. This change checks for a cri-o image ID and in which case will use the pod.status.image field. This allows images referenced by digest to be scanned. Images referenced by tag will not be able to be scanned.

arborite-rh
arborite-rh previously approved these changes Feb 6, 2024
Copy link
Contributor

@arborite-rh arborite-rh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! 1 nit :)

image/image_test.go Outdated Show resolved Hide resolved
dmage
dmage previously approved these changes Feb 7, 2024
@bcaton85 bcaton85 dismissed stale reviews from dmage and arborite-rh via a1f6069 February 7, 2024 14:21
@bcaton85 bcaton85 merged commit 1b15021 into quay:master Feb 7, 2024
3 checks passed
@bcaton85
Copy link
Contributor Author

bcaton85 commented Feb 7, 2024

/cherry-pick redhat-3.10

@openshift-cherrypick-robot

@bcaton85: new pull request created: #123

In response to this:

/cherry-pick redhat-3.10

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

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.

4 participants