all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH proxmox v3 0/2] check privilege paths during compilation
@ 2026-09-14 12:30 Dominik Csapak
  2026-09-14 12:30 ` [PATCH proxmox v3 1/2] add proxmox-const-utils crate, factor out checks from proxmox-schema Dominik Csapak
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Dominik Csapak @ 2026-09-14 12:30 UTC (permalink / raw)
  To: pdm-devel

This adds a check in proxmox-router to check the used parameter interpolations
in the privilege paths of api calls for existence.

changes from v2:
* rebase on master
* drop applied patch
* correctly check strings that are smaller than 3 characters
* also check UserParam and WithParam parameter for existence
* factor out byte slice compare check from proxmox-schema and use that
* add more tests

changes from rfc/v1:
* rebase on master
* require Resource.Audit on /resource/{remote} for each remote, filter out
  where this isn't the case instead of requiring it on /resource

Dominik Csapak (2):
  add proxmox-const-utils crate, factor out checks from proxmox-schema
  router: compile time check privilege path parameters for existence

 Cargo.toml                               |   2 +
 proxmox-const-utils/Cargo.toml           |  13 ++
 proxmox-const-utils/debian/changelog     |   5 +
 proxmox-const-utils/debian/control       |  30 +++
 proxmox-const-utils/debian/copyright     |  18 ++
 proxmox-const-utils/debian/debcargo.toml |   7 +
 proxmox-const-utils/src/lib.rs           |  66 +++++++
 proxmox-router/Cargo.toml                |   1 +
 proxmox-router/src/router.rs             | 235 ++++++++++++++++++++++-
 proxmox-schema/Cargo.toml                |   1 +
 proxmox-schema/src/const_test_utils.rs   |  25 ---
 proxmox-schema/src/lib.rs                |   2 -
 proxmox-schema/src/schema.rs             |  10 +-
 13 files changed, 382 insertions(+), 33 deletions(-)
 create mode 100644 proxmox-const-utils/Cargo.toml
 create mode 100644 proxmox-const-utils/debian/changelog
 create mode 100644 proxmox-const-utils/debian/control
 create mode 100644 proxmox-const-utils/debian/copyright
 create mode 100644 proxmox-const-utils/debian/debcargo.toml
 create mode 100644 proxmox-const-utils/src/lib.rs
 delete mode 100644 proxmox-schema/src/const_test_utils.rs

-- 
2.47.3





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

end of thread, other threads:[~2026-09-17  8:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-14 12:30 [PATCH proxmox v3 0/2] check privilege paths during compilation Dominik Csapak
2026-09-14 12:30 ` [PATCH proxmox v3 1/2] add proxmox-const-utils crate, factor out checks from proxmox-schema Dominik Csapak
2026-09-14 12:30 ` [PATCH proxmox v3 2/2] router: compile time check privilege path parameters for existence Dominik Csapak
2026-09-17  8:20 ` applied-series: [PATCH proxmox v3 0/2] check privilege paths during compilation Wolfgang Bumiller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal