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

Do not skip scan_config if preference was not found #1005

Merged
merged 5 commits into from
Jul 30, 2020

Conversation

Emme1990
Copy link
Contributor

@Emme1990 Emme1990 commented Mar 11, 2020

Config preferences are always included when syncing configs with the feed, even if they do not exist in the NVT preferences.

For consistency the same behaviour is applied when uploading configs.

The motivation is that feed defined configs should be available as soon as possible, even if the associated NVT info has not been synced yet.

Checklist:

Copy link
Contributor

@mattmundell mattmundell left a comment

Choose a reason for hiding this comment

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

I'm worried that we will have incomplete configs if we allow the configs to be synced when the preference does not exist. This could occur when the config sync happens before the NVTs are fully synced. Safer to wait for the preference to be available, I think.

@mattmundell mattmundell changed the base branch from master to gvmd-20.08 July 29, 2020 10:50
@mattmundell mattmundell marked this pull request as draft July 29, 2020 13:35
@mattmundell mattmundell requested review from mattmundell and removed request for mattmundell and timopollmeier July 29, 2020 13:36
mattmundell
mattmundell previously approved these changes Jul 29, 2020
This ensures that the config preference is created even when the NVT or NVT
preference has not arrived in the feed yet.  It is required because syncing
of configs no longer requires the NVT preferences to all be present (in
order to speed up availability of feed defined configs during initial sync).
@mattmundell mattmundell marked this pull request as ready for review July 29, 2020 17:17
Copy link
Member

@timopollmeier timopollmeier left a comment

Choose a reason for hiding this comment

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

Going by our internal discussions the new approach is handling the unknown preferences better when sending them to the scanner instead of totally ignoring them when importing the configs, so these changes should be fine now.

@timopollmeier timopollmeier merged commit c341a8f into greenbone:gvmd-20.08 Jul 30, 2020
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