Skip to content

feat: add renovate logic to create a new package when a new scanner image is published from IB#40

Draft
TheFutonEng wants to merge 1 commit intomainfrom
feat/cve-db-updates
Draft

feat: add renovate logic to create a new package when a new scanner image is published from IB#40
TheFutonEng wants to merge 1 commit intomainfrom
feat/cve-db-updates

Conversation

@TheFutonEng
Copy link
Copy Markdown

Description

TL;DR: We need to consume CVE DB updates more frequently than the Neuvector package is being updated.

The upstream Neuvector scanner image that SUSE publishes is using a "floating tag." No idea if that is the proper description, but in short, the tag of 6 stays the same even if the CVE DB within the image gets bumped.

The repo for the scanner image has a Renovate configuration that watches the hardening_manifest.yaml file in the same repo. Based on this MR to that repo, there is some higher-level Renovate configuration that I don't have access to that bumps the SHA in the hardening_manifest.yaml file to trigger a new container build to the same 6 tag in Iron Bank.

The updated Renovate configuration, along with a yet-to-be-committed update to the various scanner image references to a SHA, should result in a PR to Neuvector UDS package repo when a new scanner image is available in Iron Bank. I think it makes sense that these updates toggle the minor release portion of the version (the # in *.uds.#).

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Other (security config, docs update, etc)

Checklist before merging

Comment thread renovate.json
"matchPackageNames": [
"registry1.dso.mil/ironbank/neuvector/neuvector/scanner"
],
"followTag": "6",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a good example of this working in docs/otherwise? From the Renovate docs it looks like the purpose is slightly different - https://docs.renovatebot.com/configuration-options/#followtag.

Perhaps allowedVersions is a better fit here? https://docs.renovatebot.com/configuration-options/#packagerulesallowedversions

Comment thread renovate.json
Comment on lines +45 to +47
"matchPackageNames": [
"registry1.dso.mil/ironbank/neuvector/neuvector/scanner"
],
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we'd probably want to do this across all 3 flavors.

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