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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copa will need to write metadata information about which packages got patched. #592

Open
Tracked by #522
ashnamehrotra opened this issue May 2, 2024 · 1 comment

Comments

@ashnamehrotra
Copy link
Contributor

No description provided.

@ashnamehrotra
Copy link
Contributor Author

Investigated this with update all and scanner patches:

  • For debian non-distroless images, the status file is properly updated with new versions of packages when comparing locally and using crane.

  • For debian distroless, the package files in the status.d folder are properly upgraded with new versions when checking locally. When inspecting through crane however, the changes in the same image are not reflected. This could be an issue with crane?

  • For rpm non-distroless, I could not find a file that would need to be updated to reflect package version changes.

  • For rpm distroless, the container-manifest1/container-manifest2 files are not upgraded with new versions when inspecting with crane. Unable to run the images locally to test.

  • For apk non-distroless, new version changes are not reflected when inspecting with crane. Unable to run the images locally to test. I believe the /lib/apk/db/installed file needs to be updated.

This metadata information was consistent in update all and scanner patches. There should probably be a follow up fix to this since this is not specific to the update all feature, and we need to add code to rpm and apk that updates the metadata.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 馃啎 New
Development

No branches or pull requests

1 participant