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

Adjust distributuon policy. #321

Merged
merged 1 commit into from Jun 28, 2021
Merged

Adjust distributuon policy. #321

merged 1 commit into from Jun 28, 2021

Conversation

ipanova
Copy link
Member

@ipanova ipanova commented May 20, 2021

[noisuse]

@ipanova ipanova marked this pull request as draft May 20, 2021 14:24
"condition": "has_namespace_perms:container.add_containerdistribution",
},
{
"action": ["create"],
Copy link
Member Author

Choose a reason for hiding this comment

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

allows to create distribution and namespace whenever username matches

"condition": "has_namespace_model_perms",
},
{
"action": ["create"],
Copy link
Member Author

Choose a reason for hiding this comment

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

condition to match when namespace exists

@@ -995,7 +995,19 @@ class ContainerDistributionViewSet(DistributionViewSet):
"action": ["create"],
"principal": "authenticated",
"effect": "allow",
"condition": "has_model_perms:container.add_containerdistribution",
"condition": "has_namespace_model_perms",
Copy link
Member Author

@ipanova ipanova May 20, 2021

Choose a reason for hiding this comment

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

condition to match when namespace does not exist and does not match the login

@pulpbot
Copy link
Member

pulpbot commented May 20, 2021

WARNING!!! This PR is not attached to an issue. In most cases this is not advisable. Please see our PR docs for more information about how to attach this PR to an issue.

Copy link
Member

@mdellweg mdellweg left a comment

Choose a reason for hiding this comment

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

LGTM.

@ipanova ipanova force-pushed the wrong-policy branch 3 times, most recently from 04e36df to 5f3d230 Compare June 8, 2021 12:01
@ipanova ipanova force-pushed the wrong-policy branch 2 times, most recently from b3d4fab to 1ac4911 Compare June 15, 2021 15:40
@ipanova
Copy link
Member Author

ipanova commented Jun 24, 2021

I don't think these changes require a migration, so marking as ready for re-review.

@ipanova ipanova marked this pull request as ready for review June 24, 2021 17:33
pulp_container/app/access_policy.py Outdated Show resolved Hide resolved
@ipanova ipanova merged commit 2e58141 into pulp:master Jun 28, 2021
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.

None yet

4 participants