nova/nova/policies
Ghanshyam Mann ab084d4d1d Modify remaining APIs as per RBAC new guidelines
As per the RBAC new direction, we will allow
project resources operation to be performed by
the project scoped token only and system user will
be allowed to perform system level operation only
not project resources specific.

Details about new direction can be found in community-wide
goal
- https://governance.openstack.org/tc/goals/selected/consistent-and-secure-rbac.html

This commit modify remaining APIs as per the new guidelines.

Also, allow all project admin to list the other project limits. This is
what we allowed in legacy policy and until we have domain admin or other
way to list other project resources/info, we will keep that behaviour.

Also modifying and adding tests for four cases:
1. enforce_scope=False + legacy rule (current default policies)
2. enforce_scope=False + No legacy rule
3. enforce_scope=True + legacy rule
4. enforce_scope=True + no legacy rule (end goal of new RBAC)

Partial implement blueprint policy-defaults-refresh-2

Change-Id: I006d47aa2f4678a06c78057bcf407302abbe4907
2022-02-24 10:24:55 -06:00
..
__init__.py api: Remove 'os-agents' API 2020-09-11 14:10:32 +01:00
admin_actions.py Server actions APIs scoped to project scope 2022-02-20 01:08:11 +00:00
admin_password.py Server actions APIs scoped to project scope 2022-02-20 01:08:11 +00:00
aggregates.py Convert SYSTEM_ADMIN|READER to Admin and system scope 2022-02-17 05:20:07 +00:00
assisted_volume_snapshots.py Modify remaining APIs as per RBAC new guidelines 2022-02-24 10:24:55 -06:00
attach_interfaces.py Make more project level APIs scoped to project only 2022-02-19 18:19:34 -06:00
availability_zone.py Convert SYSTEM_ADMIN|READER to Admin and system scope 2022-02-17 05:20:07 +00:00
baremetal_nodes.py Convert SYSTEM_ADMIN|READER to Admin and system scope 2022-02-17 05:20:07 +00:00
base.py Revert project-specific APIs for servers 2021-12-01 08:54:34 -08:00
console_auth_tokens.py Modify remaining APIs as per RBAC new guidelines 2022-02-24 10:24:55 -06:00
console_output.py Modify remaining APIs as per RBAC new guidelines 2022-02-24 10:24:55 -06:00
create_backup.py Modify remaining APIs as per RBAC new guidelines 2022-02-24 10:24:55 -06:00
deferred_delete.py Modify remaining APIs as per RBAC new guidelines 2022-02-24 10:24:55 -06:00
evacuate.py Server actions APIs scoped to project scope 2022-02-20 01:08:11 +00:00
extended_server_attributes.py Revert project-specific APIs for servers 2021-12-01 08:54:34 -08:00
extensions.py Add scope and new default roles in extensions policies 2020-08-17 09:40:02 -05:00
flavor_access.py Modify remaining APIs as per RBAC new guidelines 2022-02-24 10:24:55 -06:00
flavor_extra_specs.py Revert project-specific APIs for servers 2021-12-01 08:54:34 -08:00
flavor_manage.py Modify remaining APIs as per RBAC new guidelines 2022-02-24 10:24:55 -06:00
floating_ip_pools.py Correct the check_str and pass actual target in FIP pools policy 2020-07-20 16:53:02 -05:00
floating_ips.py Make more project level APIs scoped to project only 2022-02-19 18:19:34 -06:00
hosts.py Convert SYSTEM_ADMIN|READER to Admin and system scope 2022-02-17 05:20:07 +00:00
hypervisors.py Convert SYSTEM_ADMIN|READER to Admin and system scope 2022-02-17 05:20:07 +00:00
instance_actions.py Make more project level APIs scoped to project only 2022-02-19 18:19:34 -06:00
instance_usage_audit_log.py Modify remaining APIs as per RBAC new guidelines 2022-02-24 10:24:55 -06:00
ips.py Make more project level APIs scoped to project only 2022-02-19 18:19:34 -06:00
keypairs.py Modify remaining APIs as per RBAC new guidelines 2022-02-24 10:24:55 -06:00
limits.py Modify remaining APIs as per RBAC new guidelines 2022-02-24 10:24:55 -06:00
lock_server.py Server actions APIs scoped to project scope 2022-02-20 01:08:11 +00:00
migrate_server.py Modify remaining APIs as per RBAC new guidelines 2022-02-24 10:24:55 -06:00
migrations.py Modify remaining APIs as per RBAC new guidelines 2022-02-24 10:24:55 -06:00
multinic.py Server actions APIs scoped to project scope 2022-02-20 01:08:11 +00:00
networks.py Make more project level APIs scoped to project only 2022-02-19 18:19:34 -06:00
pause_server.py Server actions APIs scoped to project scope 2022-02-20 01:08:11 +00:00
quota_class_sets.py Convert SYSTEM_ADMIN|READER to Admin and system scope 2022-02-17 05:20:07 +00:00
quota_sets.py Make more project level APIs scoped to project only 2022-02-19 18:19:34 -06:00
remote_consoles.py Server actions APIs scoped to project scope 2022-02-20 01:08:11 +00:00
rescue.py Server actions APIs scoped to project scope 2022-02-20 01:08:11 +00:00
security_groups.py Make more project level APIs scoped to project only 2022-02-19 18:19:34 -06:00
server_diagnostics.py Modify remaining APIs as per RBAC new guidelines 2022-02-24 10:24:55 -06:00
server_external_events.py Modify remaining APIs as per RBAC new guidelines 2022-02-24 10:24:55 -06:00
server_groups.py Make more project level APIs scoped to project only 2022-02-19 18:19:34 -06:00
server_metadata.py Make more project level APIs scoped to project only 2022-02-19 18:19:34 -06:00
server_password.py Make more project level APIs scoped to project only 2022-02-19 18:19:34 -06:00
server_tags.py Make more project level APIs scoped to project only 2022-02-19 18:19:34 -06:00
server_topology.py Make more project level APIs scoped to project only 2022-02-19 18:19:34 -06:00
servers.py Revert project-specific APIs for servers 2021-12-01 08:54:34 -08:00
servers_migrations.py Modify remaining APIs as per RBAC new guidelines 2022-02-24 10:24:55 -06:00
services.py Convert SYSTEM_ADMIN|READER to Admin and system scope 2022-02-17 05:20:07 +00:00
shelve.py Server actions APIs scoped to project scope 2022-02-20 01:08:11 +00:00
simple_tenant_usage.py Make more project level APIs scoped to project only 2022-02-19 18:19:34 -06:00
suspend_server.py Server actions APIs scoped to project scope 2022-02-20 01:08:11 +00:00
tenant_networks.py Make more project level APIs scoped to project only 2022-02-19 18:19:34 -06:00
volumes.py Make more project level APIs scoped to project only 2022-02-19 18:19:34 -06:00
volumes_attachments.py Make more project level APIs scoped to project only 2022-02-19 18:19:34 -06:00