forked from cloudbuilders/nova
-
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.
Make role-checking rules in policy.py unique - is_admin is equivalent…
… to having all other roles. Change-Id: If16a7a6aba228e0141562b805528a83d816fa725
- Loading branch information
1 parent
f9a1280
commit d3eb991
Showing
3 changed files
with
15 additions
and
8 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 |
---|---|---|
@@ -1,11 +1,6 @@ | ||
{ | ||
"compute:get_volume": [["role:compute_admin"], ["tenant_id:%(tenant_id)s", "role:compute_sysadmin"]], | ||
"compute:get_instance": [["role:compute_admin"], ["tenant_id:%(tenant_id)s", "role:compute_sysadmin"]], | ||
"example:get_http": [["http:http://www.example.com"]], | ||
"example:my_file": [["role:compute_admin"], ["tenant_id:%(tenant_id)s"]], | ||
"true" : [], | ||
"example:allowed" : [], | ||
"example:denied" : [["false:false"]], | ||
"example:early_and_fail" : [["false:false", "rule:true"]], | ||
"example:early_or_success" : [["rule:true"], ["false:false"]] | ||
"compute:get_instance": [["role:compute_admin"], ["project_id:%(project_id)s", "role:sysadmin"]], | ||
"volume:attach_volume": [["role:compute_admin"], ["project_id:%(project_id)s", "role:sysadmin"]], | ||
"volume:create_volume": [["role:compute_admin"], ["project_id:%(project_id)s", "role:sysadmin"]] | ||
} |
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,7 @@ | ||
roles: | ||
- 'netadmin' | ||
- 'sysadmin' | ||
- 'admin' | ||
- 'member' | ||
- 'keystoneadmin' | ||
- 'keystoneserviceadmin' |
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