Skip to content

[epic] Add registry+v1 bundle validation #1882

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

Open
perdasilva opened this issue Mar 31, 2025 · 0 comments
Open

[epic] Add registry+v1 bundle validation #1882

perdasilva opened this issue Mar 31, 2025 · 0 comments
Assignees

Comments

@perdasilva
Copy link
Contributor

perdasilva commented Mar 31, 2025

The rukpak/convert package currently assumes that it is always given a correct registry+v1 bundle to operate over. Until now, this has been ok since our use-cases presume that bundles have been validated by catalog curators, and our supported feature set has been relatively narrow (no webhook support, no api-service support, etc.).

Adding webhook support will require us to extract more information from different locations in the CSV, which also often reference other parts of the CSV, or bundle. Being able to assume things like referential integrity, non-duplication of data, etc. will make the webhook support simpler. For instance, conversion webhooks reference CRDs. If we can safely assume that the bundle has been appropriately validated, we don't need to check that the referenced CRD is in the bundle and that the CSV declares it as owned by the bundle.

Therefore, we should add a bundle validation layer with the appropriate checks to give us stronger guarantees of the validity of the bundle. This will be advantageous beyond the conversion/rendering code, i.e.:

  • direct bundle installation
  • avoiding erroneous data from being stamped out on the cluster
@perdasilva perdasilva changed the title Add registry+v1 bundle validation [epic] Add registry+v1 bundle validation Mar 31, 2025
@perdasilva perdasilva self-assigned this Mar 31, 2025
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

1 participant