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: fetch sub-manifests from keppel #275

Merged
merged 3 commits into from
Oct 9, 2024

Conversation

drochow
Copy link
Collaborator

@drochow drochow commented Oct 8, 2024

Description

Keppel does not scan in all cases the top layer of an image. The primary cause of that is multi-arch images. In such cases we need to list all manifests of the manifest and check for vulnerabilities on those.

In perspective, we need to decide if that is as well stored in different versions that are related to each other instead.

What type of PR is this? (check all applicable)

  • 🍕 Feature
  • 🐛 Bug Fix
  • 📝 Documentation Update
  • 🎨 Style
  • 🧑‍💻 Code Refactor
  • 🔥 Performance Improvements
  • ✅ Test
  • 🤖 Build
  • 🔁 CI
  • 📦 Chore (Release)
  • ⏩ Revert

Related Tickets & Documents

#247

Added tests?

  • 👍 yes
  • [] 🙅 no, because they aren't needed
  • 🙋 no, because I need help
  • Separate ticket for tests # (issue/pr)

Added to documentation?

  • 📜 README.md
  • 🤝 Documentation pages updated
  • 🙅 no documentation needed
  • (if applicable) generated OpenAPI docs for CRD changes

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

scanner/keppel/main.go Outdated Show resolved Hide resolved
"repository": repository.Name,
}).WithError(err).Error("Error during ListManifestsOfManifest")
}

componentVersion, err := keppelProcessor.ProcessManifest(manifest, component.Id)
if err != nil {
Copy link
Collaborator

Choose a reason for hiding this comment

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

why not if err != nil || componentVersion == nil ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

@drochow drochow merged commit f04feab into main Oct 9, 2024
7 checks passed
@drochow drochow deleted the drochow/issue-247/missing-keppel-results branch October 9, 2024 07:15
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.

3 participants