-
Notifications
You must be signed in to change notification settings - Fork 0
/
policy-neutron-stable-2023.1.yaml
262 lines (262 loc) · 18.3 KB
/
policy-neutron-stable-2023.1.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
"context_is_admin": "role:admin"
"owner": "tenant_id:%(tenant_id)s"
"admin_or_owner": "rule:context_is_admin or rule:owner"
"context_is_advsvc": "role:advsvc"
"admin_or_network_owner": "rule:context_is_admin or tenant_id:%(network:tenant_id)s"
"admin_owner_or_network_owner": "rule:owner or rule:admin_or_network_owner"
"network_owner": "tenant_id:%(network:tenant_id)s"
"admin_only": "rule:context_is_admin"
"regular_user": ""
"shared": "field:networks:shared=True"
"default": "rule:admin_or_owner"
"admin_or_ext_parent_owner": "rule:context_is_admin or tenant_id:%(ext_parent:tenant_id)s"
"ext_parent_owner": "tenant_id:%(ext_parent:tenant_id)s"
"sg_owner": "tenant_id:%(security_group:tenant_id)s"
"shared_address_groups": "field:address_groups:shared=True"
"get_address_group": "(rule:admin_only) or (role:reader and project_id:%(project_id)s) or rule:shared_address_groups"
"shared_address_scopes": "field:address_scopes:shared=True"
"create_address_scope": "(rule:admin_only) or (role:member and project_id:%(project_id)s)"
"create_address_scope:shared": "rule:admin_only"
"get_address_scope": "rule:admin_only or role:reader and project_id:%(project_id)s or rule:shared_address_scopes"
"update_address_scope": "(rule:admin_only) or (role:member and project_id:%(project_id)s)"
"update_address_scope:shared": "rule:admin_only"
"delete_address_scope": "(rule:admin_only) or (role:member and project_id:%(project_id)s)"
"get_agent": "rule:admin_only"
"update_agent": "rule:admin_only"
"delete_agent": "rule:admin_only"
"create_dhcp-network": "rule:admin_only"
"get_dhcp-networks": "rule:admin_only"
"delete_dhcp-network": "rule:admin_only"
"create_l3-router": "rule:admin_only"
"get_l3-routers": "rule:admin_only"
"delete_l3-router": "rule:admin_only"
"get_dhcp-agents": "rule:admin_only"
"get_l3-agents": "rule:admin_only"
"get_auto_allocated_topology": "(rule:admin_only) or (role:reader and project_id:%(project_id)s)"
"delete_auto_allocated_topology": "(rule:admin_only) or (role:member and project_id:%(project_id)s)"
"get_availability_zone": "role:reader"
"create_flavor": "rule:admin_only"
"get_flavor": "role:reader"
"update_flavor": "rule:admin_only"
"delete_flavor": "rule:admin_only"
"create_service_profile": "rule:admin_only"
"get_service_profile": "rule:admin_only"
"update_service_profile": "rule:admin_only"
"delete_service_profile": "rule:admin_only"
"get_flavor_service_profile": "(rule:admin_only) or (role:reader and project_id:%(project_id)s)"
"create_flavor_service_profile": "rule:admin_only"
"delete_flavor_service_profile": "rule:admin_only"
"create_floatingip": "(rule:admin_only) or (role:member and project_id:%(project_id)s)"
"create_floatingip:floating_ip_address": "rule:admin_only"
"get_floatingip": "(rule:admin_only) or (role:reader and project_id:%(project_id)s)"
"update_floatingip": "(rule:admin_only) or (role:member and project_id:%(project_id)s)"
"delete_floatingip": "(rule:admin_only) or (role:member and project_id:%(project_id)s)"
"get_floatingip_pool": "(rule:admin_only) or (role:reader and project_id:%(project_id)s)"
"create_floatingip_port_forwarding": "(rule:admin_only) or (role:member and rule:ext_parent_owner)"
"get_floatingip_port_forwarding": "(rule:admin_only) or (role:reader and rule:ext_parent_owner)"
"update_floatingip_port_forwarding": "(rule:admin_only) or (role:member and rule:ext_parent_owner)"
"delete_floatingip_port_forwarding": "(rule:admin_only) or (role:member and rule:ext_parent_owner)"
"create_router_conntrack_helper": "(rule:admin_only) or (role:member and project_id:%(project_id)s) or rule:ext_parent_owner"
"get_router_conntrack_helper": "(rule:admin_only) or (role:reader and project_id:%(project_id)s) or rule:ext_parent_owner"
"update_router_conntrack_helper": "(rule:admin_only) or (role:member and project_id:%(project_id)s) or rule:ext_parent_owner"
"delete_router_conntrack_helper": "(rule:admin_only) or (role:member and project_id:%(project_id)s) or rule:ext_parent_owner"
"create_local_ip": "(rule:admin_only) or (role:member and project_id:%(project_id)s)"
"get_local_ip": "(rule:admin_only) or (role:reader and project_id:%(project_id)s)"
"update_local_ip": "(rule:admin_only) or (role:member and project_id:%(project_id)s)"
"delete_local_ip": "(rule:admin_only) or (role:member and project_id:%(project_id)s)"
"create_local_ip_port_association": "(rule:admin_only) or (role:member and project_id:%(project_id)s) or rule:ext_parent_owner"
"get_local_ip_port_association": "(rule:admin_only) or (role:reader and project_id:%(project_id)s) or rule:ext_parent_owner"
"delete_local_ip_port_association": "(rule:admin_only) or (role:member and project_id:%(project_id)s) or rule:ext_parent_owner"
"get_loggable_resource": "rule:admin_only"
"create_log": "rule:admin_only"
"get_log": "rule:admin_only"
"update_log": "rule:admin_only"
"delete_log": "rule:admin_only"
"create_metering_label": "rule:admin_only"
"get_metering_label": "(rule:admin_only) or (role:reader and project_id:%(project_id)s)"
"delete_metering_label": "rule:admin_only"
"create_metering_label_rule": "rule:admin_only"
"get_metering_label_rule": "(rule:admin_only) or (role:reader and project_id:%(project_id)s)"
"delete_metering_label_rule": "rule:admin_only"
"create_ndp_proxy": "(rule:admin_only) or (role:member and project_id:%(project_id)s)"
"get_ndp_proxy": "(rule:admin_only) or (role:reader and project_id:%(project_id)s)"
"update_ndp_proxy": "(rule:admin_only) or (role:member and project_id:%(project_id)s)"
"delete_ndp_proxy": "(rule:admin_only) or (role:member and project_id:%(project_id)s)"
"external": "field:networks:router:external=True"
"create_network": "(rule:admin_only) or (role:member and project_id:%(project_id)s)"
"create_network:shared": "rule:admin_only"
"create_network:router:external": "rule:admin_only"
"create_network:is_default": "rule:admin_only"
"create_network:port_security_enabled": "(rule:admin_only) or (role:member and project_id:%(project_id)s)"
"create_network:segments": "rule:admin_only"
"create_network:provider:network_type": "rule:admin_only"
"create_network:provider:physical_network": "rule:admin_only"
"create_network:provider:segmentation_id": "rule:admin_only"
"get_network": "(rule:admin_only) or (role:reader and project_id:%(project_id)s) or rule:shared or rule:external or rule:context_is_advsvc"
"get_network:segments": "rule:admin_only"
"get_network:provider:network_type": "rule:admin_only"
"get_network:provider:physical_network": "rule:admin_only"
"get_network:provider:segmentation_id": "rule:admin_only"
"update_network": "(rule:admin_only) or (role:member and project_id:%(project_id)s)"
"update_network:segments": "rule:admin_only"
"update_network:shared": "rule:admin_only"
"update_network:provider:network_type": "rule:admin_only"
"update_network:provider:physical_network": "rule:admin_only"
"update_network:provider:segmentation_id": "rule:admin_only"
"update_network:router:external": "rule:admin_only"
"update_network:is_default": "rule:admin_only"
"update_network:port_security_enabled": "(rule:admin_only) or (role:member and project_id:%(project_id)s)"
"delete_network": "(rule:admin_only) or (role:member and project_id:%(project_id)s)"
"get_network_ip_availability": "rule:admin_only"
"create_network_segment_range": "rule:admin_only"
"get_network_segment_range": "rule:admin_only"
"update_network_segment_range": "rule:admin_only"
"delete_network_segment_range": "rule:admin_only"
"network_device": "field:port:device_owner=~^network:"
"admin_or_data_plane_int": "rule:context_is_admin or role:data_plane_integrator"
"create_port": "(rule:admin_only) or (role:member and project_id:%(project_id)s)"
"create_port:device_owner": "not rule:network_device or rule:admin_only or rule:context_is_advsvc or rule:network_owner"
"create_port:mac_address": "rule:context_is_advsvc or rule:network_owner or rule:admin_only"
"create_port:fixed_ips": "rule:context_is_advsvc or rule:network_owner or rule:admin_only or rule:shared"
"create_port:fixed_ips:ip_address": "rule:context_is_advsvc or rule:network_owner or rule:admin_only"
"create_port:fixed_ips:subnet_id": "rule:context_is_advsvc or rule:network_owner or rule:admin_only or rule:shared"
"create_port:port_security_enabled": "rule:context_is_advsvc or rule:network_owner or rule:admin_only"
"create_port:binding:host_id": "rule:admin_only"
"create_port:binding:profile": "rule:admin_only"
"create_port:binding:vnic_type": "(rule:admin_only) or (role:member and project_id:%(project_id)s)"
"create_port:allowed_address_pairs": "rule:admin_only or rule:network_owner"
"create_port:allowed_address_pairs:mac_address": "rule:admin_only or rule:network_owner"
"create_port:allowed_address_pairs:ip_address": "rule:admin_only or rule:network_owner"
"get_port": "rule:admin_only or rule:context_is_advsvc or rule:network_owner or role:reader and project_id:%(project_id)s"
"get_port:binding:vif_type": "rule:admin_only"
"get_port:binding:vif_details": "rule:admin_only"
"get_port:binding:host_id": "rule:admin_only"
"get_port:binding:profile": "rule:admin_only"
"get_port:resource_request": "rule:admin_only"
"update_port": "rule:admin_only or role:member and project_id:%(project_id)s or rule:context_is_advsvc"
"update_port:device_owner": "not rule:network_device or rule:context_is_advsvc or rule:network_owner or rule:admin_only"
"update_port:mac_address": "rule:admin_only or rule:context_is_advsvc"
"update_port:fixed_ips": "rule:context_is_advsvc or rule:network_owner or rule:admin_only"
"update_port:fixed_ips:ip_address": "rule:context_is_advsvc or rule:network_owner or rule:admin_only"
"update_port:fixed_ips:subnet_id": "rule:context_is_advsvc or rule:network_owner or rule:admin_only or rule:shared"
"update_port:port_security_enabled": "rule:context_is_advsvc or rule:network_owner or rule:admin_only"
"update_port:binding:host_id": "rule:admin_only"
"update_port:binding:profile": "rule:admin_only"
"update_port:binding:vnic_type": "rule:admin_only or role:member and project_id:%(project_id)s or rule:context_is_advsvc"
"update_port:allowed_address_pairs": "rule:admin_only or rule:network_owner"
"update_port:allowed_address_pairs:mac_address": "rule:admin_only or rule:network_owner"
"update_port:allowed_address_pairs:ip_address": "rule:admin_only or rule:network_owner"
"update_port:data_plane_status": "rule:admin_only or role:data_plane_integrator"
"delete_port": "rule:admin_only or rule:context_is_advsvc or role:member and project_id:%(project_id)s or rule:network_owner"
"shared_qos_policy": "field:policies:shared=True"
"get_policy": "(rule:admin_only) or (role:reader and project_id:%(project_id)s) or rule:shared_qos_policy"
"create_policy": "rule:admin_only"
"update_policy": "rule:admin_only"
"delete_policy": "rule:admin_only"
"get_rule_type": "role:reader"
"get_policy_bandwidth_limit_rule": "(rule:admin_only) or (role:reader and rule:ext_parent_owner)"
"create_policy_bandwidth_limit_rule": "rule:admin_only"
"update_policy_bandwidth_limit_rule": "rule:admin_only"
"delete_policy_bandwidth_limit_rule": "rule:admin_only"
"get_policy_packet_rate_limit_rule": "(rule:admin_only) or (role:reader and rule:ext_parent_owner)"
"create_policy_packet_rate_limit_rule": "rule:admin_only"
"update_policy_packet_rate_limit_rule": "rule:admin_only"
"delete_policy_packet_rate_limit_rule": "rule:admin_only"
"get_policy_dscp_marking_rule": "(rule:admin_only) or (role:reader and rule:ext_parent_owner)"
"create_policy_dscp_marking_rule": "rule:admin_only"
"update_policy_dscp_marking_rule": "rule:admin_only"
"delete_policy_dscp_marking_rule": "rule:admin_only"
"get_policy_minimum_bandwidth_rule": "(rule:admin_only) or (role:reader and rule:ext_parent_owner)"
"create_policy_minimum_bandwidth_rule": "rule:admin_only"
"update_policy_minimum_bandwidth_rule": "rule:admin_only"
"delete_policy_minimum_bandwidth_rule": "rule:admin_only"
"get_policy_minimum_packet_rate_rule": "(rule:admin_only) or (role:reader and rule:ext_parent_owner)"
"create_policy_minimum_packet_rate_rule": "rule:admin_only"
"update_policy_minimum_packet_rate_rule": "rule:admin_only"
"delete_policy_minimum_packet_rate_rule": "rule:admin_only"
"get_alias_bandwidth_limit_rule": "(rule:admin_only) or (role:reader and rule:ext_parent_owner)"
"update_alias_bandwidth_limit_rule": "rule:admin_only"
"delete_alias_bandwidth_limit_rule": "rule:admin_only"
"get_alias_dscp_marking_rule": "(rule:admin_only) or (role:reader and rule:ext_parent_owner)"
"update_alias_dscp_marking_rule": "rule:admin_only"
"delete_alias_dscp_marking_rule": "rule:admin_only"
"get_alias_minimum_bandwidth_rule": "(rule:admin_only) or (role:reader and rule:ext_parent_owner)"
"update_alias_minimum_bandwidth_rule": "rule:admin_only"
"delete_alias_minimum_bandwidth_rule": "rule:admin_only"
"get_alias_minimum_packet_rate_rule": "rule:get_policy_minimum_packet_rate_rule"
"update_alias_minimum_packet_rate_rule": "rule:update_policy_minimum_packet_rate_rule"
"delete_alias_minimum_packet_rate_rule": "rule:delete_policy_minimum_packet_rate_rule"
"get_quota": "rule:admin_only"
"update_quota": "rule:admin_only"
"delete_quota": "rule:admin_only"
"restrict_wildcard": "(not field:rbac_policy:target_tenant=* and not field:rbac_policy:target_project=*) or rule:admin_only"
"create_rbac_policy": "(rule:admin_only) or (role:member and project_id:%(project_id)s)"
"create_rbac_policy:target_tenant": "rule:admin_only or (not field:rbac_policy:target_tenant=* and not field:rbac_policy:target_project=*)"
"update_rbac_policy": "(rule:admin_only) or (role:member and project_id:%(project_id)s)"
"update_rbac_policy:target_tenant": "rule:admin_only or (not field:rbac_policy:target_tenant=* and not field:rbac_policy:target_project=*)"
"get_rbac_policy": "(rule:admin_only) or (role:reader and project_id:%(project_id)s)"
"delete_rbac_policy": "(rule:admin_only) or (role:member and project_id:%(project_id)s)"
"create_router": "(rule:admin_only) or (role:member and project_id:%(project_id)s)"
"create_router:distributed": "rule:admin_only"
"create_router:ha": "rule:admin_only"
"create_router:external_gateway_info": "(rule:admin_only) or (role:member and project_id:%(project_id)s)"
"create_router:external_gateway_info:network_id": "(rule:admin_only) or (role:member and project_id:%(project_id)s)"
"create_router:external_gateway_info:enable_snat": "rule:admin_only"
"create_router:external_gateway_info:external_fixed_ips": "rule:admin_only"
"get_router": "(rule:admin_only) or (role:reader and project_id:%(project_id)s)"
"get_router:distributed": "rule:admin_only"
"get_router:ha": "rule:admin_only"
"update_router": "(rule:admin_only) or (role:member and project_id:%(project_id)s)"
"update_router:distributed": "rule:admin_only"
"update_router:ha": "rule:admin_only"
"update_router:external_gateway_info": "(rule:admin_only) or (role:member and project_id:%(project_id)s)"
"update_router:external_gateway_info:network_id": "(rule:admin_only) or (role:member and project_id:%(project_id)s)"
"update_router:external_gateway_info:enable_snat": "rule:admin_only"
"update_router:external_gateway_info:external_fixed_ips": "rule:admin_only"
"delete_router": "(rule:admin_only) or (role:member and project_id:%(project_id)s)"
"add_router_interface": "(rule:admin_only) or (role:member and project_id:%(project_id)s)"
"remove_router_interface": "(rule:admin_only) or (role:member and project_id:%(project_id)s)"
"add_extraroutes": "(rule:admin_only) or (role:member and project_id:%(project_id)s)"
"remove_extraroutes": "(rule:admin_only) or (role:member and project_id:%(project_id)s)"
"admin_or_sg_owner": "rule:context_is_admin or tenant_id:%(security_group:tenant_id)s"
"admin_owner_or_sg_owner": "rule:owner or rule:admin_or_sg_owner"
"shared_security_group": "field:security_groups:shared=True"
"create_security_group": "(rule:admin_only) or (role:member and project_id:%(project_id)s)"
"get_security_group": "(rule:admin_only) or (role:reader and project_id:%(project_id)s) or rule:shared_security_group"
"update_security_group": "(rule:admin_only) or (role:member and project_id:%(project_id)s)"
"delete_security_group": "(rule:admin_only) or (role:member and project_id:%(project_id)s)"
"create_security_group_rule": "(rule:admin_only) or (role:member and project_id:%(project_id)s)"
"get_security_group_rule": "(rule:admin_only) or (role:reader and project_id:%(project_id)s) or rule:sg_owner"
"delete_security_group_rule": "(rule:admin_only) or (role:member and project_id:%(project_id)s)"
"create_segment": "rule:admin_only"
"get_segment": "rule:admin_only"
"update_segment": "rule:admin_only"
"delete_segment": "rule:admin_only"
"get_service_provider": "role:reader"
"create_subnet": "rule:admin_only or role:member and rule:network_owner"
"create_subnet:segment_id": "rule:admin_only"
"create_subnet:service_types": "rule:admin_only"
"get_subnet": "(rule:admin_only) or (role:reader and project_id:%(project_id)s) or rule:shared"
"get_subnet:segment_id": "rule:admin_only"
"update_subnet": "(rule:admin_only) or (role:member and project_id:%(project_id)s) or role:member and rule:network_owner"
"update_subnet:segment_id": "rule:admin_only"
"update_subnet:service_types": "rule:admin_only"
"delete_subnet": "(rule:admin_only) or (role:member and project_id:%(project_id)s) or role:member and rule:network_owner"
"shared_subnetpools": "field:subnetpools:shared=True"
"create_subnetpool": "(rule:admin_only) or (role:member and project_id:%(project_id)s)"
"create_subnetpool:shared": "rule:admin_only"
"create_subnetpool:is_default": "rule:admin_only"
"get_subnetpool": "(rule:admin_only) or (role:reader and project_id:%(project_id)s) or rule:shared_subnetpools"
"update_subnetpool": "(rule:admin_only) or (role:member and project_id:%(project_id)s)"
"update_subnetpool:is_default": "rule:admin_only"
"delete_subnetpool": "(rule:admin_only) or (role:member and project_id:%(project_id)s)"
"onboard_network_subnets": "(rule:admin_only) or (role:member and project_id:%(project_id)s)"
"add_prefixes": "(rule:admin_only) or (role:member and project_id:%(project_id)s)"
"remove_prefixes": "(rule:admin_only) or (role:member and project_id:%(project_id)s)"
"create_trunk": "(rule:admin_only) or (role:member and project_id:%(project_id)s)"
"get_trunk": "(rule:admin_only) or (role:reader and project_id:%(project_id)s)"
"update_trunk": "(rule:admin_only) or (role:member and project_id:%(project_id)s)"
"delete_trunk": "(rule:admin_only) or (role:member and project_id:%(project_id)s)"
"get_subports": "(rule:admin_only) or (role:reader and project_id:%(project_id)s)"
"add_subports": "(rule:admin_only) or (role:member and project_id:%(project_id)s)"
"remove_subports": "(rule:admin_only) or (role:member and project_id:%(project_id)s)"