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

Add basic namespace check on publishing DBs #192

Merged
merged 2 commits into from
Nov 2, 2023
Merged

Conversation

wagoodman
Copy link
Contributor

Partially addresses #178

This is an addition to the validation of the DBs being published to ensure they have the minimum expected namespaces based on the current snapshot of namespaces that vunnel provides.

This is not an ideal implementation, since it hard codes the list of namespaces for each supported schema (4-5, 1-3) and this is already captured for schemas 4-5 with https://github.com/anchore/vunnel/blob/main/tests/quality/config.yaml . The hard part about using this is we need to know the specific vunnel version used to be able to reference the correct yaml file (which, also unfortunately, means this would need to be an online operation). If the vunnel could output at least some of this information that would make a better long term path here.

This PR is not about the long term path, but something we could add today that verifies we're not publishing sub-standard databases.

Signed-off-by: Alex Goodman <[email protected]>
@wagoodman wagoodman requested a review from a team October 23, 2023 19:42
Signed-off-by: Alex Goodman <[email protected]>
@wagoodman wagoodman self-assigned this Oct 23, 2023
@wagoodman wagoodman merged commit 5e8dfa1 into main Nov 2, 2023
14 checks passed
@wagoodman wagoodman deleted the add-namespace-check branch November 2, 2023 12:22
willmurphyscode pushed a commit that referenced this pull request Mar 27, 2024
Bumps [types-requests](https://github.com/python/typeshed) from 2.30.0.0 to 2.31.0.0.
- [Commits](https://github.com/python/typeshed/commits)

---
updated-dependencies:
- dependency-name: types-requests
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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.

2 participants