public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH access-control/network v5 0/7] fix #7520: sdn: prune orphaned ACLs and handle VNet migrations
@ 2026-07-07 12:03 David Riley
  2026-07-07 12:03 ` [PATCH pve-access-control v5 1/7] permission: add acl tree node parent lookup without node creation David Riley
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: David Riley @ 2026-07-07 12:03 UTC (permalink / raw)
  To: pve-devel

Thanks @Daniel K. for the thorough review.

Difference from v4:
* Instead of passing arrays of path segments [<zone>, <vnet>], paths
  are now passed as strings <zone>/<vnet> to match the actual ACL
  paths as there was no real benefit of using arrays.
* Moved helper functions into seperate commits and updated the commit
  messages accordingly.
* Fix: style nits (post if, for loop dereferencing, ...)
* Fix: tests nits (grouped mocking, removed main subroutine)

Difference from v3:
* Refactored tests
* Perl style guide refactor (for instead of foreach)
* Update: route_map_suffix regex used for detecting digits to match
  style guide recommendation

Difference from v2:
* Relocate VNet ACLs to the new zone path when a VNet is moved,
  including a validation check to abort on path conflicts.
* Refactor diff generation in preparation for an upcoming patch
  series, resolving #7294 [0]. The upcoming series will hook into the
  VNet diff to clean up pool members.
* Add unit testing for pruning and migration mechanism 

=== Original Cover Letter ===

Implement a pruning mechanism to clean up orphaned SDN ACL entries by
comparing the running configuration with the newly compiled state
during configuration commit.

This ensures state consistency for manual applies via the UI/API
as well as during the automatic configuration reload on system boot.
The pruning covers: 
* Zones
* VNets
* Fabrics
* Controllers
* Route maps
* Prefix lists 

IPAMs and DNS are excluded as they are not staged.

Link: https://bugzilla.proxmox.com/show_bug.cgi?id=7520

[0] https://bugzilla.proxmox.com/show_bug.cgi?id=7294


pve-access-control:

David Riley (6):
  permission: add acl tree node parent lookup without node creation
  fix #7520: sdn: add pruning SDN resources ACLs
  test: add sdn acl pruning tests
  permission: add helper to check for active permissions
  fix #7520: sdn: add VNet ACL migration
  test: add sdn acl migration tests

 src/PVE/AccessControl.pm           | 155 ++++++++++++++++++++++++++
 src/test/Makefile                  |   3 +
 src/test/sdn_acl_migration_test.pl | 171 +++++++++++++++++++++++++++++
 src/test/sdn_acl_pruning_test.pl   | 134 ++++++++++++++++++++++
 4 files changed, 463 insertions(+)
 create mode 100644 src/test/sdn_acl_migration_test.pl
 create mode 100644 src/test/sdn_acl_pruning_test.pl


pve-network:

David Riley (1):
  fix #7520: config: prune orphaned and relocate moved VNet ACLs

 src/PVE/Network/SDN.pm | 115 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 115 insertions(+)


Summary over all repositories:
  5 files changed, 578 insertions(+), 0 deletions(-)

-- 
Generated by murpp 0.11.0




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-07-07 12:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-07 12:03 [PATCH access-control/network v5 0/7] fix #7520: sdn: prune orphaned ACLs and handle VNet migrations David Riley
2026-07-07 12:03 ` [PATCH pve-access-control v5 1/7] permission: add acl tree node parent lookup without node creation David Riley
2026-07-07 12:03 ` [PATCH pve-access-control v5 2/7] fix #7520: sdn: add pruning SDN resources ACLs David Riley
2026-07-07 12:04 ` [PATCH pve-access-control v5 3/7] test: add sdn acl pruning tests David Riley
2026-07-07 12:04 ` [PATCH pve-access-control v5 4/7] permission: add helper to check for active permissions David Riley
2026-07-07 12:04 ` [PATCH pve-access-control v5 5/7] fix #7520: sdn: add VNet ACL migration David Riley
2026-07-07 12:04 ` [PATCH pve-access-control v5 6/7] test: add sdn acl migration tests David Riley
2026-07-07 12:04 ` [PATCH pve-network v5 7/7] fix #7520: config: prune orphaned and relocate moved VNet ACLs David Riley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal