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

Fix: Avoid DB check inserts in cleanup-sequences (backport #2328) #2330

Closed
wants to merge 3 commits into from

Commits on Nov 29, 2024

  1. Fix: Avoid DB check inserts in cleanup-sequences

    When running gvmd with the --optimize=cleanup-sequences option, the
    database checks during initialization will avoid most inserts.
    Setting database_version and max_hosts in the meta table now uses
    INSERT ... ON CONFLICT instead of deleting the previous entry.
    
    Skipping the inserts prevents the cleanup failing if one of the
    sequence has already run out of ids.
    The change to the meta table update reduces the risk of the meta table
    id sequence running out.
    
    (cherry picked from commit 705c6c2)
    timopollmeier authored and mergify[bot] committed Nov 29, 2024
    Configuration menu
    Copy the full SHA
    be16410 View commit details
    Browse the repository at this point in the history
  2. Add: New Kerberos credential type

    The new type "krb5" is added to the create_credential, modify_credential
    and get_credentials commands.
    
    This will later be usable in scan targets for Kerberos 5 authentication.
    
    (cherry picked from commit 5bcc39e)
    timopollmeier authored and mergify[bot] committed Nov 29, 2024
    Configuration menu
    Copy the full SHA
    f036edc View commit details
    Browse the repository at this point in the history
  3. Fix prototype and simplify check_db_... functions

    The new parameter has been added to the check_db_port_lists prototype
    and various check_db_... functions that would only return if
    the avoid_db_check_inserts parameter is true have the parameter removed
    and are instead wrapped in if conditions.
    
    (cherry picked from commit 5c0d5fa)
    timopollmeier authored and mergify[bot] committed Nov 29, 2024
    Configuration menu
    Copy the full SHA
    4805971 View commit details
    Browse the repository at this point in the history