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

How does klar work? #156

Open
stacygohyunsi opened this issue Aug 29, 2019 · 1 comment
Open

How does klar work? #156

stacygohyunsi opened this issue Aug 29, 2019 · 1 comment

Comments

@stacygohyunsi
Copy link

Does klar pull and download the image locally before calling an API to clair to scan it?

@adamcohen
Copy link

No, it doesn't pull the image locally, it only pulls the manifest file. It then reads the layer data from the manifest file, loops over each layer in the image, and sends a POST request to the clair API endpoint with a Path component which contains a URL to the layer data in the container registry. Clair then reads the layer data directly from the registry. This means that klar doesn't have to actually push the data to clair, it only passes a references to the data which clair is responsible for pulling.

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

No branches or pull requests

2 participants