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

Deduplicate stored CRDs #15

Open
fabriziosestito opened this issue Oct 30, 2024 · 0 comments
Open

Deduplicate stored CRDs #15

fabriziosestito opened this issue Oct 30, 2024 · 0 comments

Comments

@fabriziosestito
Copy link
Collaborator

The Image, SBOM, and VulnerabilityReport resources can be deduplicated in storage since they all reference the same image by its sha256 hash.
The sha256 will serve as the primary key for each stored object.
A separate table will also store the name, namespace, and the other resource's metadata—such as registry, repository, image name, and tag labels —linked to the sha256 hash with a foreign key.
When querying by name and namespace, we can retrieve the deduplicated object using the sha256 and substitute the metadata with that of the selected resource.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant