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

Extension for a new privilege escalation credential field for targets in GMP (backport #1535) #1542

Merged
merged 12 commits into from
Jun 2, 2021

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Jun 1, 2021

This is an automatic backport of pull request #1535 done by Mergify.
Cherry-pick of 605b24c has failed:

On branch mergify/bp/gvmd-21.04/pr-1535
Your branch is ahead of 'origin/gvmd-21.04' by 3 commits.
  (use "git push" to publish your local commits)

You are currently cherry-picking commit 605b24c58.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   CHANGELOG.md

no changes added to commit (use "git add" and/or "git commit -a")

To fix up this pull request, you can check it out locally. See documentation: https://help.github.com/articles/checking-out-pull-requests-locally/


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.io/

jhelmold and others added 11 commits June 1, 2021 13:21
for the creation and modification of targets.

In file gmp.c:
  Extended the structs create_target_data_t and
  modify_target_data_t and the enum client_state_t. Adjusted the
  functions gmp_xml_handle_start_element and
  gmp_xml_handle_end_element. Adjusted the function call of
  modify_target and create_target in gmp_xml_handle_end_element.

In file manage_sql.c:
  Extended the functions create_target and modify_target with the
  new field ssh_elevate_credential and added the required
  functionality.

(cherry picked from commit 049b4de)
Added documentation of the parameter ssh_elevate_credential at the
call of create_target.
Added documentation of the parameter ssh_elevate_credential_id at
the call of modify_target.

(cherry picked from commit a40fa21)
in file gmp.c:
  Added the necessary data structures and code to get the new
  credential to the function handle_get_targets().

in manage_sql.c:
  Extended the TARGET_ITERATOR_COLUMNS and
  TARGET_ITERATOR_FILTER_COLUMNS for the new credential.
  Added the functions target_iterator_ssh_elevate_credential(),
  target_iterator_ssh_elevate_trash() and
  target_ssh_elevate_credential().

(cherry picked from commit 133eecd)
…tial

(cherry picked from commit 605b24c)

# Conflicts:
#	CHANGELOG.md
in manage_sql.c:
  Added a check, if there is a ssh_credential when a
  ssh_elevate_credential is given, in the functions
  create_target() und modify_target(). If there is
  no ssh_credential an error code is returned.

in gmp.c:
  Added the according error messages to the error messages
  sections behind the call of create_target() and
  modify_target().

(cherry picked from commit 371ed32)
in manage_sql.c:
  Adjusted and added the documentation of the return
  values concerned by the new SSH Elevate Credential in
  the Doxygen-comments of the functions create_target()
  and modify_target().

(cherry picked from commit dca05f3)
@mergify mergify bot requested a review from a team as a code owner June 1, 2021 13:21
@mergify mergify bot added the conflicts This backport pull request has merge conflicts that need to be resolved label Jun 1, 2021
@jhelmold jhelmold added conflicts-resolved This backport pull request had merge conflicts that have been resolved and removed conflicts This backport pull request has merge conflicts that need to be resolved labels Jun 2, 2021
@timopollmeier timopollmeier merged commit 3013b5c into gvmd-21.04 Jun 2, 2021
@timopollmeier timopollmeier deleted the mergify/bp/gvmd-21.04/pr-1535 branch June 2, 2021 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conflicts-resolved This backport pull request had merge conflicts that have been resolved
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants