forked from ansible/galaxy_ng
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Revert RBAC Roles (ansible#1205)" (ansible#1212)
This reverts commit 67dbd31. No-Issue
- Loading branch information
1 parent
ce49459
commit 3e42e26
Showing
27 changed files
with
296 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Create galaxy_ng specific Roles |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Removing django-guardian and migrating to RBAC Roles |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
from .standalone import STANDALONE_STATEMENTS | ||
from .insights import INSIGHTS_STATEMENTS | ||
from .pulp_container import PULP_CONTAINER_VIEWSETS | ||
from .roles import VIEWSETS | ||
|
||
__all__ = ( | ||
STANDALONE_STATEMENTS, | ||
INSIGHTS_STATEMENTS, | ||
PULP_CONTAINER_VIEWSETS | ||
PULP_CONTAINER_VIEWSETS, | ||
VIEWSETS | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
VIEWSETS = { | ||
"CollectionViewSet": { | ||
"LOCKED_ROLES": { | ||
"galaxy.collection_admin": [ | ||
"galaxy.change_namespace", | ||
"galaxy.delete_namespace", | ||
"galaxy.view_namespace", | ||
"galaxy.upload_to_namespace", | ||
"ansible.delete_collection", | ||
], | ||
} | ||
}, | ||
"ContainerRepositoryViewSet": { | ||
"LOCKED_ROLES": { | ||
"galaxy.execution_environment_admin": [ | ||
"container.delete_containerrepository", | ||
"container.namespace_change_containerdistribution", | ||
"container.namespace_modify_content_containerpushrepository", | ||
"container.namespace_push_containerdistribution", | ||
"container.add_containernamespace", | ||
"container.change_containernamespace", | ||
], | ||
} | ||
}, | ||
"NamespaceViewSet": { | ||
"LOCKED_ROLES": { | ||
"galaxy.content_admin": [ | ||
"ansible.modify_ansible_repo_content", | ||
], | ||
"galaxy.namespace_owner": [ | ||
"galaxy.add_namespace", | ||
"galaxy.change_namespace", | ||
"galaxy.delete_namespace", | ||
"galaxy.view_namespace", | ||
"galaxy.upload_to_namespace", | ||
"ansible.delete_collection", | ||
], | ||
"galaxy.publisher": [ | ||
"galaxy.upload_to_namespace", | ||
"ansible.delete_collection", | ||
], | ||
"galaxy.group_admin": [ | ||
"galaxy.view_group", | ||
"galaxy.delete_group", | ||
"galaxy.add_group", | ||
"galaxy.change_group", | ||
], | ||
"galaxy.user_admin": [ | ||
"galaxy.view_user", | ||
"galaxy.delete_user", | ||
"galaxy.add_user", | ||
"galaxy.change_user", | ||
], | ||
}, | ||
}, | ||
"SyncListViewSet": { | ||
"LOCKED_ROLES": { | ||
"galaxy.synclist_owner": [ | ||
"galaxy.add_synclist", | ||
"galaxy.change_synclist", | ||
"galaxy.delete_synclist", | ||
"galaxy.view_synclist", | ||
"ansible.change_collectionremote", | ||
], | ||
} | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.