335c00ac18
This patch adds policies and enforcement to the Octavia v2 API for quotas. Change-Id: I5f2fa38973fce595ea3ec03cdff924336e0e71c8 Partial-Bug: #1690481
12 lines
448 B
JSON
12 lines
448 B
JSON
{
|
|
"context_is_admin": "role:admin or role:load-balancer_admin",
|
|
"admin_or_owner": "is_admin:True or project_id:%(project_id)s",
|
|
|
|
"load-balancer:read": "rule:admin_or_owner",
|
|
"load-balancer:read-global": "is_admin:True",
|
|
"load-balancer:write": "rule:admin_or_owner",
|
|
"load-balancer:read-quota": "rule:admin_or_owner",
|
|
"load-balancer:read-quota-global": "is_admin:True",
|
|
"load-balancer:write-quota": "is_admin:True"
|
|
}
|