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 --optimize add-/cleanup-feed-permissions #1612

Merged
merged 6 commits into from
Jul 28, 2021

Conversation

timopollmeier
Copy link
Member

@timopollmeier timopollmeier commented Jul 6, 2021

What:
The add-feed-permissions option adds read permissions on the feed data
objects for all roles defined in the "Feed Import Roles" setting if they
do not exist.
The cleanup-feed-permissions removes all role permissions on the feed
data objects that do not match ones in the setting.

Why:
This addresses AP-1489 and AP-1387.
To have a simple way to ensure the permissions are set for the roles defined in the setting even if the feed data objects are already imported.

How did you test it:
By modifying the "Feed Import Roles" to add or remove roles and then running the new options.

Checklist:

The add-feed-permissions option adds read permissions on the feed data
objects for all roles defined in the "Feed Import Roles" setting if they
do not exist.
The cleanup-feed-permissions removes all role permissions on the feed
data objects that do not match ones in the setting.
@timopollmeier timopollmeier added backport-to-oldstable This pull request will be backported to the oldstable branch backport-to-stable This pull request will be backported to the stable branch labels Jul 6, 2021
@timopollmeier timopollmeier marked this pull request as ready for review July 6, 2021 12:28
@timopollmeier timopollmeier requested a review from a team as a code owner July 6, 2021 12:28
If there are error responses from the create_permission_internal calls,
they will now be handled by logging appropriate warning messages.
@jhelmold jhelmold self-requested a review July 28, 2021 09:57
@jhelmold jhelmold self-assigned this Jul 28, 2021
@jhelmold jhelmold merged commit 69ff0c3 into greenbone:master Jul 28, 2021
timopollmeier added a commit that referenced this pull request Jul 28, 2021
Add --optimize add-/cleanup-feed-permissions (backport #1612)
timopollmeier added a commit that referenced this pull request Jul 28, 2021
Add --optimize add-/cleanup-feed-permissions (backport #1612)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-to-oldstable This pull request will be backported to the oldstable branch backport-to-stable This pull request will be backported to the stable branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants