-
Notifications
You must be signed in to change notification settings - Fork 15
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
feature/rbac-roles - add role commands; namespaces.addgroup - use object_roles, not object_permissions #39
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! We'll need to remember that this is a breaking change for when we do our next version bump.
Thanks! This needs to come back with the revert of today's/tomorrow's revert of ansible/galaxy_ng#1057 :) EDIT: that evolved into the |
@jerabekjiri This should be ready to address AAH-1691 & AAH-1692, do we need anything else to test the rbac branch properly? @hendersonreed I've updated this and added some more backward incompatible changes (removes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works great 👍
tested and looks like it covers all we need :)
Backwards in-compatible changes are fine right now I think, particularly because the galaxykit usage on the QE side is still relatively minimal (migrating the IQE test suite to use more galaxykit features is an incremental process). We'll just need to ensure that we bump the version properly when we release. |
@chr-stian The last commits are adding a dependency on ansible again. Given the context of #54, #55 and #39 (comment), I'll ask you to create a separate PR for those changes. I'm restoring this PR to the original state and rebasing on top of current main, my priority here is to have UI tests working so we can merge the branches soon :). |
yes, wait_for_task throws GalaxyError. I could fix it easily by changing it to GalaxyClientError. But I can wait. |
no object_permissions since ansible/galaxy_ng#1057
```diff +galaxykit group role * +galaxykit role * -galaxykit group perm * +galaxykit role perm * ```
(not sure if unused, or if we just need to change it to call roles.set_permissions instead of groups.set_permissions)
@hendersonreed do we have your blessing to merge this one? :) |
I think so! right now no one I know of is using |
(draft until the feature/rbac-roles galaxy_ng & ansible-hub-ui branches get merged in master)
This addresses compatibility with the new (4.6+) rbac roles:
AAH-1691:
galaxykit role list
galaxykit role create <rolename> <description> --permissions <permissions>
galaxykit role delete <rolename>
galaxykit role perm list <rolename>
galaxykit role perm add <rolename> <perm>
galaxykit role perm remove <rolename> <perm>
AAH-1692:
galaxykit group role add <group> <role>
galaxykit group role remove <group> <role>
No-Issue:
make
galaxykit namespace addgroup <namespace> <group>
work again, by sendingobject_roles
instead ofobject_permissions
Removed:
galaxykit group perm list <groupname>
galaxykit group perm add <groupname> <perm>
galaxykit group perm remove <groupname> <perm>
Removed methods:
groups.get_permissions
(replaced byroles.get_permissions
)groups.set_permissions
(replaced byroles.set_permissions
withadd_permissions=[]
)groups.delete_permission
(replaced byroles.set_permissions
withremove_permissions=[]
)client.set_permissions
(not sure if unused, or if we just need to change it to callroles.set_permissions
instead ofgroups.set_permissions
)Also adding vim swapfiles to gitignore,
and adding a
client.patch
method, used by role perm add/remove.