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

fix(BA-478): Accept container images that has the 'null' labels field in their manifests #3411

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

achimnol
Copy link
Member

@achimnol achimnol commented Jan 9, 2025

resolves #3409 (BA-478)

This PR lets the container registry implementations coalesce null values in the manifest "labels" field to an empty dict to prevent breakage.

It also adds explicit typing.override decorators to mark overriden methods in the HarborRegistry_v2 class. Though, we need a follow-up refactoring to make the code structure to tell the reader that: 'Harbor and Docker registry share the image manifest query and pull APIs while Harbor has its specific repository listing API.'

This PR is a follow-up fix to #2582.

Checklist: (if applicable)

  • Milestone metadata specifying the target backport version
  • Mention to the original issue

@achimnol achimnol added this to the 24.09 milestone Jan 9, 2025
@achimnol achimnol added the comp:manager Related to Manager component label Jan 9, 2025
@achimnol achimnol self-assigned this Jan 9, 2025
@github-actions github-actions bot added the size:L 100~500 LoC label Jan 9, 2025
@achimnol achimnol force-pushed the fix/scanning-vanilla-local-images branch from e339b75 to 733135e Compare January 9, 2025 07:49
@achimnol achimnol force-pushed the fix/scanning-vanilla-local-images branch from 733135e to b9644cc Compare January 9, 2025 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:manager Related to Manager component size:L 100~500 LoC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix scanning container images with no labels at all
1 participant