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

Rename/unify CVE vulnfeed project #1936

Merged
merged 8 commits into from
Jan 30, 2024

Conversation

another-rex
Copy link
Contributor

Rename all the CVE vulnfeed project names into one name: cpe-repo-gen.

Currently the NVD cve vulnfeed project is two binaries with 5 different names (which was quite confusing to figure out when debugging):

  • cperepos (dir path: vulnfeeds/cmd/cperepos/)
  • cpe-repo-gen (docker image name)
  • gen-cperepos-map (yaml file name and kubernetes worker and container name)

and the NVD to OSV conversion exe has:

  • cpp (dir path: vulnfeeds/cpp)
  • nvd-cve-osv (image/kubernetes worker name)

This PR unifies then down to two names, cpe-repo-gen and nvd-cve-osv. I also moved nvd-cve-osv under the cmd/ directory since it's a binary (from vulnfeeds/cpp to vulnfeeds/cmd/nvd-cve-osv)

I'm not sure if changing the worker name will require some manual work when deploying?

@michaelkedar
Copy link
Member

I'm not sure if changing the worker name will require some manual work when deploying?

IIRC, Cloud Deploy will make a new workload with the new name, but won't delete the old one with the original name, so that'll have to be manually deleted.

Copy link
Contributor

@andrewpollock andrewpollock left a comment

Choose a reason for hiding this comment

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

Thank you for doing this, and sorry for my sloppiness causing unnecessary cognitive load for debugging.

vulnfeeds/cmd/cpe-repo-gen/cpe-repo-gen_map.sh Outdated Show resolved Hide resolved
Copy link
Contributor

@andrewpollock andrewpollock left a comment

Choose a reason for hiding this comment

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

LGTM, let's address the little whoopsie for 2024 while the patient is on the table...

vulnfeeds/cmd/nvd-cve-osv/run_cve_to_osv_generation.sh Outdated Show resolved Hide resolved
Co-authored-by: Andrew Pollock <andrewpollock@users.noreply.github.com>
@another-rex another-rex enabled auto-merge (squash) January 30, 2024 03:07
@another-rex another-rex merged commit 0dd1823 into google:master Jan 30, 2024
11 checks passed
andrewpollock added a commit to andrewpollock/osv.dev that referenced this pull request Jan 30, 2024
Improve on the quick fix shoe-horned into PR google#1936 by restoring external
configurability of the oldest desired year and biasing for the current
and more recent years first (because Andrew hates delayed gratification)
andrewpollock added a commit that referenced this pull request Jan 30, 2024
Improve on the quick fix shoe-horned into PR #1936 by restoring external
configurability of the oldest desired year and biasing for the current
and more recent years first (because Andrew hates delayed gratification)
andrewpollock added a commit to andrewpollock/osv.dev that referenced this pull request Oct 17, 2024
This commit harmonizes the Cloud Logging log name with the previous
naming tidy up done in google#1936
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.

3 participants