Commit cde40ac
Fix port RBAC policies to require network ownership
Several default port policies that require network ownership incorrectly
included PROJECT_MANAGER. That rule checks the port project_id, not
network ownership, so any project manager could perform those actions
on shared/RBAC networks where they do not own the network.
Remove PROJECT_MANAGER from the affected create/update port policies
and rely on NET_OWNER_MEMBER or ADMIN_OR_NET_OWNER_MEMBER instead.
Project managers who own the network remain authorized through the
default Keystone role implication chain (manager implies member).
Closes-Bug: #2152115
Assisted-By: Claude Composer 2.5
Signed-off-by: Rodolfo Alonso Hernandez <ralonsoh@redhat.com>
Change-Id: I4e258d28cdf72adcc13fc9d03749256c65881c45
(cherry picked from commit d0f61db)1 parent b6e3e68 commit cde40ac
4 files changed
Lines changed: 137 additions & 483 deletions
File tree
- neutron
- conf/policies
- tests/unit/conf/policies
- releasenotes/notes
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
104 | 103 | | |
105 | 104 | | |
106 | 105 | | |
| |||
119 | 118 | | |
120 | 119 | | |
121 | 120 | | |
122 | | - | |
123 | 121 | | |
124 | 122 | | |
125 | 123 | | |
| |||
136 | 134 | | |
137 | 135 | | |
138 | 136 | | |
139 | | - | |
140 | 137 | | |
141 | 138 | | |
142 | 139 | | |
| |||
155 | 152 | | |
156 | 153 | | |
157 | 154 | | |
158 | | - | |
159 | 155 | | |
160 | 156 | | |
161 | 157 | | |
| |||
172 | 168 | | |
173 | 169 | | |
174 | 170 | | |
175 | | - | |
176 | 171 | | |
177 | 172 | | |
178 | 173 | | |
| |||
191 | 186 | | |
192 | 187 | | |
193 | 188 | | |
194 | | - | |
195 | 189 | | |
196 | 190 | | |
197 | 191 | | |
| |||
258 | 252 | | |
259 | 253 | | |
260 | 254 | | |
261 | | - | |
262 | 255 | | |
263 | 256 | | |
264 | 257 | | |
| |||
276 | 269 | | |
277 | 270 | | |
278 | 271 | | |
279 | | - | |
280 | 272 | | |
281 | 273 | | |
282 | 274 | | |
| |||
294 | 286 | | |
295 | 287 | | |
296 | 288 | | |
297 | | - | |
298 | 289 | | |
299 | 290 | | |
300 | 291 | | |
| |||
496 | 487 | | |
497 | 488 | | |
498 | 489 | | |
499 | | - | |
500 | 490 | | |
501 | 491 | | |
502 | 492 | | |
| |||
515 | 505 | | |
516 | 506 | | |
517 | 507 | | |
518 | | - | |
| 508 | + | |
519 | 509 | | |
520 | 510 | | |
521 | 511 | | |
| |||
532 | 522 | | |
533 | 523 | | |
534 | 524 | | |
535 | | - | |
536 | 525 | | |
537 | 526 | | |
538 | 527 | | |
| |||
550 | 539 | | |
551 | 540 | | |
552 | 541 | | |
553 | | - | |
554 | 542 | | |
555 | 543 | | |
556 | 544 | | |
| |||
571 | 559 | | |
572 | 560 | | |
573 | 561 | | |
574 | | - | |
575 | 562 | | |
576 | 563 | | |
577 | 564 | | |
| |||
594 | 581 | | |
595 | 582 | | |
596 | 583 | | |
597 | | - | |
598 | 584 | | |
599 | 585 | | |
600 | 586 | | |
| |||
653 | 639 | | |
654 | 640 | | |
655 | 641 | | |
656 | | - | |
657 | 642 | | |
658 | 643 | | |
659 | 644 | | |
| |||
668 | 653 | | |
669 | 654 | | |
670 | 655 | | |
671 | | - | |
672 | 656 | | |
673 | 657 | | |
674 | 658 | | |
| |||
686 | 670 | | |
687 | 671 | | |
688 | 672 | | |
689 | | - | |
690 | 673 | | |
691 | 674 | | |
692 | 675 | | |
| |||
0 commit comments