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: nasl-cli notus update subcommand #1558

Merged
merged 7 commits into from
Jan 25, 2024
Merged

Add: nasl-cli notus update subcommand #1558

merged 7 commits into from
Jan 25, 2024

Conversation

jjnicola
Copy link
Member

@jjnicola jjnicola commented Jan 17, 2024

What:
Load up Notus Advisories into redis.
It performs the signature check, the hashsum check and the upload.

Signature check is optional. It must be enabled with the command line option but also the environment variable to the gnupg keyring must be set.

Usage:
GPGHOME=/path/to/.gnupg nasl-cli notus update --path <path-to-the-advisories> --signature-check

Jira: SC-997

Why:

How:

Checklist:

  • Tests
  • PR merge commit message adjusted

@jjnicola jjnicola requested a review from a team as a code owner January 17, 2024 13:59
Load up Notus Advisories into redis.
It performs the signature check, the hashsum check and the upload.

Signature check is optional. It must be enabled with the command line option but also the environment variable to the gnupg keyring must be set.

Usage:
`GPGHOME=/path/to/.gnupg nasl-cli notus update --path <path-to-the-advisories> --signature-check`
rust/models/src/advisories.rs Outdated Show resolved Hide resolved
rust/nasl-cli/src/notusupdate/mod.rs Outdated Show resolved Hide resolved
rust/nasl-cli/src/notusupdate/update.rs~ Outdated Show resolved Hide resolved
rust/notus/src/update/#mod.rs# Outdated Show resolved Hide resolved
@jjnicola
Copy link
Member Author

thanks for the review @nichtsfrei

@nichtsfrei
Copy link
Member

I have been thinking about the separation between the 'notus' and 'feed' commands. Although it is technically correct to separate them, I'm questioning whether users actually need this differentiation or if they would rather 'verify' and 'update' them in one command?

@nichtsfrei
Copy link
Member

I have been thinking about the separation between the 'notus' and 'feed' commands. Although it is technically correct to separate them, I'm questioning whether users actually need this differentiation or if they would rather 'verify' and 'update' them in one command?

maybe something like nasl-cli feed update -> notus + nasl, nasl-cli feed --notus update -> only notus and the same for nasl?

@jjnicola jjnicola merged commit d399537 into main Jan 25, 2024
28 of 29 checks passed
@jjnicola jjnicola deleted the advisories-loadup branch January 25, 2024 09:19
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