[pbs-devel] [PATCH proxmox-backup 1/3] pbs-config: acls: add s3-endpoint as valid 'system' subpath

Christian Ebner c.ebner at proxmox.com
Mon Jul 28 09:59:55 CEST 2025


Adds a dedicated subpath for the permission checks for s3 endpoint
configurations in the acl path component checks. Allows to set
permissions on either the whole s3 config or for individual endpoint
ids.

Signed-off-by: Christian Ebner <c.ebner at proxmox.com>
---
 pbs-config/src/acl.rs | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/pbs-config/src/acl.rs b/pbs-config/src/acl.rs
index aca1f68fd..42f419fb5 100644
--- a/pbs-config/src/acl.rs
+++ b/pbs-config/src/acl.rs
@@ -127,6 +127,12 @@ pub fn check_acl_path(path: &str) -> Result<(), Error> {
                         _ => {}
                     }
                 }
+                "s3-endpoint" => {
+                    // /system/s3-endpoint/{id}
+                    if components_len <= 3 {
+                        return Ok(());
+                    }
+                }
                 _ => {}
             }
         }
-- 
2.47.2





More information about the pbs-devel mailing list