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

Ensure community users can delete their collections #4305

Merged

Conversation

bmclaughlin
Copy link
Contributor

Community users do not have the model permission ansible.delete_collection, instead we rely on community users having object permissions on their namespace to determine if they have permissions to delete collections.

Issue: AAH-2632

Links

PR (merged) implementing this same change in the api:
ansible/galaxy_ng#1900

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
Issue: AAH-2632
@bmclaughlin bmclaughlin requested a review from himdel September 27, 2023 18:43
@github-actions github-actions bot added backport-4.7 This PR should be backported to stable-4.7 (2.4) backport-4.8 This PR should be backported to stable-4.8 (2.4) labels Sep 27, 2023
@bmclaughlin bmclaughlin removed backport-4.7 This PR should be backported to stable-4.7 (2.4) backport-4.8 This PR should be backported to stable-4.8 (2.4) labels Sep 27, 2023

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
Issue: AAH-2632

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
Issue: AAH-2632
Copy link
Collaborator

@himdel himdel left a comment

Choose a reason for hiding this comment

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

LGTM overall 👍

(though I haven't tested this yet)

Maybe we don't need the ai_deny_index (=is community) logic, because this should work like this (hasPermission(...) || hasObjectPermission(......)) in all the modes? Unless I'm missing something community specific?
(Either way LGTM, we can add this for standalone in a second PR when there's less things to worry about :))

Except some of the test failures still look real...

EDIT:
Tested, seems to work :)

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
Issue: AAH-2632
@himdel himdel added the community comunity mode feature label Sep 28, 2023
@bmclaughlin bmclaughlin marked this pull request as ready for review September 28, 2023 16:34
@bmclaughlin bmclaughlin merged commit 4e96cca into ansible:master Sep 28, 2023
@bmclaughlin bmclaughlin deleted the aah-2632-community-collection-delete branch September 28, 2023 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community comunity mode feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants